Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 02:48, 29 September 2024 by PenguinEncounter (talk | contribs) (yay multiple returns great feature)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:ArgConcat/doc

return {
	concat = function(frame)
		local modified = {}
		local template = frame.args.wrap_with or '$$'
		for _, v in ipairs(frame:getParent().args) do
			local r = template:gsub("%$%$", v)
			table.insert(modified, r)
		end
		return table.concat(modified, frame.args.joiner or ", ")
	end
}