Module:Multi

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:12, 17 October 2024 (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>"). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Module documentation
This documentation is transcluded from Template:No documentation/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>