![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
This template is used to create userscript listings, primarily for use at Wikipedia:User scripts, but it can be used on any page.
Usage
{{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.
- Check the accuracy of the links after placing this template! If any defaults are incorrect for your script, enter the necessary parameters explicitly.
- If you end up leaving the template with no "(source)" link produced, make sure your documentation page includes complete installation instructions, along with any necessary code page addresses.
- You can make up any name for the
|name
parameter. It is just for display purposes.
Default logic details |
---|
|
Additional parameters
- This template enables an automatic installation link for editors who use automatic installer scripts like User:Enterprisey/script-installer or User:Equazcion/ScriptInstaller. If you have reason to disable automatic installation for a particular script (e.g. because it requires more than just the usual importScript line), add the following parameter:
|noautoinstall=yes
. - To suppress the creation of a footnote with installation instructions, set
|noref=yes
.
Examples
All parameters specified: {{userscript|name=sharebox!!!!!|code=User:TheDJ/sharebox.js|doc=User:TheDJ/sharebox}}
- Produces: sharebox!!!!![1] (source)
Code only: {{userscript|code=User:TheDJ/sharebox.js}}
Doc only: {{userscript|doc=User:TheDJ/sharebox}}
Use {{reflist}}
to produce specific installation instructions:
See also
🔥 Top keywords: Main PageSpecial:SearchPage 3Wikipedia:Featured picturesHouse of the DragonUEFA Euro 2024Bryson DeChambeauJuneteenthInside Out 2Eid al-AdhaCleopatraDeaths in 2024Merrily We Roll Along (musical)Jonathan GroffJude Bellingham.xxx77th Tony AwardsBridgertonGary PlauchéKylian MbappéDaniel RadcliffeUEFA European Championship2024 ICC Men's T20 World CupUnit 731The Boys (TV series)Rory McIlroyN'Golo KantéUEFA Euro 2020YouTubeRomelu LukakuOpinion polling for the 2024 United Kingdom general electionThe Boys season 4Romania national football teamNicola CoughlanStereophonic (play)Gene WilderErin DarkeAntoine GriezmannProject 2025