<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3AUserscript%2Fdoc</id>
	<title>Template:Userscript/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3AUserscript%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Userscript/doc&amp;action=history"/>
	<updated>2026-04-10T18:16:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Userscript/doc&amp;diff=16798&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;{{Documentation subpage}}__NOTOC__ {{intricate template}} &lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&gt;  This template is used to create userscript listings, primarily for use at Wikipedia:User scripts, but it can be used on any page.  == Usage == &lt;code&gt;&lt;nowiki&gt;{{userscript |code= [.js address] |name= [script name] |doc= [documentation page address] }}&lt;/nowiki&gt;&lt;/code&gt;  At least &lt;code&gt;|code=&lt;/code&gt; &#039;&#039;&#039; -or- &#039;&#039;&#039; &lt;code&gt;|doc=&lt;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Userscript/doc&amp;diff=16798&amp;oldid=prev"/>
		<updated>2023-04-19T11:57:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}}__NOTOC__ {{intricate template}} &amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;  This template is used to create &lt;a href=&quot;/index.php?title=WP:US&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:US (page does not exist)&quot;&gt;userscript&lt;/a&gt; listings, primarily for use at &lt;a href=&quot;https://en.wikipedia.org/wiki/User_scripts&quot; class=&quot;extiw&quot; title=&quot;wikipedia:User scripts&quot;&gt;Wikipedia:User scripts&lt;/a&gt;, but it can be used on any page.  == Usage == &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{userscript |code= [.js address] |name= [script name] |doc= [documentation page address] }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;  At least &amp;lt;code&amp;gt;|code=&amp;lt;/code&amp;gt; &amp;#039;&amp;#039;&amp;#039; -or- &amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;|doc=&amp;lt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}__NOTOC__&lt;br /&gt;
{{intricate template}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template is used to create [[WP:US|userscript]] listings, primarily for use at [[Wikipedia:User scripts]], but it can be used on any page.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{userscript |code= [.js address] |name= [script name] |doc= [documentation page address] }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At least &amp;lt;code&amp;gt;|code=&amp;lt;/code&amp;gt; &amp;#039;&amp;#039;&amp;#039; -or- &amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;|doc=&amp;lt;/code&amp;gt; is required. The template will attempt to determine defaults for any information not entered.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Check the accuracy of the links after placing this template!&amp;#039;&amp;#039;&amp;#039; If any defaults are incorrect for your script, enter the necessary parameters explicitly.&lt;br /&gt;
* If you end up leaving the template with no &amp;quot;(source)&amp;quot; link produced, make sure your documentation page includes complete installation instructions, along with any necessary code page addresses.&lt;br /&gt;
* You can make up any name for the &amp;lt;code&amp;gt;|name&amp;lt;/code&amp;gt; parameter. It is just for display purposes.&lt;br /&gt;
&lt;br /&gt;
{{collapse top|1=Default logic details}}&lt;br /&gt;
* 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. &lt;br /&gt;
** Entering &amp;lt;code&amp;gt;|code=&amp;#039;&amp;#039;&amp;#039;User:TheDJ/Sharebox&amp;#039;&amp;#039;&amp;#039;.js&amp;lt;/code&amp;gt; will look for a page named &amp;#039;&amp;#039;&amp;#039;User:TheDJ/Sharebox&amp;#039;&amp;#039;&amp;#039;, and if found, will be linked as the documentation page.&lt;br /&gt;
** Entering &amp;lt;code&amp;gt;|doc=&amp;#039;&amp;#039;&amp;#039;User:TheDJ/Sharebox&amp;#039;&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; will look for a page named &amp;#039;&amp;#039;&amp;#039;User:TheDJ/Sharebox&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;.js&amp;lt;/span&amp;gt;&amp;#039;&amp;#039;&amp;#039;, and if found, will be linked as the code page.&lt;br /&gt;
* If the default pages don&amp;#039;t actually exist, they won&amp;#039;t be linked (so defaults shouldn&amp;#039;t produce red links).&lt;br /&gt;
* If no name is entered, a default name will be produced from the code or doc page name.&lt;br /&gt;
{{collapse bottom}}&lt;br /&gt;
&lt;br /&gt;
=== Additional parameters ===&lt;br /&gt;
* 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: {{para|noautoinstall|yes}}.&lt;br /&gt;
* To suppress the creation of a footnote with installation instructions, set {{para|noref|yes}}.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
All parameters specified: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{userscript|name=sharebox!!!!!|code=User:TheDJ/sharebox.js|doc=User:TheDJ/sharebox}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*Produces: {{userscript|name=sharebox!!!!!|code=User:TheDJ/sharebox.js|doc=User:TheDJ/sharebox}}&lt;br /&gt;
Code only: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{userscript|code=User:TheDJ/sharebox.js}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*Produces: {{userscript|code=User:TheDJ/sharebox.js}}&lt;br /&gt;
Doc only: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{userscript|doc=User:TheDJ/sharebox}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*Produces: {{userscript|doc=User:TheDJ/sharebox}}&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{reflist}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to produce specific installation instructions:&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Wikipedia:User scripts/List]]&lt;br /&gt;
&lt;br /&gt;
{{Wikipedia:User scripts/Navbox}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Wikipedia scripts|*]]&lt;br /&gt;
[[Category:Wikipedia user script templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>