Module:User:Surjection/wrapper
Appearance
- This module sandbox lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
local export = {}
-- Wraps the template invocation with double-braces for [[Module:invoker]]
function export.wrap(frame)
local result = "⦃⦃" .. frame.args[1]
local args = frame:getParent().args
for _, v in ipairs(args) do
result = result .. "¦" .. v
end
for k, v in pairs(args) do
if type(k) ~= "number" then
result = result .. "¦" .. tostring(k) .. "=" .. v
end
end
return result .. "⦄⦄"
end
return export