User:Davey2010/Scripts

Copypasted page and scripts from en:User:Ohconfucius/script

Active scripts

change
  • 1 MOSNUM dates – changes dates to a single format throughout the article;
DMY = Day/Month/Year (26 November 2024) - For British Articles
DMY = Month/Day/Year (November 26, 2024) - For American Articles
Big endian ref dates (now disabled - Adds |cs1-dates= to {{Use dmy dates}} or {{Use mdy dates}} causing dates to be changed to 2024-11-26 YMD format),
Used to be YYYYMMDD = Year/Month/Day (2024-11-26) - For articles where British and America is generally joined
  • 2 formatgeneral – fixes some general formatting
  • 3 Sources – fixes references, specific formatting of various parameters within <ref></ref> and within {{citation}} templates
  • 4 EngvarB – changes spelling in articles to British English spelling or Canadian English and American English spelling. Please note that {{EngvarB}} is now independent of any British English templating. Its own categorisation also independent of British (or indeed any other) English variant categorisation.

Installing the scripts

change
  1. Open your common.js in edit mode (or, go to your user page and add "/common.js" to the end of the URL and open the page in edit mode).
    • If you prefer to load this only on a specific skin, such as monobook, open your monobook.js in edit mode.
    • If you make a straight copy of this script, instead of "importing" it, you may not benefit from the enhancements and bug-fixes that are made from time to time. In the latter case, you may choose to watchlist this page so you will know when to update your copy for modifications to this script.
  2. Copy any of the below codes onto the JavaScript page you have chosen in the previous step:
  3. importScript('User:Davey2010/script/MOSNUM dates.js');
    importScript('User:Davey2010/script/formatgeneral.js');
    importScript('User:Davey2010/script/Sources.js');
    importScript('User:Davey2010/script/EngvarB.js');
  4. Save the page and (re-)load it – refresh the cache by following the instructions at the top of your JavaScript page.
  5. Bookmark the script page. This will be your cue to purge the cache on your browser for any updates to take effect.

Disclaimer: Use at your own risk and make sure you check the edit changes before you save.

Inactive scripts

change
  • Common Terms unlinks words that for the Simple Wikipedia are actually useful/helpful,
  • Dashes replaces - with and however just these edits alone shouldn't be made as they're only cosmetic changes (edits that don't change the page shouldn't be made) so this script hasn't been installed.