Module:Wikidata: Difference between revisions

Content deleted Content added
Partial revert: those functions take an entity ID, not a language
Line 504:
local id = frame.args[2]
-- return description of a Wikidata entity in the given language or the default language of this Wikipedia site
return mw.wikibase.getEntity(id).descriptions[:getDescription(langcode or wiki.langcode].value)
end
 
Line 511:
local id = frame.args[2]
-- return label of a Wikidata entity in the given language or the default language of this Wikipedia site
return mw.wikibase.getEntity(id).labels[:getLabel(langcode or wiki.langcode].value)
end