Modulo:Wikidata/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
iniziato a preparare per il passaggio a P5061 che sostituirà P558
Riga 197:
 
local function formatUnitSymbol(entityId, args)
local ret = p._getProperty({ 'P558P5061', nincludelang = 1'it', from = entityId })
if not ret or ret == '' then
ret = p._getProperty({ 'P5061', includelang = 'en', from = entityId })
ret = ret ~= '' and ret or nil
end
local space = ret == '°' and '' or ' '
if ret and args.showunitlink then
Line 230 ⟶ 234:
else
-- se è richiesto solo il simbolo dell'unità
-- senza la conversione lo ottiene da P558P5061
ret = args.rounding and round(ret, args.rounding) or ret
if args.formatnum then