Content deleted Content added
Partial revert: those functions take an entity ID, not a language |
Undid revision 953092202 by Thayts (talk) rv; that is not true, see mw:Extension:Wikibase Client/Lua#mw.wikibase.entity:getLabel and mw:Extension:Wikibase Client/Lua#mw.wikibase.entity:getDescription |
||
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)
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)
end
|