Module:Navbox: Difference between revisions

no edit summary
(base cp from rsw)
 
No edit summary
 
Line 172:
-- local linkrep = mw.ustring.gsub(link,'([%%%]%[%-^$*()+?])','%%%1')
-- local _link = mw.ustring.gsub(link,' ','_')
-- local newfile = mw.ustring.gsub(v,'|link='..linkrep,string.format('|link=https://oldschoolbrightershoreswiki.runescape.wikiorg/w/%s?f=%s',_link,name))
-- local w = mw.ustring.gsub(v,'([%%%]%[%-^$*()+?])','%%%1')
-- group2 = mw.ustring.gsub(group2,w,newfile)
Line 189:
-- else
-- local _link = mw.ustring.gsub(link or '',' ','_')
-- newlink = string.format('[https://oldschoolbrightershoreswiki.runescape.wiki.comorg/w/%s?n=%s %s]',_link,name,txt)
-- end
-- local w = mw.ustring.gsub(v,'([%%%]%[%-^$*()+?])','%%%1')
Line 201:
-- group3 = group2
 
-- for v in mw.ustring.gmatch(group2,'%[https://oldschoolbrightershoreswiki.runescape.wiki.comorg/w[^%]]-%]%a') do
-- local rep = mw.ustring.gsub(v,'%]','')
-- rep = rep..']'