Template:Userscript/doc: Difference between revisions

Content deleted Content added
No edit summary
Line 12:
* You can override the automatic name and documentation page links by entering those parameters explicitly.
 
== Examples ==
*'''Example with justall theparameters code parameterspecified:''' <code><nowiki>{{userscript|name=Sharebox|code=User:TheDJ/sharebox.js|doc=User:TheDJ/Sharebox}}</nowiki></code>
*'''Produces:''' {{userscript|name=Sharebox|code=User:TheDJ/sharebox.js|doc=User:TheDJ/Sharebox}}
<hr>
*'''Example with alljust parametersthe specifiedcode parameter:''' <code><nowiki>{{userscript|name=Sharebox|code=User:TheDJ/sharebox.js|doc=User:TheDJ/Sharebox}}</nowiki></code>
*'''Produces:''' {{userscript|code=User:TheDJ/sharebox.js}}
 
=== Additional parameter ===
'''Produces:''' {{userscript|name=Sharebox|code=User:TheDJ/sharebox.js|doc=User:TheDJ/Sharebox}}
This template enables automatic installation for editors who use [[User:Equazcion/ScriptInstaller]]. ToIf you have reason to disable automatic installation for a particular script (eg. because it requires more than just the usual importScript line), use the following parameter:
<hr>
'''Example with just the code parameter:''' <code><nowiki>{{userscript|code=User:TheDJ/sharebox.js}}</nowiki></code>
 
'''Produces:''' {{userscript|code=User:TheDJ/sharebox.js}}
 
=== Additional parameter ===
This template enables automatic installation for editors who use [[User:Equazcion/ScriptInstaller]]. To disable automatic installation, use the following parameter:
 
<code><nowiki>|noautoinstall=yes</nowiki></code>