Template:Install user script/doc: Difference between revisions

Content deleted Content added
note on cross-wiki loads
m importScript() vs mw.loader.load(): Typo fixing, replaced: the the → the
Line 30:
importScript():
 
* Is less verbose, only needing the string of the the page you're loading.
* Is more restrictive, only allowing the loading of Wikipedia pages in the user or MediaWiki namespaces.
* Can load from other Wikimedia wikis, using a prefix such as "c" for "commons". For example, <code>importScript('c:User:YourName/test.js');</code>