Editing Module:Navbox
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 172: | Line 172: | ||
-- local linkrep = mw.ustring.gsub(link,'([%%%]%[%-^$*()+?])','%%%1') |
-- local linkrep = mw.ustring.gsub(link,'([%%%]%[%-^$*()+?])','%%%1') |
||
-- local _link = mw.ustring.gsub(link,' ','_') |
-- local _link = mw.ustring.gsub(link,' ','_') |
||
-- local newfile = mw.ustring.gsub(v,'|link='..linkrep,string.format('|link=https:// |
-- local newfile = mw.ustring.gsub(v,'|link='..linkrep,string.format('|link=https://oldschool.runescape.wiki/w/%s?f=%s',_link,name)) |
||
-- local w = mw.ustring.gsub(v,'([%%%]%[%-^$*()+?])','%%%1') |
-- local w = mw.ustring.gsub(v,'([%%%]%[%-^$*()+?])','%%%1') |
||
-- group2 = mw.ustring.gsub(group2,w,newfile) |
-- group2 = mw.ustring.gsub(group2,w,newfile) |
||
Line 189: | Line 189: | ||
-- else |
-- else |
||
-- local _link = mw.ustring.gsub(link or '',' ','_') |
-- local _link = mw.ustring.gsub(link or '',' ','_') |
||
-- newlink = string.format('[https:// |
-- newlink = string.format('[https://oldschool.runescape.wiki.com/w/%s?n=%s %s]',_link,name,txt) |
||
-- end |
-- end |
||
-- local w = mw.ustring.gsub(v,'([%%%]%[%-^$*()+?])','%%%1') |
-- local w = mw.ustring.gsub(v,'([%%%]%[%-^$*()+?])','%%%1') |
||
Line 201: | Line 201: | ||
-- group3 = group2 |
-- group3 = group2 |
||
-- for v in mw.ustring.gmatch(group2,'%[https:// |
-- for v in mw.ustring.gmatch(group2,'%[https://oldschool.runescape.wiki.com/w[^%]]-%]%a') do |
||
-- local rep = mw.ustring.gsub(v,'%]','') |
-- local rep = mw.ustring.gsub(v,'%]','') |
||
-- rep = rep..']' |
-- rep = rep..']' |