Module:Wikidata test
Documentation for this module may be created at Module:Wikidata test/doc
local p = {} -- p stands for package
function p.hello( frame )
return mw.wikibase.getLabelWithLang( 'P694' ) or '<cannot resolve `P694` to label>'
end
function p.redirect( frame )
return mw.wikibase.entityExists('Q478306')
end
function p.resolve(frame)
return mw.wikibase.resolvePropertyId( 'instance of' ) or '<cannot resolve label `instance of` to id>'
end
function p.globalSiteId()
return mw.wikibase.getGlobalSiteId()
end
return p