67 058
contributi
(SMW property for P14) |
(Case for "quantity" value) |
||
Riga 138: | Riga 138: | ||
else | else | ||
AccValues[#AccValues + 1] = frame:expandTemplate{title = 'TimeL', args = {Tipo='ITEstesa', Istante=Value['time']}} | AccValues[#AccValues + 1] = frame:expandTemplate{title = 'TimeL', args = {Tipo='ITEstesa', Istante=Value['time']}} | ||
end | |||
elseif SnakValue.mainsnak.datavalue['type'] == 'quantity' then | |||
local StringValue | |||
StringValue = string.format('%u', Item.claims['P18'][1].mainsnak.datavalue.value.amount) | |||
if AddSemantic then | |||
AccValues[#AccValues + 1] = "[[" .. Header[2] .. "::" .. StringValue .. "]]" | |||
else | |||
AccValues[#AccValues + 1] = StringValue | |||
end | end | ||
else | else |