Module:ContactManager/ReplacePipe

From Wikisphere
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
(No difference)

Latest revision as of 16:29, 8 June 2025

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

local p = {}

function p.replacePipeArr(frame)
    local args = frame.args
    local replaced = {}

    for k, v in pairs(args) do
        local str = tostring(v):gsub("|", "{{!}}")
        replaced[k] = str
    end

    return table.concat(replaced, ", ")
end

return p