Template:Userscript/doc: Difference between revisions

Content deleted Content added
Line 13:
* 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.
Line 19:
* 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}}
 
== Examples ==