Module:Param Parse: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 448:
-- Requirements
function parse.requirements_func(
local icon_map = {
scout = '[[File:Scout_icon.png|link=Scout|width=18x18]]',
Line 456:
}
local
for
table.insert(
end
local
for i = 1, #fields, 2 do
-- Do nothing
local icon = icon_map[key]
if type(value) == "number" then
table.insert(result, string.format("%s %d", icon, math.floor(value)))
else
table.insert(result, string.format("%s %s", icon, value))
end
end
end
return table.concat(result, ", ")
end
|