Jump to content

User:Lewismaster/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:Lightmouse/monobook.js/script.js');
importScript('User:Ohconfucius/script/MOSNUM dates.js');  //[[User:Ohconfucius/script/MOSNUM dates.js]]

//'''Instructions for installation'''
//*EITHER: If you have a [[Special:Mypage/monobook.js|monobook]] already, go to it, click "edit this page", and paste in this string underneath your existing script:
//:<code><nowiki>importScript('User:Lightmouse/monobook.js/script.js');</nowiki></code>
//*OR: If you don't have a monobook.js page, create one using this title:
//:<code><nowiki>[[User:[your username]/monobook.js]]</nowiki></code>
//:Then click on "edit this page" and paste in at the top the "importScript" string you see three lines above here.
//*Hit "Save page".
//*Refresh your cache (instructions at top of monobook). 
//*You're ready to start.

//'''Applying the script—it's very simple'''
//*Go to an article and determine whether US or international format is used. (For this purpose, it's best to have selected "no preferences" for dates in your user preferences, which will display the raw date formats that our readers see. Otherwise, you'll need to check in edit mode.) Occasionally, you'll see that the wrong format is used (check [[Wikipedia:Mosnum#Full_date_formatting|MOSNUM's guidance on this]] carefully). 
//*Click on "edit this page". You'll see the list of script commands under "what links here". Click on either "delink all dates to mdy" (US format) or "delink all dates to mdy" (international format).
//*The diff will automatically appear. Check through the changes you're making before saving them. If there are problems, fix them manually before saving, or cancel.
//*Leave a note at the article talk page if editors need to negotiate which format to use, or need to be alerted to any other date-related issues.
//*Click on "Save page": it's done.