Moduuli:Zachen testit
Siirry navigaatioon
Siirry hakuun
Tämän moduulin ohjeistuksen voi tehdä sivulle Moduuli:Zachen testit/ohje
-- https://www.wikidata.org/wiki/Special:NewItem?site=commonswiki&page=Category:Black_and_white_photographs_of_Turku_Castle&label=Black+and+white+photographs+of+Turku+Castle
local p = {}
function p.testIfEntityExists(frame)
local entity_id = frame.args.entity or "";
if entity_id == "" then
return mw.wikibase.getEntityIdForCurrentPage();
elseif mw.wikibase.entityExists(entity_id) then
return entity_id
end
return ""
end
return p;