Jump to content

User:Evad37/rater.js and User:Evad37/rater/sandbox.js: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Updating to version 2
Tag: Replaced
 
NamespaceInputWidget is just part of mediawiki.widgets
 
Line 3: Line 3:
> Helps assess WikiProject banners.
> Helps assess WikiProject banners.


This script is a loader that will load the actual script from the /app.js subpage
This script is a loader that will load the actual script from User:Evad37/rater/sandbox/app.js
once Resource loader modules are loaded and the page DOM is ready.
once Resource loader modules are loaded and the page DOM is ready.
Source code is available at https://github.com/evad37/rater
Source code is available at https://github.com/evad37/rater

THIS IS A PRE-APLHA SANDBOX VERSION, NOT INTENDED TO BE FULLY (OR AT ALL) FUNCTIONAL
***************************************************************************************************/
***************************************************************************************************/
// <nowiki>
// <nowiki>
Line 35: Line 37:
// Otherwise, load the rest of the script.
// Otherwise, load the rest of the script.
// Get the title using template substitution (so the same source file be used on both main and sandbox scripts)
// Get the title using template substitution (so the same source file be used on both main and sandbox scripts)
var title = /* </nowiki> */ "User:Evad37/rater/app.js"; /* <nowiki> */
var title = /* </nowiki> */ "User:Evad37/rater/sandbox/app.js"; /* <nowiki> */
mw.loader.load( "https://en.wikipedia.org/w/index.php?title="+title+"&action=raw&ctype=text/javascript" );
mw.loader.load( "https://en.wikipedia.org/w/index.php?title="+title+"&action=raw&ctype=text/javascript" );
});
});