Modulo:Wikidata/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m per phab:T190382 |
iniziato a preparare per il passaggio a P5061 che sostituirà P558 |
||
Riga 197:
local function formatUnitSymbol(entityId, args)
local ret = p._getProperty({ '
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
ret = args.rounding and round(ret, args.rounding) or ret
if args.formatnum then
|