No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p. | function p.table(frame) | ||
local result = "0" | local entries = frame.args[1] | ||
--[[local result = "0" | |||
for var=1,tonumber(frame.args[1])-1 do | for var=1,tonumber(frame.args[1])-1 do | ||
result = result .. "," .. tostring(var) | result = result .. "," .. tostring(var) | ||
end | end | ||
return result | return result]]-- | ||
return '{{#tag:pre|' .. entries .. '}}' | |||
end | end | ||
return p | return p |
Revision as of 12:20, 11 July 2024
Documentation for this module may be created at Module:TestModule/doc
local p = {} function p.table(frame) local entries = frame.args[1] --[[local result = "0" for var=1,tonumber(frame.args[1])-1 do result = result .. "," .. tostring(var) end return result]]-- return '{{#tag:pre|' .. entries .. '}}' end return p