Template:Js/sandbox
Appearance
mw.loader.load('{{subst:fullurl:{{{1}}}|action=raw&ctype=text/javascript}}'); // Backlink: [[:{{{1}}}]]
This is the template sandbox page for Template:Js (diff). |
This template should always be substituted (i.e., use {{subst:Js}} ). |
Usage
[edit]This template is for easy installation of JavaScript code — use {{subst:js|page_with_code.js}}
in your skin.js (see Wikipedia:Skin for details).
The above link should work for your current skin. These are the JavaScript file names left for reference:
Skin used | Skin JavaScript file |
---|---|
All skins | common.js |
Vector (default) | vector.js |
MinervaNeue | minerva.js |
Modern | modern.js |
MonoBook | monobook.js |
Timeless | timeless.js |
See also
[edit]- Template:Load user script, an alternative to this template. It allows for greater portability (e.g. use on other wikis).