𨀈𬧐內容
程單正
程單正
轉𨖅錆邊
隱
調向
張正
𠊝𢷮𧵆低
張偶然
助𢴇
顯示吧入 Hiển thị và Nhập
風𡨸漢喃 Phông chữ Hán Nôm
部𢫈漢喃 Bộ gõ Hán Nôm
工具轉字 Công cụ chuyển tự
𡨸漢喃準 Chữ Hán Nôm chuẩn
榜𡨸漢喃準常用 Bảng chữ Hán Nôm chuẩn Thường dùng
榜𡨸翻音 Bảng chữ Phiên âm
名冊各詞摱憑𡨸漢喃準 Danh sách các từ mượn bằng chữ Hán Nôm chuẩn
向引編輯 Hướng dẫn Biên tập
定樣排曰 Định dạng bài viết
捐𢵰 Quyên góp
衆碎懃伴𢴇扡 Chúng tôi cần bạn giúp đỡ
尋檢
尋檢
交面
造財款
登入
工具個人
造財款
登入
䀡碼源𧵑模庉:Plain sister
模庉
討論
㗂越
讀
䀡碼源
䀡歷史
工具
工具
轉𨖅錆邊
隱
作務
讀
䀡碼源
䀡歷史
終
各連結𦤾低
𠊝𢷮連關
張特別
通信張
交面
轉𨖅錆邊
隱
←
模庉:Plain sister
伴空得權𢯢𢷮張尼、爲理由𢖖󠄁:
只仍成員𥪝𡖡
成員通常
㵋得寔現操作尼。
伴吻固体䀡吧抄劄碼源𧵑張尼。
local p = {} local sites = { -- interwiki prefix, parameter, label and site id (for Wikidata) { 'w', 'wikipedia', 'bài viết Wikipedia', 'viwiki' }, { 'c', 'commons', 'thư viện ảnh Commons', 'commonswiki' }, { 'c:Category', 'commonscat', 'thể loại Commons', 'commonswiki' }, { 'q', 'wikiquote', 'danh ngôn', 'viwikiquote' }, { 'n', 'wikinews', 'tin tức', 'viwikinews' }, { 'wikt', 'wiktionary', 'từ điển ', 'viwiktionary' }, { 'b', 'wikibooks', 'sách' , 'viwikibooks' }, -- { 'v', 'wikiversity', 'course', 'viwikiversity' }, { 'wikispecies', 'wikispecies', 'danh mục loài', 'specieswiki' }, { 'voy', 'wikivoyage', 'cẩm nang du lịch', 'viwikivoyage' }, { 'd', 'wikidata', 'mục Wikidata', 'wikidatawiki' }, { 'bibliowiki', 'wikilivres', 'bibliowiki', '' }, -- wikilivres now bibliowiki { 'bibliowiki', 'bibliowiki', 'bibliowiki', '' }, { 'm', 'meta', 'Meta', 'metawiki' } } function p.interprojetPart( frame ) local frame = frame:getParent() local item = mw.wikibase.getEntityObject() local links = {} for _, site in pairs( sites ) do local val = frame.args[site[2]] -- link provided as input parameter if val == '' then val = nil; end if not val and site[4] ~= '' and item then -- fetch it from wikidata val = item:getSitelink( site[4] ) if site[4] == 'wikidatawiki' then val = item.id elseif site[4] == 'commonswiki' and val then -- we have link to commons local catFlag = (#val>9 and string.sub(val,1,9) == 'Category:') if (site[2]=='commonscat' and catFlag==false) or (site[2]=='commons' and catFlag==true) then val = nil -- link is to a wrong namespace so let's nuke it elseif (site[2]=='commonscat' and catFlag==true) then val = string.sub(val,10) -- trim 'Category:' from the front end end end if not val and site[2] == 'commons' and item then local statements = item:getBestStatements('P935' ) -- get commons gallery page from P935 property if statements[1] and statements[1].mainsnak.datavalue then val = statements[1].mainsnak.datavalue.value end end if not val and site[2] == 'commonscat' and item then local statements = item:getBestStatements('P373' ) -- get commons category page from P373 property if statements[1] and statements[1].mainsnak.datavalue then val = statements[1].mainsnak.datavalue.value end end if val then table.insert( links, '[[' .. site[1] .. ':' .. val .. '|' .. site[3] .. ']]' ) end end if #links == 0 then -- links table length is zero return '' end return '<li class="sisitem">' .. '<span class="sisicon" style="padding-right:1ex;">[[Image:Wikimedia-logo.svg|frameless|18px|link=Đặc biệt:Ma trận trang|alt=Các dự án wiki khác.]]</span>' .. '[[Đặc biệt:Ma trận trang|các dự án wiki khác]]: ' .. table.concat( links, ', ' ) .. '.</li>' end return p
𢮿吏
模庉:Plain sister
。