Module:Param Parse: Difference between revisions

Change value to use parse.number instead of tonumber (supports commas in numbers)
No edit summary
(Change value to use parse.number instead of tonumber (supports commas in numbers))
Line 198:
-- Value
function parse.value_func(val)
val = tonumberparse.number(val)
if val == nil then
return nil
Line 215:
output = output .. val .. '[[File:Copper coin.png|link=]]'
return output
end
function parse.value_smw(val)
return tonumber(val)
end
parse.value = {
Line 224 ⟶ 221:
category_incomplete = 'Items needing value',
smw_property = 'Value',
smw_func = parse.value_smwnumber
}