Note: parts of or entire template might not be visible without values provided.
Copy/paste
{{Infobox JavaScript | Description = | Author = | Updated = | Code = | Languages = {{l|en}} }}
Full version
{{Infobox JavaScript | Title = | Image file = | Image caption = | 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. (p = personal, s = site-wide, ps = personal and site-wide)
Updated
- Date of last update. (
{{Updated|<code page>}}
oryyyy-mm-dd
, defaults to{{Updated|MediaWiki:{{BASEPAGENAME}}/code.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
Updated
field. - 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:Chat Scripts Scripts that modify Fandom Chat. |
| 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 associated with the Modernization community project. |