Module:Redirect: Difference between revisions
duh
(Trying a bracket option after all. But only if chosen) |
(duh) |
||
Line 13: | Line 13: | ||
if mw.ustring.gsub(rname,"%s","") == "" then return "" end | if mw.ustring.gsub(rname,"%s","") == "" then return "" end | ||
if bracket then | if bracket then | ||
local strip=mw.ustring. | local strip=mw.ustring.gmatch(rname,"%[%[(.+)%]%]") | ||
if strip then rname=strip;bb="[[";be="]]" end | if strip then rname=strip;bb="[[";be="]]" end | ||
end | end |