Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
add } to negated
m No need for the second ^ - The set is negated if the first character is an unescaped ^, meaning the second occurance is actually having that as part of the elements to not capture
Line 716:
local template_code = banner_name:getContent()
local parameters = {}
for parameter in template_code:gmatch('{{{([^|^}]+)') do
table.insert(parameters, parameter)
end