 <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.novoyuuparosk.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ADocumentation%2Fdoc</id>
	<title>Template:Documentation/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.novoyuuparosk.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ADocumentation%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://wiki.novoyuuparosk.org/index.php?title=Template:Documentation/doc&amp;action=history"/>
	<updated>2026-04-06T00:18:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>http://wiki.novoyuuparosk.org/index.php?title=Template:Documentation/doc&amp;diff=730&amp;oldid=prev</id>
		<title>Mikkeli: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.novoyuuparosk.org/index.php?title=Template:Documentation/doc&amp;diff=730&amp;oldid=prev"/>
		<updated>2024-12-18T22:36:53Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:36, 19 December 2024&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key novoyuuparosk_wiki:diff::1.12:old-729:rev-730 --&gt;
&lt;/table&gt;</summary>
		<author><name>Mikkeli</name></author>
	</entry>
	<entry>
		<id>http://wiki.novoyuuparosk.org/index.php?title=Template:Documentation/doc&amp;diff=729&amp;oldid=prev</id>
		<title>Wikipedia&gt;Set theorist: /* See also */ adding {{tl|Navbox documentation}}</title>
		<link rel="alternate" type="text/html" href="http://wiki.novoyuuparosk.org/index.php?title=Template:Documentation/doc&amp;diff=729&amp;oldid=prev"/>
		<updated>2024-12-17T09:59:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;See also: &lt;/span&gt; adding {{tl|Navbox documentation}}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{pp-semi-indef}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;{{Distinguish|Template:Documentation subpage}}&lt;br /&gt;
{{Documentation subpage}}&lt;br /&gt;
{{template shortcut|doc}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
{{Never substitute}}&lt;br /&gt;
{{Lua|Module:Documentation}}&lt;br /&gt;
&lt;br /&gt;
The {{tlx|documentation}} template is used to contain the [[WP:TDOC|documented information and instructions]] of a certain template, usually from a /doc subpage. It can also be configured to load the content from other pages or be directly fed by text.&lt;br /&gt;
&lt;br /&gt;
For detailed instructions on how and when to use this template, see [[Wikipedia:Template documentation]] (shortcut: [[WP:TDOC]]).&lt;br /&gt;
&lt;br /&gt;
This template has two parts: the big &amp;quot;documentation box&amp;quot; with the documentation inside alongside a toolbar (the &amp;lt;code&amp;gt;[view][edit][history][purge]&amp;lt;/code&amp;gt; links), and the smaller &amp;quot;link box&amp;quot; that shows metadata about the documentation alongside the [[Wikipedia:Template sandbox and test cases|sandbox and testcases]] links.&lt;br /&gt;
&lt;br /&gt;
Use of this template allows templates to be [[Wikipedia:Protection policy|protected]], where necessary, while allowing anyone to edit the documentation and categories.&lt;br /&gt;
&lt;br /&gt;
== General syntax ==&lt;br /&gt;
Normally, the template is used without parameters and is placed inside {{tag|noinclude}} at the bottom of the template page (see {{section link|#Placement and tags}} for more information):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!--Last line of your template code--&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;!-- Add categories to the /doc subpage --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Transcluding a different page ===&lt;br /&gt;
To transclude a different page other than the /doc subpage, simply provide {{para|1}} like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!--Last line of your template code--&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation|Template:Other page/doc}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that when loading the documentation from a page other than the local /doc subpage, it becomes tricky to handle the categories.&lt;br /&gt;
&lt;br /&gt;
=== Using the {{para|content}} parameter ===&lt;br /&gt;
The documentation can also be fed directly as text, by using the {{para|content}} parameter:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!--Last line of your template code--&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation&lt;br /&gt;
 | content =&lt;br /&gt;
&amp;lt;!-- template documentation --&amp;gt;&lt;br /&gt;
}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When using this parameter, the toolbar will not show. Note that the /doc subpage in the link box will still show up if it exists.&lt;br /&gt;
&lt;br /&gt;
Also note that when {{para|1}} and {{para|content}} is specified, {{para|content}} takes precedence and always shows in the documentation box.&lt;br /&gt;
&lt;br /&gt;
== Advanced syntax ==&lt;br /&gt;
=== Customizing the heading ===&lt;br /&gt;
The heading in the documentation box changes depending on namespace. See the below list for the default text in each namespace:&lt;br /&gt;
&lt;br /&gt;
* Template namespace: [[File:Test Template Info-Icon - Version (2).svg|32px|link=[[Wikipedia:Template documentation]]]] &amp;#039;&amp;#039;&amp;#039;Template documentation&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Module namespace: [[File:Test Template Info-Icon - Version (2).svg|32px|link=[[Wikipedia:Template documentation]]]] &amp;#039;&amp;#039;&amp;#039;Module documentation&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Other namespaces: &amp;#039;&amp;#039;&amp;#039;Documentation&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To customize the heading, simply set the parameter {{para|heading}} to anything you like, for example {{para|heading|Infobox documentation}}.&lt;br /&gt;
&lt;br /&gt;
Note that if the heading parameter is empty but defined (like {{para|heading|}}) the heading alongside the toolbar will not show.&lt;br /&gt;
&lt;br /&gt;
The {{para|heading-style}} parameter can be fed optional [[Cascading Style Sheets|CSS]] values, like {{para|heading-style|font-size:150%;color:red;}}. Not that you should omit quotation marks &amp;lt;code&amp;gt;&amp;quot; &amp;quot;&amp;lt;/code&amp;gt; and add the ending semicolon &amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=== Customizing the link box ===&lt;br /&gt;
To customize the link box, set {{para|link box}} to something else, like {{para|link box|The above documentation is automatically generated from [[Template:Foo]]}}.&lt;br /&gt;
&lt;br /&gt;
To hide the link box, simply set {{para|link box}} to &amp;lt;code&amp;gt;off&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
You can simulate the output for a given page by using the {{para|page}} parameter. For example, if you use the code {{para|page|Template:Edit protected}}, the template will behave exactly as if it were on the page [[Template:Edit protected]], including showing the documentation from [[Template:Edit protected/doc]], linking to [[Template:Edit protected/sandbox]], etc. This parameter is useful for testing and is used extensively on the [[Module:Documentation/testcases|module testcases page]]. &lt;br /&gt;
&lt;br /&gt;
== Placement and tags ==&lt;br /&gt;
{{Further information|Wikipedia:Template documentation#Where to place it}}&lt;br /&gt;
This code should be added at the bottom of the template code page, with no space before {{Tag|noinclude|o}} (which causes extra whitespace to show on pages where the template is transcluded):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&amp;lt;!--Last line of your template code--&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;!-- Add categories to the /doc subpage --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To automatically insert the above text, you can also use the [[Wikipedia:Substitution|substitution]] code shortcut {{tlxs|doc-code}}.&lt;br /&gt;
&lt;br /&gt;
=== Categories and interwikis ===&lt;br /&gt;
Depending on where to the documentation is placed, it may be tricky to handle the categories and interwikis. See {{section link|Wikipedia:Template documentation#Categories and interwiki links}} for information about adding these.&lt;br /&gt;
&lt;br /&gt;
== Technical details ==&lt;br /&gt;
=== Automatic functions ===&lt;br /&gt;
If the documentation page does not exist, the toolbar is replaced with a &amp;lt;code&amp;gt;[create][purge]&amp;lt;/code&amp;gt; link. The &amp;lt;code&amp;gt;[create]&amp;lt;/code&amp;gt; link automatically [[mw:Manual:Creating pages with preloaded text|creates the page with preloaded text]] with the basic documentation syntax. Preload text is also used for the /sandbox and /testcases [create] links.&lt;br /&gt;
&lt;br /&gt;
The preload page for the /doc &amp;lt;code&amp;gt;[create]&amp;lt;/code&amp;gt; link is [[Template:Documentation/preload]]. The preload pages for the /sandbox and /testcases links are [[Template:Documentation/preload-sandbox]] and [[Template:Documentation/preload-testcases]]. The preload page for the /sandbox &amp;lt;code&amp;gt;[mirror]&amp;lt;/code&amp;gt; link is [[Template:Documentation/mirror]].&lt;br /&gt;
&lt;br /&gt;
This template also automatically adds {{tl|pp-template}} to a protected template page. When this template is on a /sandbox subpage, it also adds the {{tl|Template sandbox notice}} template.&lt;br /&gt;
&lt;br /&gt;
=== Link box features ===&lt;br /&gt;
Depending on the namespace, the link box may have less features, or may not show up at all. The following table shows this:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Namespace &lt;br /&gt;
! Behavior &lt;br /&gt;
|-&lt;br /&gt;
| Template&lt;br /&gt;
| Full behavior&lt;br /&gt;
|-&lt;br /&gt;
| Module&lt;br /&gt;
| Full behavior, with the addition of a &amp;quot;create documentation&amp;quot; link when the page does not exist&lt;br /&gt;
|-&lt;br /&gt;
| User&lt;br /&gt;
| Full behavior&lt;br /&gt;
|-&lt;br /&gt;
| Other namespaces &lt;br /&gt;
| Hidden, unless {{para|1}} is specified (which will show &amp;quot;The above documentation is transcluded from {{param|1}}&amp;quot;)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Alongside that, if {{para|1}} or {{para|content}} is specified, the &amp;quot;Add categories to the /doc subpage&amp;quot; text will not show.&lt;br /&gt;
&lt;br /&gt;
=== Subject namespaces vs. talk namespaces ===&lt;br /&gt;
This template is usually placed in the [[WP:NS#Subject namespaces|subject namespace]]. But in some cases this template needs to be on the [[WP:TALKSPACE|Talk namespace]]:&lt;br /&gt;
&lt;br /&gt;
* In the MediaWiki namespace, since {{tag|noinclude|o}} often does not work in system messages, and since the MediaWiki namespace needs to be kept clean for performance reasons.&lt;br /&gt;
&lt;br /&gt;
When placed on talk pages, this template usually is placed near the top of the page and without {{tag|noinclude}} tags.&lt;br /&gt;
&lt;br /&gt;
The /doc, /sandbox and /testcases pages should normally be in the subject namespace, except in the namespaces that do not have the MediaWiki [[meta:Help:Link#Subpage feature|subpage feature]] enabled: Main, File, and MediaWiki. (Categories can have subpages, but documentation is created in the Category talk namespace to prevent creating empty categories. There are also a whole bunch of other technical reasons why the /doc page must be stored under the talk page for those (but only those) namespaces.&lt;br /&gt;
&lt;br /&gt;
This template automatically points its [create] links for the /doc, /sandbox and /testcases to the right namespace.&lt;br /&gt;
&lt;br /&gt;
=== Color scheme ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size:90%&amp;quot;&lt;br /&gt;
|+ Wikipedia background colors for {{Template link|documentation}} &amp;lt;small&amp;gt;([[Help:Using colors]])&amp;lt;/small&amp;gt;&lt;br /&gt;
! !! RGB !! HSV !! Color !! General usage !! Note&lt;br /&gt;
|-&lt;br /&gt;
| A&amp;amp;nbsp;&lt;br /&gt;
| &amp;lt;kbd&amp;gt;#ECFCF4&amp;lt;/kbd&amp;gt; || 150&amp;amp;deg;, 6%, 99%&lt;br /&gt;
| style=&amp;quot;background:#ECFCF4&amp;quot; | &amp;amp;nbsp;&lt;br /&gt;
| Sample || Current documentation background&lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| &amp;lt;kbd&amp;gt;#00FF80&amp;lt;/kbd&amp;gt;&lt;br /&gt;
| style=&amp;quot;font-size:90%;&amp;quot; | {{nowrap|1=Hue=150&amp;amp;deg; &amp;lt;small&amp;gt;(41.7%; 106/255&amp;lt;small&amp;gt;dec&amp;lt;/small&amp;gt;)&amp;lt;/small&amp;gt; 100%, 100%}}&lt;br /&gt;
| style=&amp;quot;background:#00FF80&amp;quot; | &amp;amp;nbsp;&lt;br /&gt;
| Basic hue || What we&amp;#039;d call &amp;#039;&amp;#039;the color&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;6&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;kbd&amp;gt;#A3BFB1&amp;lt;/kbd&amp;gt; || 150&amp;amp;deg;, 15%, 75%&lt;br /&gt;
| style=&amp;quot;background:#A3BFB1&amp;quot; | &amp;amp;nbsp;&lt;br /&gt;
| Header border only ||&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;kbd&amp;gt;#CEF2E0&amp;lt;/kbd&amp;gt; || 150&amp;amp;deg;, 15%, 95%&lt;br /&gt;
| style=&amp;quot;background:#CEF2E0&amp;quot; | &amp;amp;nbsp;&lt;br /&gt;
| Main&amp;amp;nbsp;border; header&amp;amp;nbsp;background ||&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| &amp;lt;kbd&amp;gt;#E6FFF2&amp;lt;/kbd&amp;gt; || 150&amp;amp;deg;, 10%, 100%&lt;br /&gt;
| style=&amp;quot;background:#E6FFF2&amp;quot; | &amp;amp;nbsp;&lt;br /&gt;
| 2nd header, accent colour ||&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;kbd&amp;gt;#F5FFFA&amp;lt;/kbd&amp;gt; || 150&amp;amp;deg;, 4%, 100%&lt;br /&gt;
| style=&amp;quot;background:#F5FFFA&amp;quot; | &amp;amp;nbsp;&lt;br /&gt;
| Main background || So saturation in A is a bit off&lt;br /&gt;
|}&lt;br /&gt;
{{collapse top|title=Colors for documentation navbox}}&lt;br /&gt;
As a suggestion, here are colors for a navbox intended for documentation pages only.&lt;br /&gt;
They follow the shading of regular blue navbox colors:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
| titlestyle = background:#ccffe5&lt;br /&gt;
| basestyle  = background:#ddffee&lt;br /&gt;
&amp;lt;!-- basestyle= sets groupstyle, abovestyle, belowstyle together --&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
For subgroups, in child navboxes:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Navbox|child&lt;br /&gt;
| groupstyle = background:#e6fff2&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:{{Template link expanded|Periodic table templates overview}}&lt;br /&gt;
{{collapse bottom}}&lt;br /&gt;
&lt;br /&gt;
== Full syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
{{Documentation&lt;br /&gt;
 | [path to documentation page]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Documentation&lt;br /&gt;
 | content =&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
{{Documentation&lt;br /&gt;
| [path to documentation page]&lt;br /&gt;
| heading-style = &lt;br /&gt;
| heading = &lt;br /&gt;
| link box = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
{{Documentation&lt;br /&gt;
| [path to documentation page]&lt;br /&gt;
| content = &lt;br /&gt;
| heading-style = &lt;br /&gt;
| heading = &lt;br /&gt;
| link box = &lt;br /&gt;
| page =&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{tl|Documentation subpage}}, a notice placed at the top of a /doc subpage explaining its role and including a link to the page it documents.&lt;br /&gt;
* {{tl|Barnstar documentation}}, a variant of {{tl|Documentation}} for use with [[Wikipedia:Barnstars|barnstar]] templates.&lt;br /&gt;
* {{tl|Navbox documentation}}, a variant of {{tl|Documentation}} for use with [[Wikipedia:Navigation template|navigation templates]].&lt;br /&gt;
* [[Wikipedia:Template documentation]] is a how-to guide to template documentation.&lt;br /&gt;
* [[Wikipedia:Template sandbox and test cases]] explains the use of /sandbox and /testcases subpages and includes more information about template testing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&amp;lt;!-- Make sure that only page [[Template:Documentation]] is categorised. No other page (no subpages, not when transcluded).&lt;br /&gt;
 --&amp;gt;{{#ifeq:{{FULLPAGENAME}}|Template:Documentation|&lt;br /&gt;
[[Category:Documentation templates| ]]&lt;br /&gt;
[[Category:Template namespace templates|Documentation]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Set theorist</name></author>
	</entry>
</feed>