dev
Documentation icon Template documentation
[view] [edit] [history] [purge]

Note: parts of or the entire template might not be visible without values provided.

About this template

Description
This template instructs users on how to install JavaScript on their wiki.
Syntax
{{Script Install|Use = <scope>|codepage = <script pagename>}}
Dependencies
Module:Install and Module:I18n.
Translation
The template translations are stored at:

Parameters

This template instructs users on how to install JavaScript on their wiki.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Code Pagecodepage

Page name of the script - in the format “Script.js” (internal) or “wiki:Script.js” (external). It's assumed to be in the MediaWiki namespace, so it's unnecessary to include the namespace name.

Default
MediaWiki:{{BASEPAGENAME}}.js
Page nameoptional
Usage ScopeUse

Usage scope of the script - see Module:Install/config for options.

Default
Ideally left blank, but internally “default”.
Stringoptional
Supports Vanilla MediaWiki?VanillaMW

Whether the Script works on non-Fandom MediaWiki installations.

Default
0
Auto value
1
Booleanoptional

Preview