Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
Undid revision 1167586962 by Gonnym (talk) - that causes errors
try this
Line 141:
local parameters = {}
local check_param = function(parameter)
local code = parameter .. '%s*=%s*{{{([^}]*)'-- gets code relating to the parameter until the first '}' is encountered
table.insert(parameters, string.match(template_code, parameter..'%s*=%s*{%{%{([%a%d_%s-]*)'))
for variant in string.gmatch(code, '{{{([^|]+)') do
table.insert(parameters, variant)
end
end
for _, parameter in ipairs(cfg.template_page.parameters.passthrough) do