Modulo:Wikidata/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m aggiornato alla versione corrente
Riga 86:
 
local function formatEntityId(entityId)
local label = mw.wikibase.labelgetLabel(entityId)
local link = mw.wikibase.sitelinkgetSitelink(entityId)
local ret
if link then
Riga 200:
local space = ret == '°' and '' or ' '
if ret and args.showunitlink then
local link = mw.wikibase.sitelinkgetSitelink(entityId)
if link then
ret = string.format('[[%s|%s]]', link, ret)
Riga 660:
ret = mw.wikibase.getLabelByLang(entityId, args[2])
else
ret = mw.wikibase.labelgetLabel(entityId)
end
return ret