Hello, you have come here looking for the meaning of the word
Module:User:Surjection/wrapper. In DICTIOUS you will not only get to know all the dictionary meanings for the word
Module:User:Surjection/wrapper, but we will also tell you about its etymology, its characteristics and you will know how to say
Module:User:Surjection/wrapper in singular and plural. Everything you need to know about the word
Module:User:Surjection/wrapper you have here. The definition of the word
Module:User:Surjection/wrapper will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
Module:User:Surjection/wrapper, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
local export = {}
-- Wraps the template invocation with double-braces for ]
function export.wrap(frame)
local result = "⦃⦃" .. frame.args
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