Jump to content

User:Sross (Public Policy)/student.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:Shubinator/DYKcheck.js'); //DYKcheck tool

// Provides links back to the userpage from the subpages that the tutorial asks them to edit
var listOfTutorialSubpages = ["User:" + wgUserName + "/My sandbox", "User:" + wgUserName + "/My project", "User:" + wgUserName + "/My course page", "User:" + wgUserName + "/vector.js"];

if(listOfTutorialSubpages.indexOf(wgPageName.replace(/_/g, ' ')) !=-1 ){ 
    jsMsg('<div style="font-size:120%">Once you save the page and you are ready to continue, <a href="http://en.wikipedia.org/w/index.php?title=User:' + wgUserName + '&action=purge">click here to return to your userpage</a>.</div>');
}