Sb forum speech.png DiscordLink.png FacebookLink.png RedditLink.png SteamLink.png TwitterLink.png YoutubeLink.png

Difference between revisions of "Module:SB Infobox Begin"

From Starbase wiki
Jump to navigation Jump to search
m
m
 
Line 8: Line 8:


function p._main(args)
function p._main(args)
local output = ""
    local t = {}
local n = 0
    for i, v in ipairs(args) do
for _ in ipairs(args) do  
          t[i] = tostring(v)
n=_
        end
end
    return table.concat(t,"")
local t = {}
for i=1,n do
t[i] = tostring(args[i])
end
return table.concat(t,"")
end
end


return p
return p

Latest revision as of 03:57, 26 May 2021

Documentation for this module may be created at Module:SB Infobox Begin/doc

local getArgs = require('Module:Arguments').getArgs
local p = {}

function p.main(frame)
	local args = getArgs(frame)
	return p._main(args)
end

function p._main(args)
    local t = {}
    for i, v in ipairs(args) do
          t[i] = tostring(v)
        end
    return table.concat(t,"")
end

return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.