Template:Js
From WikiAlpha
Revision as of 12:15, 11 January 2018 by LuisAnton (Talk | contribs) (Created page with "mw.loader.load('//en.wikipedia.org/w/index.php?title={{<includeonly>subst:</includeonly>urlencode:{{{1}}}}}&action=raw&ctype=text/javascript'); // [[{{{1}}}]]<noinclude> {{doc...")
mw.loader.load('//en.wikipedia.org/w/index.php?title=%7B%7B%7B1%7D%7D%7D&action=raw&ctype=text/javascript'); // [[{{{1}}}]]
[edit] [ ] Template documentation
Usage
This template is for easy installation of JavaScript code — use {{subst:js|page_with_code.js}}
in your skin.js (see Help:Skin for details).
The above link should work for all skins. These are the JavaScript file names left for reference:
Skin used | Skin JavaScript file |
---|---|
All skins | common.js |
Cologne Blue | cologneblue.js |
Modern | modern.js |
MonoBook | monobook.js |
Vector (default) | vector.js |
The above documentation is transcluded from Template:Js/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |