Content deleted Content added
Ohconfucius (talk | contribs) No edit summary |
Ohconfucius (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 333:
regex(/\[\[(Mar-a-Lago)\]\]/gi, '$1');
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 346 ⟶ 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', '', '');
|