Note: parts of or the entire template might not be visible without values provided.
Copy/paste
{{Infobox JavaScript
| Type =
| Description =
| Author =
| Updated =
| Code =
| Languages = {{l|en}}
}}
Full version
{{Infobox JavaScript
| Title =
| Image file =
| Image caption =
| Type =
| Status =
| Description =
| Author =
| Using code by =
| Other attribution =
| Scope =
| Updated =
| Code =
| Languages = {{l|en}}
| Examples =
}}
Translation
The template translations are stored at:
Usage
Mandatory parameters
Description- Short description of script's purpose.
Author- Author(s) of the script.
Code- Page(s) containing the script's source code.
Languages- Supported languages:
-
- Auto list -
{{language list|source-js=MediaWiki:<SCRIPTNAME>}} - I18n-js -
auto - Manual -
{{l|<code1>|<code2>|<...>}} - System messages -
mw - Auto list with custom source (shortcut to Module:Language list) -
custom. Requires one of following parameters:- source-js -
Mediawiki:Script.js - source-json -
Mediawiki:Custom-Script/i18n.json - source-lua -
Module:Module
- source-js -
- Auto list -
Type- Comma-delimited list of JavaScript item category keys (see #Types).
Optional parameters
Title- Name of script (default: PAGENAME).
Image caption- Caption for image.
Image file- Filename of screenshot (without "File:").
Using code by- When reusing code, name of this code's author(s).
Other attribution- For crediting users that did not author the script nor produce code used in it.
Status- Release status:
-
- unstable (broken - do not use this extension)
- experimental (early stages of development, may change drastically)
- beta (stable but not fully tested)
- stable (stable version)
- unmaintained (unmaintained - previously claimed to be stable, now unmaintained)
- archive (archived - deprecated or merged with another extension)
- unknown (default)
Scope- The recommended scope of the script, i.e. whether it is for "personal" or "site-wide" use:
porpersonal- For Personal use
sorsite-wide- For Site-wide use
mworvanilla mediawiki- For use on vanilla (non-Fandom) MediaWiki installations
/or,, e.g.:| Scope = p/s/mwor| Scope = personal, site-wide, vanilla mediawiki Updated- Date of last update. (
{{Updated|<code page>}}oryyyy-mm-dd, defaults to{{Updated|MediaWiki:{{BASEPAGENAME}}.js}}) - Other important submodules can be noted with Updated
n, where n is a two-indexed integer (n >= 2). Submodule- Name of the first submodule - by default "original" and not present in the
Updatedfield. - Other important submodules can be noted with Submodule
n, where n is a two-indexed integer (n >= 2). - These parameters can be substituted into infobox inputs using
$n. Examples- For providing links to sites that import/use this code (i.e.
[[w:c:wow|WoWWiki]]).
Types
Syntax: | Type = bug fixes, editing
| Type | Description |
|---|---|
| Category:JavaScript/User tools Generic user tools, global navigation customizations or personal utilities. |
| Category:JavaScript/Page and file management Utilities that aid in management of page and file content and metadata. |
| Category:JavaScript/Site enhancements Scripts adding new features to a wiki or Fandom product. |
| Category:JavaScript/Bug fixes Scripts that fix existing bugs in the Fandom ecosystem. |
| Category:JavaScript/Site integration Scripts that add support for embedding an external platform. |
| Category:JavaScript/Editing tools Versatile tools used to improve or automate editing. |
user management | Category:JavaScript/User management Tools that aid in user management (reversion, blocks etc). |
| Category:JavaScript/Talk tools Scripts that enhance talk pages, comments and threads. |
| Category:Discussions Scripts Scripts that modify Fandom Discussions. |
| Category:JavaScript/Developer tools Scripts that aid in code development. |
| Category:JavaScript/Libraries Scripts that are designed to be used in other scripts. |
modernization | Category:Modernization Items modernizing the wiki interface. |
Dependencies
See also
TemplateData
Information about a JavaScript enhancement
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | Title | Name of script | String | suggested |
| Script category | Type | Comma-delimited list of JavaScript item category keys (See [[Template:Infobox_JavaScript#Types]])
| Line | required |
| Release status | Status | no description
| Unknown | optional |
| Script description | Description | Short description of script's purpose | Content | required |
| Author | Author | Author(s) of the script | Unknown | required |
| Using code by | Using code by | no description | Unknown | optional |
| Other attribution | Other attribution | no description | Unknown | optional |
| Scope | Scope | The recommended scope of the script, i.e. whether it is for "personal" or "site-wide" use:
Scopes may be additionally combined using “/” or “,”, e.g.: “Scope = p/s/mw” or “Scope = personal, site-wide, vanilla mediawiki” | String | suggested |
| Scope-text | Scope-text | no description | Unknown | optional |
| pr | pr | no description | Unknown | optional |
| Updated | Updated | Date of last update
| String | optional |
| Code | Code | no description | Unknown | required |
| Languages | Languages | Supported languages
| String | required |
| Examples | Examples | no description | Unknown | optional |
| Image file | Image file | no description | Unknown | optional |
| Image caption | Image caption | no description | Unknown | optional |
| Submodule | Submodule | Name of the first submodule | Unknown | optional |