Module:head: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
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")
mw.log(escaped)
head = mw.ustring.gsub(head, "%*" .. escaped .. "%*", "*" .. with .. ":" .. without .. "*")
head = mw.ustring.gsub(head, "%*" .. escaped .. "%*", "*" .. with .. ":" .. without .. "*")
end
end

Navigation menu