Jump to content
Wikipedia The Free Encyclopedia

Template:Js

From Wikipedia, the free encyclopedia
mw.loader.load('{{subst:fullurl:{{{1}}}|action=raw&ctype=text/javascript}}');// Backlink: [[:{{{1}}}]]
Template documentation[view] [edit] [history] [purge]
This template should always be substituted (i.e., use {{subst:Js}}).

Usage

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

This template has not been added to any categories . Please help out by adding categories to it so that it can be listed with similar templates.
The above documentation is transcluded from Template:Js/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /