Content deleted Content added
No edit summary |
m Adding Category:Wikipedia user script templates using Cat-a-lot |
||
(46 intermediate revisions by 8 users not shown) | |||
Line 1:
{{Documentation subpage}}__NOTOC__
{{intricate template}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
Line 5 ⟶ 6:
== Usage ==
<code><nowiki>{{
At least <code>|code=</code> ''' -or- ''' <code>|doc=</code> 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 <code>|name</code> parameter. It is just for display purposes.
{{collapse top|1=Default logic details}}
* The template will add .js to the documentation page name to get a default code page, or remove .js from the code page name to get a default documentation page.
** Entering <code>|code='''User:TheDJ/Sharebox'''.js</code> will look for a page named '''User:TheDJ/Sharebox''', and if found, will be linked as the documentation page.
** Entering <code>|doc='''User:TheDJ/Sharebox'''</code> will look for a page named '''User:TheDJ/Sharebox<span style="color:red">.js</span>''', and if found, will be linked as the code page.
* If the default pages don't actually exist, they won't be linked (so defaults shouldn't produce red links).
* If no name is entered, a default name will be produced from the code or doc page name.
{{collapse bottom}}
===
* This template enables an automatic installation link for editors who use automatic installer scripts like [[User:Enterprisey/script-installer]] or [[User:Equazcion/ScriptInstaller]].
<code><nowiki>{{userscript|name=Sharebox|code=User:TheDJ/sharebox.js|doc=User:TheDJ/Sharebox}}</nowiki></code>▼
* To suppress the creation of a footnote with installation instructions, set {{para|noref|yes}}.
== Examples ==
'''Produces:''' {{userscript|name=Sharebox|code=User:TheDJ/sharebox.js|doc=User:TheDJ/Sharebox}}▼
▲All parameters specified: <code><nowiki>{{userscript|name=
▲
*Produces: {{userscript|code=User:TheDJ/sharebox.js}}
Doc only: <code><nowiki>{{userscript|doc=User:TheDJ/sharebox}}</nowiki></code>
*Produces: {{userscript|doc=User:TheDJ/sharebox}}
Use <code><nowiki>{{
{{reflist}}
==See also==
▲'''Produces:''' {{userscript|name=Sharebox|code=User:TheDJ/sharebox.js}}
* [[Wikipedia:User scripts/List]]
{{Wikipedia:User scripts/Navbox}}
<includeonly>{{Sandbox other||▼
▲This template enables automatic installation for editors who use [[User:Equazcion/ScriptInstaller]]. To disable automatic installation, use the following parameter:
[[Category:Wikipedia scripts|*]]
[[Category:Wikipedia user script templates]]
}}</includeonly>▼
▲<includeonly>
▲</includeonly>
|