Module:Official website: Difference between revisions
imported>Fire No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 45: | Line 45: | ||
-- Get objects for all official sites on Wikidata. | -- Get objects for all official sites on Wikidata. | ||
local websites = quickPcall(function () | local websites = quickPcall(function () | ||
return mw.wikibase.getAllStatements(mw.wikibase.getEntityIdForCurrentPage(), ' | return mw.wikibase.getAllStatements(mw.wikibase.getEntityIdForCurrentPage(), 'P87') | ||
end) | end) | ||
Line 93: | Line 93: | ||
'</strong>' | '</strong>' | ||
if qid then | if qid then | ||
result = result.. ' [[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://wiki.tiffa.net/wiki/' .. qid .. '# | result = result.. ' [[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://wiki.tiffa.net/wiki/Item:' .. qid .. '#P87|Edit this at Wikidata]]' | ||
end | end | ||
return result | return result | ||
Line 105: | Line 105: | ||
local qid = mw.wikibase.getEntityIdForCurrentPage() | local qid = mw.wikibase.getEntityIdForCurrentPage() | ||
if qid then | 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://wiki.tiffa.net/wiki/' .. qid .. '# | ret[#ret + 1] = '[[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://wiki.tiffa.net/wiki/Item:' .. qid .. '#P87|Edit this at Wikidata]]' | ||
end | end | ||
end | end |