Documentation for this module may be created at Module:Damage/doc
local p = {}
p.loop = function(frame)
local stage = frame.args.stage
local rows = {}
-- the actual looping part
for value in mw.text.gsplit(stage, ',') do
table.insert(rows, '|' .. value)
end
return ' {|\n' .. table.concat(rows, '\n|-\n') .. '\n|}'
end
return p