Module:Template invocation: Difference between revisions

    (create module for making template invocations from a template name and a table of arguments, based from User:Anomie's code in Module:Unsubst)
     
    (escape the equals sign as well)
    Line 17: Line 17:
    openb = '{{',
    openb = '{{',
    closeb = '}}',
    closeb = '}}',
    pipe = '|'
    pipe = '|',
    equals = '='
    }
    }
    if format == 'nowiki' then
    if format == 'nowiki' then
    Line 41: Line 42:
    ret[#ret + 1] = seps.pipe
    ret[#ret + 1] = seps.pipe
    ret[#ret + 1] = k
    ret[#ret + 1] = k
    ret[#ret + 1] = '='
    ret[#ret + 1] = seps.equals
    ret[#ret + 1] = v
    ret[#ret + 1] = v
    end
    end