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

Content deleted Content added
No edit summary
No edit summary
Line 323:
regex(/{{[Ff]lagicon\|([^}(|]+)(?: \((?:U\. ?S\. |US |)state\)(?:\|\d+|))}}\s*(\'{0,3})\s*(?:\[\[[^\]]+\]\])\s*(\'{0,3})/gi, '$2$1$3'); //using template for List of presidential trips
regex(/\{\{Flag\|[^|]+\|(?:\s*name=\s*)([^\}]+)\}\}/gi, '$1');
regex(/\{\{Flagicon\|[^}(|]+(?:\|\d+|)\}\}\s*(\'{0,3})\s*\[\[([\w\s]+)\]\]\s*(\'{0,3})/gi, '$1$2$3');
regex(/\{\{(?:[Ff]lag(?:country|u?)\|\s*([^{}|]*)(?:\|\d{4}|))\}\}/gi, '$1');
 
regex(/\{\{(?:[Ff]lag(?:country|u?)\|\s*([^{}|]*)(?:\|\d{4}|))\}\}/gi, '$1');
// regex(/\{\{(?:[Ff]lag(?:country|u?)\|\s*([^{}|]*))\}\}/
//
regex(/\[\[(Mar-a-Lago)\]\]/gi, '$1');
// \{\{Flagicon\|[^\}]+(?:\|\d+|)\}\}\s*(\'{0,3})\s*\[\[([^{}'|]*\||)([\w\s]+)\]\]\s*(\'{0,3})
// \{\{Flagicon\|[^}(|]+(?:\|\d+|)\}\}\s*(\'{0,3})\s*\[\[Georgia \(U.S. state\)\|(Georgia)\]\]''
regex(/\[\[(Mar-a-Lago)\]\]/gi, '$1');
regex(/\[\[(?:(?:West |)Palm Beach), Florida\|([A-Za-z\s]+)\]\]/gi, '$1');
setreason('per [[MOS:FLAGRELEVANCE]]', 'appendonce');