Module:CommunosTestModule: Difference between revisions

From The First Descendant Wiki
No edit summary
No edit summary
Line 8: Line 8:
local tabs = "<tabber>"
local tabs = "<tabber>"
while i<amount do
while i<amount do
tabs = tabs.."test"
tabs = tabs.."|-|Rank"
-- "|-|Rank"..i..{{=}}..parameter
tabs = tabs..i
tabs = tabs.."="
tabs =tabs..parameter
i = i + 1
i = i + 1
end
end

Revision as of 00:15, 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 parameter = frame.args["parameter"]
local i = 0
local tabs = "<tabber>"
while i<amount do
tabs = tabs.."|-|Rank"
tabs = tabs..i
tabs = tabs.."="
tabs =tabs..parameter
i = i + 1
end
tabs = tabs.."</tabber>"
return frame:preprocess(tabs)

end


return p