10,735
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 36: | Line 36: | ||
local without = mw.ustring.gsub(linker, "%[[^%*%[%]]+%]", "") | local without = mw.ustring.gsub(linker, "%[[^%*%[%]]+%]", "") | ||
local escaped = mw.ustring.gsub(linker, "([%[%]%*])", "%%%1") | local escaped = mw.ustring.gsub(linker, "([%[%]%*])", "%%%1") | ||
head = mw.ustring.gsub(head, "%*" .. escaped .. "%*", "*" .. with .. ":" .. without .. "*") | head = mw.ustring.gsub(head, "%*" .. escaped .. "%*", "*" .. with .. ":" .. without .. "*") | ||
end | end |