FANDOM



Template documentation
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

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>}} or yyyy-mm-dd, defaults to {{Updated|MediaWiki:{{BASEPAGENAME}}/code.js}})
Other important submodules can be noted with Updatedn, 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 Submodulen, 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

TypeDescription
  • user
  • user tools
Category:JavaScript/User tools

Generic user tools, global navigation customisations or personal utilities.

  • management
  • page management
  • file management
Category:JavaScript/Page and file management

Utilities that aid in management of page and file content & metadata.

  • site enhancement
  • site
Category:JavaScript/Site enhancements

Scripts adding new features to a wiki or Fandom product.

  • fixes
  • bug fixes
Category:JavaScript/Bug fixes

Scripts that fix existing bugs in the Fandom ecosystem.

  • integration
  • site integration
Category:JavaScript/Site integration

Scripts that add support for embedding an external platform.

  • editing
  • editing tools
Category:JavaScript/Editing tools

Versatile tools used to improve or automate editing.

user managementCategory:JavaScript/User management

Tools that aid in user management (reversion, blocks etc).

  • talk
  • talk tools
Category:JavaScript/Talk tools

Scripts that enhance talk pages, comments and threads.

  • chat scripts
  • chat
  • chat extensions
Category:Chat Scripts

Scripts that modify Fandom Chat.

  • discussions extensions
  • discussions scripts
  • discussions
Category:Discussions Scripts

Scripts that modify Fandom Discussions.

  • developer tools
  • developer
Category:JavaScript/Developer tools

Scripts that aid in code development.

  • dependencies
  • libraries
Category:JavaScript/Libraries

Scripts that are designed to be used in other scripts.

modernizationCategory:Modernization

Items associated with the Modernization community project.

Dependencies

See also

Text above can be found here (edit)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+