Modulo:Wikidata/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
iniziato a preparare per il passaggio a P5061 che sostituirà P558
m getProperty unica
Riga 197:
 
local function formatUnitSymbol(entityId, args)
local rettbl = p._getProperty({ 'P5061', includelang = 'it,en', from = entityId }, true) or {}
if notlocal ret or= rettbl[1] == ''or thentbl[2]
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