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

Content deleted Content added
Undid revision 1295914009 by Ohconfucius (talk)
No edit summary
Line 322:
// regex(/(\{\{\s*[Ff]lag(?:icon|)\|(?:[^{}]+|)\}\})[ ]*((?:\'\'\'?|)\[\[[-–'é\w ]+\|)((?:1\d\d|20[0-2])\d\]\])/gi, '$2$1 $3'); // curing Easter egg
regex(/{{[Ff]lagicon\|([^}(|]+)(?: \((?:U\. ?S\.|US) state\)|\|\d+|)}} ?(\'{0,3})(?:\[\[[^\]]+\]\])(\'{0,3})/gi, '$2$1$3'); //using template for List of presidential trips
regex(/\{\{(?:[Ff]lag(?:country|u?)\|\s*([^{}|]*)(?:\|\d+{4}|))\}\}/gi, '$1');
// regex(/\{\{(?:[Ff]lag(?:country|u?)\|\s*([^{}|]*))\}\}/
regex(/\[\[(Mar-a-Lago)\]\]/gi, '$1');
setreason('per [[MOS:FLAGRELEVANCE]]', 'appendonce');