Module:User:Surjection/sandbox

From Wiktionary, the free dictionary
Jump to navigation Jump to search

This is a private module sandbox of Surjection, for their own experimentation. Items in this module may be added and removed at Surjection's discretion; do not rely on this module's stability.


local export = {}

local function template_rep(args)
	return mw.ustring.rep(args[1], 3)
end

function export.test(frame)
	return require("Module:User:Surjection/invoker")(frame:getParent().args[1], { ["rep"] = template_rep })
end

function export.join(frame)
	local args = frame:getParent().args
	local pargs = {}
	local i = 1
	while args[i] do
		pargs[i] = args[i]
		i = i + 1
	end
	return table.concat(pargs)
end

return export