66 629
contributi
(More compact number) |
Nessun oggetto della modifica |
||
Riga 235: | Riga 235: | ||
elseif SnakValue.mainsnak.datavalue.type == 'quantity' then | elseif SnakValue.mainsnak.datavalue.type == 'quantity' then | ||
local StringValue | local StringValue | ||
StringValue = string.format('% | StringValue = string.format('%G', SnakValue.mainsnak.datavalue.value.amount) | ||
if AddSemantic then | |||
mw.smw.set(Header[2] .. "=" .. StringValue) | |||
end | |||
AccValues[#AccValues + 1] = StringValue | |||
elseif SnakValue.mainsnak.datavalue.type == 'string' then | |||
-- String values | |||
local StringValue | |||
StringValue = SnakValue.mainsnak.datavalue.value.amount | |||
if AddSemantic then | if AddSemantic then |