Content deleted Content added
Ohconfucius (talk | contribs) No edit summary |
Ohconfucius (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
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(/\[\[(?:(?:West |)Palm Beach), Florida\|([A-Za-z\s]+)\]\]/gi, '$1');
setreason('per [[MOS:FLAGRELEVANCE]]', 'appendonce');
}
function ohc_strip_flagicon(){
//Add a tag to the summary box
regex(/\{\{(?:[Ff]lag(?: ?icon)\|\s*([^{}|]*)(?:\|\d{4}|))\}\}\s*/gi, '');
regex(/(\! width=)550(\|Details)/gi, '$1700$2');
setreason('per [[MOS:FLAGRELEVANCE]]', 'appendonce');
}
Line 341 ⟶ 354:
mw.util.addPortletLink('p-tb', 'javascript:ohc_flagcruft_driver()', 'FLAGCRUFT', 'cruft', 'cruft', '', '');
mw.util.addPortletLink('p-tb', 'javascript:Ohc_US_states_driver()', 'FLAGRELEVANCE', 'flagcruft_states', 'cruft', '', '');
mw.util.addPortletLink('p-tb', 'javascript:ohc_strip_flagicon()', 'NoFLAGICON', 'flagcruft_states', 'cruft', '', '');
mw.util.addPortletLink('p-tb', 'javascript:Ohc_flag_to_country()', 'FLAG->COUNTRY', 'cruft', 'cruft', '', '');
|