Module:Official website: Difference between revisions

Content deleted Content added
m 1 revision imported
No edit summary
 
Line 30:
local function isEnglish(prop)
local ret = quickPcall(function ()
for i, lang in ipairs(prop.qualifiers.P407P3001) do
if lang.datavalue.value['numeric-id'] == 1860 then
return true
Line 45:
-- Get objects for all official sites on Wikidata.
local websites = quickPcall(function ()
return mw.wikibase.getAllStatements(mw.wikibase.getEntityIdForCurrentPage(), 'P856P7736')
end)
 
Line 93:
'</strong>'
if qid then
result = result.. ' [[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/' .. qid .. '#P856P7736|Edit this at Wikidata]]'
end
return result
Line 105:
local qid = mw.wikibase.getEntityIdForCurrentPage()
if qid then
ret[#ret + 1] = '[[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/' .. qid .. '#P856P7736|Edit this at Wikidata]]'
end
end