Module:CommunosTestModule: Difference between revisions

From The First Descendant Wiki
No edit summary
No edit summary
Line 3: Line 3:


function p.test(frame)
function p.test(frame)
return frame:preprocess("<tabber>|-|Tab1=Tab1|-|Tab2=Tab2|-|Tab3=Tab3</tabber>")
local amount = frame.args["amount"]
local parameter = frame.args["parameter"]
local tabs = "<tabber>"
for i=0,amount,1
do
tabs = tabs.."test"
-- "|-|Rank"..i..{{=}}..parameter
end
tabs = tabs.."</tabber>"
return frame:preprocess(tabs)
 
end
end




return p
return p

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

end


return p