No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
local values = frame.args["values"] | local values = frame.args["values"] | ||
local tabs = {"<tabber>"} | local tabs = {"<tabber>"} | ||
local i = 1 | |||
for i=1,amount do | for i=1,amount do | ||
tabs[i+1] = "|-|Rank" | tabs[i+1] = "|-|Rank" | ||
| Line 12: | Line 13: | ||
tabs[i+4] = values[i] | tabs[i+4] = values[i] | ||
end | end | ||
tabs[ | tabs[#tbl+1] = "</tabber>" | ||
return frame:preprocess(table.concat(tabs)) | return frame:preprocess(table.concat(tabs)) | ||
Revision as of 00:26, 4 June 2024
Documentation for this module may be created at Module:CommunosTestModule/doc
local p = {}
local tab_amount = 5
function p.test(frame)
local amount = tonumber(frame.args["amount"])
local values = frame.args["values"]
local tabs = {"<tabber>"}
local i = 1
for i=1,amount do
tabs[i+1] = "|-|Rank"
tabs[i+2] = i
tabs[i+3] = "="
tabs[i+4] = values[i]
end
tabs[#tbl+1] = "</tabber>"
return frame:preprocess(table.concat(tabs))
end
return p