Template:Infobox user script

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Infobox user script
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage[change | change source]

Place the following at the top of the script page:

{{infobox user script
 | name = script name

 | author = script author
 | updated = last update date
 | status = development status
 | source = link to source code
 | skins = supported skins
 | browsers = supported browsers

 | mainsource = main source file to install
 | install-page = page to preload when installing
 | install-target = page to install to
}}

The following parameters are recognized:

name
The name of the script. Defaults to including page name.
author
updated
The date of last update. {{start date and age}} may be helpful here.
status
Script's development status: inactive, stable, experimental.
source
skins
browsers

The following parameters can aid in automatic installation:

install-page
If included, an "Install" button will appear, which will open the install-target subpage in the user's namespace, with the contents of install-page preloaded, making script installation as easy as two mouse clicks.
mainsource
The main source file, which is to be loaded from the user's custom script.
install-target
The preferred page on which the script should be included. The default is common.js.