Module:Multi

From Illerai

This is an old revision of this page, as edited by illerai>Talulah at 20:08, 10 February 2020 (today is not that day). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Module documentation
This documentation is transcluded from Module:Multi/doc. [edit] [history] [purge]

This template should be used when there is no documentation for a Module or Template.


--<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>