Modulo:Wikidata/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m +multilingua P5061
precedenza ricerca lingue formatUnitSymbol
Riga 197:
 
local function formatUnitSymbol(entityId, args)
local ret
local tbl = p._getProperty({ 'P5061', includelang = 'mul,it,en', from = entityId }, true)
for _, lang in ipairs({ 'mul', 'it', 'en' }) do
local ret = tbl and tbl[1]
local tbl ret = p._getProperty({ 'P5061', includelang = 'mul,it,en'lang, from = entityId }, true)
if ret and ret ~= '' then
break
else
ret = nil
end
end
local space = ret == '°' and '' or ' '
if ret and args.showunitlink then