Module:Section link/sandbox: Difference between revisions

Content deleted Content added
m rm double quotes as well
update normalization
Line 12:
 
local function normalizeTitle(title)
title = mw.ustring.gsub(string.lower(title),"_"," ")
title = mw.ustring.gsub(title,"'","")
title = mw.ustring.gsub(title,'"','')
title = mw.ustring.gsub(title,"%b<>","")
title =return mw.ustringtitle.gsubnew(title,"^:","").prefixedText
title = mw.ustring.gsub(title,":([^%s])",": %1",1)
return title
end