<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.perfecttower2.com/w/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="https://wiki.perfecttower2.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ADocumentation%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.perfecttower2.com/w/index.php?title=Template:Documentation/doc&amp;action=history"/>
	<updated>2026-11-19T04:20:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.perfecttower2.com/w/index.php?title=Template:Documentation/doc&amp;diff=4335&amp;oldid=prev</id>
		<title>Speedybrain: Documentation</title>
		<link rel="alternate" type="text/html" href="https://wiki.perfecttower2.com/w/index.php?title=Template:Documentation/doc&amp;diff=4335&amp;oldid=prev"/>
		<updated>2026-10-07T01:50:16Z</updated>

		<summary type="html">&lt;p&gt;Documentation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Shows a template&amp;#039;s documentation in a box under the template: the content of its &amp;lt;code&amp;gt;/doc&amp;lt;/code&amp;gt; subpage, with links to view, edit and see the history of that subpage, and to purge the page. Based on the output of [[mw:Template:Documentation|mediawiki.org&amp;#039;s Template:Documentation]].&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Put this at the end of the template, after its code:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;mediawiki&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Documentation}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Then write the documentation on the template&amp;#039;s &amp;lt;code&amp;gt;/doc&amp;lt;/code&amp;gt; subpage, such as &amp;lt;code&amp;gt;Template:Crafting/doc&amp;lt;/code&amp;gt;. On that subpage, categories for the template go inside &amp;lt;code&amp;gt;&amp;amp;lt;includeonly&amp;amp;gt;&amp;lt;/code&amp;gt;, and categories for the subpage itself inside &amp;lt;code&amp;gt;&amp;amp;lt;noinclude&amp;amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;: a different page to show instead of the &amp;lt;code&amp;gt;/doc&amp;lt;/code&amp;gt; subpage, such as documentation shared by several templates.&lt;br /&gt;
&lt;br /&gt;
The heading names the namespace: &amp;quot;Template documentation&amp;quot;, or &amp;quot;Content documentation&amp;quot; in the main namespace. Lua modules don&amp;#039;t need this template: Scribunto shows &amp;lt;code&amp;gt;Module:Name/doc&amp;lt;/code&amp;gt; above the module&amp;#039;s code by itself.&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories below this line --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Speedybrain</name></author>
	</entry>
</feed>