local getArgs = require('Module:Arguments').getArgs
local p = {}
function p.main(frame)
local args = getArgs(frame)
local out = {}
local i = 1
while args['涂装名称' .. i] do
local name = args['涂装名称' .. i]
local icon = args['涂装' .. i] or ''
local desc = args['涂装描述' .. i] or ''
table.insert(out, '|-')
table.insert(out, '| style="background-color:#BEBEBE;min-width:100px"|' .. (icon ~= '' and '[[File:' .. icon .. '|128px]]' or ''))
table.insert(out, [[| style="padding:5px 1em;border-left:solid 4px #EE0000;"|''']] .. name .. [['''<br>]] .. desc)
i = i + 1
end
return table.concat(out, '\n')
end
return p