Module:Multi

Revision as of 14:36, 23 March 2024 by Habblet (talk | contribs) (Created page with "--<nowiki> local p = {} function p.multi(str, count) return string.rep(str, count) end function p.main(frame) local args = frame:getParent().args local str = args[1] local times = args[2] or 2 return p.multi(str, times) end return p --</nowiki>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Module documentation
This documentation is transcluded from Module:Multi/doc. [edit] [history] [purge]
This module does not have any documentation. Please consider adding documentation at Module:Multi/doc. [edit]
Module:Multi's function main is invoked by Template:Multi.

--<nowiki>
local p = {}

function p.multi(str, count)
	return string.rep(str, count)
end

function p.main(frame)
	local args = frame:getParent().args
	local str = args[1]
	local times = args[2] or 2
	return p.multi(str, times)
end

return p
--</nowiki>