![]() | This is a documentation subpage for Template:Userscript. It may contain usage information, categories and other content that is not part of the original template page. |
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
- ^ Copy the following code, edit your user JavaScript, then paste:
{{subst:lusc|1=User:TheDJ/sharebox.js}}