Template:Infobox user script/doc
This is a documentation subpage for Template:Infobox user script. It contains usage information, categories and other content that is not part of the original template page. |
Usage
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.