Module:Sandbox/Codename Lisa/wbr test explained
local p = function p.parse(frame) local templateArgs = frame.args local s = templateArgs[1] or --Trim leading and trailing white space s = mw.ustring.gsub(s, "^%s*(.-)%s*$", "%1") -- Add before _ sequence s = mw.ustring.gsub(s,"(_+)","%1") -- Add before / sequence s = mw.ustring.gsub(s,"(/+)","%1") -- Add before . sequence s = mw.ustring.gsub(s,"(%.+)","%1") -- Add before - sequence -- DISABLED for now -- s = mw.ustring.gsub(s,"(%-+)","%1") -- Add before # sequence s = mw.ustring.gsub(s,"(%#+)","%1") return send return p