User:Ohconfucius/script/flagcruft.js: Difference between revisions

Content deleted Content added
tweak to nowrap template removal
+
Line 301:
//rem linking templates
 
regex(/(\'{0,3}){{nowrap\| ?({{flagicon\|([^}]+)}} [^\n]+)}}(?=\n)/gi, '$1$2'); //using template with country identifier (for Wimbledon articles)
regex(/({{nowrap\| RD[2-4]-team\d\d=?(\'{0,3})({{flagicon\|([^}]+)}} [^\n]+)}}(?=\n)/gi, '$1$2'); //remusing flagtemplate fromwith tablecountry ofidentifier all(for butWimbledon first roundarticles)
regex(/(\| ?RD[2-4]-team\d\d=\'{0,3}){{flagicon\|([^}]+)}} ?/gi, '$1'); //rem flag from table of all but first round
regex(/{{flagicon\|([^}]+)}} ?(\'{0,3}\[\[(?:[^\]]+)\]\])/gi, '{{flagathlete|$2|$1}}'); //using template with country identifier (for Wimbledon articles)