This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template is used to create userscript listings, primarily for use at Wikipedia:User scripts, but it can be used on any page.
{{userscript |code= [.js address] |name= [script name] |doc= [documentation page address] }}
At least |code=
-or- |doc=
is required. The template will attempt to determine defaults for any information not entered.
|name
parameter. It is just for display purposes.Default logic details
|
---|
|
|noautoinstall=yes
.|noref=yes
.All parameters specified: {{userscript|name=sharebox!!!!!|code=User:TheDJ/sharebox.js|doc=User:TheDJ/sharebox}}
Code only: {{userscript|code=User:TheDJ/sharebox.js}}
Doc only: {{userscript|doc=User:TheDJ/sharebox}}
Use {{reflist}}
to produce specific installation instructions:
{{subst:lusc|1=User:TheDJ/sharebox.js}}
{{subst:lusc|1=User:TheDJ/sharebox.js}}
{{subst:lusc|1= User:TheDJ/sharebox.js}}