Template:Userscript/doc

This is an old revision of this page, as edited by Equazcion (talk | contribs) at 02:01, 2 October 2013. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This template is used to create userscript listings, primarily for use at Wikipedia:WikiProject User scripts/Scripts, but it can be used on any page.

Usage

All parameters are optional except for "name".

{{ userscript |name= [script name] |code= [.js address] |doc= [documentation page address] }}

Example

{{userscript|name=Sharebox|code=User:TheDJ/sharebox.js|doc=User:TheDJ/Sharebox}}

Produces: Sharebox[1] (source)

Additional parameter

This template enables automatic installation for editors who use User:Equazcion/ScriptInstaller. To disable automatic installation, use the following parameter:

|noautoinstall=yes


  1. ^ Copy the following code, edit your user JavaScript, then paste:
    {{subst:lusc|1=User:TheDJ/sharebox.js}}