Module:ContactManager/ReplacePipe: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(No difference)

Latest revision as of 18:49, 24 May 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