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

Content deleted Content added
No edit summary
US state
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\. state\)| )(\'{0,3})(?:\[\[(?:[^\]]+)\]\])\'{0,3}/gi, '$2$1$2'); //using template for List of presidential trips
regex(/\{\{(?:[Ff]lag(?:country|u?)\|[ ]*([^{}]*))\}\}/gi, '$1');
setreason('[[MOS:FLAGRELEVANCE|flags lacking in relevance]]', 'appendonce');