Content deleted Content added
Ohconfucius (talk | contribs) No edit summary |
Ohconfucius (talk | contribs) ohc_strip_flagicon |
||
Line 334:
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, '');
setreason('[[MOS:INFOBOXFLAG|avoid flags in infoboxes]]', 'appendonce');
}
Line 346 ⟶ 353:
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()', 'No_FLAGICON', 'flagcruft_states', 'cruft', '', '');
mw.util.addPortletLink('p-tb', 'javascript:Ohc_flag_to_country()', 'FLAG->COUNTRY', 'cruft', 'cruft', '', '');
|