More actions
No edit summary |
yay multiple returns great feature |
||
Line 4: | Line 4: | ||
local template = frame.args.wrap_with or '$$' | local template = frame.args.wrap_with or '$$' | ||
for _, v in ipairs(frame:getParent().args) do | for _, v in ipairs(frame:getParent().args) do | ||
local r = template:gsub("%$%$", v) | |||
table.insert(modified, r) | |||
end | end | ||
return table.concat(modified, frame.args.joiner or ", ") | return table.concat(modified, frame.args.joiner or ", ") | ||
end | end | ||
} | } |
Latest revision as of 02:48, 29 September 2024
Documentation for this module may be created at Module:ArgConcat/doc