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

Content deleted Content added
No edit summary
m tw
Line 321:
// regex(/(\|[ ]*)(\{\{\s*[Ff]lag(?:icon|)\|(?:[^{}]+|)\}\})[ ]*(\{\{\s*flag(?:icon|)\|(?:[^{}]+|)\}\})[ ]*(\[\[[-–'é\w ]+\|)((?:1\d\d|20[0-2])\d\]\])/gi, '$1$4$2/$3 $5'); // curing Easter egg
// 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(/\[\[(Mar-a-Lago)\]\]/gi, '$1');
setreason('per [[MOS:FLAGRELEVANCE]]', 'appendonce');