<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3ATemplate_category%2Fdoc</id>
	<title>模板:Template category/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3ATemplate_category%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Template_category/doc&amp;action=history"/>
	<updated>2026-11-11T15:43:03Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Template_category/doc&amp;diff=4845&amp;oldid=prev</id>
		<title>Zeroclanzhang：​创建页面，内容为“{{Documentation subpage}} &lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&gt; {{High-use}}  {{tlx|Template category}} should be placed at the top of categories that contain template pages and their related subcategories. This template populates :Category:Wikipedia template categories.  {{TOC limit|3}} == Usage == ===Syntax=== ; Basic &lt;syntaxhighlight lang=&quot;wikitext&quot; style=&quot;overflow:auto;&quot;&gt; {{Template category |descr…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Template_category/doc&amp;diff=4845&amp;oldid=prev"/>
		<updated>2024-01-17T15:46:55Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Documentation subpage}} &amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt; {{High-use}}  {{tlx|Template category}} should be placed at the top of categories that contain template pages and their related subcategories. This template populates &lt;a href=&quot;/index.php?title=%E5%88%86%E7%B1%BB:Wikipedia_template_categories&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;分类:Wikipedia template categories（页面不存在）&quot;&gt;Category:Wikipedia template categories&lt;/a&gt;.  {{TOC limit|3}} == Usage == ===Syntax=== ; Basic &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt; {{Template category |descr…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
{{High-use}}&lt;br /&gt;
&lt;br /&gt;
{{tlx|Template category}} should be placed at the top of categories that contain template pages and their related subcategories. This template populates [[:Category:Wikipedia template categories]].&lt;br /&gt;
&lt;br /&gt;
{{TOC limit|3}}&lt;br /&gt;
== Usage ==&lt;br /&gt;
===Syntax===&lt;br /&gt;
; Basic&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Template category&lt;br /&gt;
|description=&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Basic topical&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Syntax of {{tl|Template category}}&lt;br /&gt;
|-&lt;br /&gt;
! No type !! Navbox !! Sidebar !! Stub&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Template category&lt;br /&gt;
|topic=&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Template category&lt;br /&gt;
|type=navbox&lt;br /&gt;
|topic=&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Template category&lt;br /&gt;
|type=sidebar&lt;br /&gt;
|topic=&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Template category&lt;br /&gt;
|type=stub&lt;br /&gt;
|topic=&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
; Full&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Template category&lt;br /&gt;
| onright = &lt;br /&gt;
| type = &lt;br /&gt;
| container = &lt;br /&gt;
| topic = &lt;br /&gt;
| description = &lt;br /&gt;
| ALTTEXT = &lt;br /&gt;
| help = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Parameters and examples===&lt;br /&gt;
The template may be used without any parameters.&lt;br /&gt;
&lt;br /&gt;
{{Hidden begin |showhide=left |title=With no parameters |bodystyle=font-size:105%;}}&lt;br /&gt;
{{Template category}}&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
The following, however, may be used to make the template more informative:&lt;br /&gt;
&lt;br /&gt;
====&amp;#039;&amp;#039;onright&amp;#039;&amp;#039;====&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
: Use &amp;#039;&amp;#039;onright&amp;#039;&amp;#039; (or &amp;#039;&amp;#039;rhs&amp;#039;&amp;#039;) to place right-aligned boxes beside the template such as {{tl|Portal}} (to provide link/s to related portal/s), {{tl|Commons category}} (to provide a link to the same or a similarly-named Commons category), etc. If more than one box is included, ensure the widest one appears first (see example below) otherwise overlapping may occur.&lt;br /&gt;
&lt;br /&gt;
{{Hidden begin |showhide=left |title=&amp;#039;&amp;#039;topic&amp;#039;&amp;#039;, &amp;#039;&amp;#039;onright&amp;#039;&amp;#039; |bodystyle=font-size:105%;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Template category&lt;br /&gt;
| topic = the [[United States]]&lt;br /&gt;
| onright = {{Commons category|United States|the United States}}{{Portal|United States}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Template category&lt;br /&gt;
| topic = the [[United States]]&lt;br /&gt;
| onright = {{Commons category|United States|the United States}}{{Portal|United States}}&lt;br /&gt;
}}&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
====&amp;#039;&amp;#039;type&amp;#039;&amp;#039;====&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
: Setting &amp;#039;&amp;#039;type&amp;#039;&amp;#039; to one of the following values adds a preset note as to which type of template the category (but not necessarily its subcategories) is meant to contain. The values are:&lt;br /&gt;
:: &amp;#039;&amp;#039;&amp;#039;{{hlist |ambox |campaignbox |(category header |category heading |catheader |cat header |cathead) |conversion |external link |formatting |function |infobox |&amp;lt;s&amp;gt;message&amp;lt;/s&amp;gt; |meta |module |(navigation |navigational |navbox) |sidebar |stub |sub |timeline |(user|userbox)}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: If &amp;#039;&amp;#039;type&amp;#039;&amp;#039; is set to something other than one of these values, the default &amp;quot;The pages listed in this category are templates&amp;quot; note appears unmodified.&lt;br /&gt;
&lt;br /&gt;
{{Hidden begin |showhide=left |title=&amp;#039;&amp;#039;type&amp;#039;&amp;#039; alone |bodystyle=font-size:105%;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{Template category |type=sidebar}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Template category |type=sidebar}}&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
====&amp;#039;&amp;#039;container&amp;#039;&amp;#039;====&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
: Set &amp;#039;&amp;#039;container&amp;#039;&amp;#039; as [[Template:Yesno|&amp;#039;&amp;#039;true&amp;#039;&amp;#039;, &amp;#039;&amp;#039;yes&amp;#039;&amp;#039;, etc.]] to identify the category as a [[Wikipedia:Container category|container category]], i.e. a category meant to contain only subcategories. A note requesting that no templates are added to the template category is then included. The category is automatically added to [[:Category:Container categories]].&lt;br /&gt;
&lt;br /&gt;
{{Hidden begin |showhide=left |title=&amp;#039;&amp;#039;container&amp;#039;&amp;#039; alone |bodystyle=font-size:105%;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{Template category |container=true}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Template category |container=true}}&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
: An alternative to using &amp;#039;&amp;#039;container&amp;#039;&amp;#039; is to place {{tl|Container category}} after the {{tl|Template category}} template:&lt;br /&gt;
&lt;br /&gt;
{{Hidden begin |showhide=left |title={{braces|Container category}} following {{braces|Template category}} |bodystyle=font-size:105%;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Template category&lt;br /&gt;
| type = &amp;#039;&amp;#039;type&amp;#039;&amp;#039;&lt;br /&gt;
| topic = &amp;#039;&amp;#039;[[topic]]&amp;#039;&amp;#039;&lt;br /&gt;
| description = This text supplied by the &amp;#039;&amp;#039;description&amp;#039;&amp;#039; parameter.&lt;br /&gt;
}}&lt;br /&gt;
{{Container category}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Template category&lt;br /&gt;
| type = &amp;#039;&amp;#039;type&amp;#039;&amp;#039;&lt;br /&gt;
| topic = &amp;#039;&amp;#039;[[topic]]&amp;#039;&amp;#039;&lt;br /&gt;
| description = This text supplied by the &amp;#039;&amp;#039;description&amp;#039;&amp;#039; parameter.&lt;br /&gt;
}}&lt;br /&gt;
{{Container category}}&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
====&amp;#039;&amp;#039;topic&amp;#039;&amp;#039;====&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
: Use &amp;#039;&amp;#039;topic&amp;#039;&amp;#039; to add a default description ending &amp;quot;...relating to &amp;#039;&amp;#039;topic&amp;#039;&amp;#039;&amp;quot;, where &amp;#039;&amp;#039;topic&amp;#039;&amp;#039; is usually a [[wikilink]] to the main article associated with the category (e.g. [[United States]] for the [[:Category:United States templates]]).&lt;br /&gt;
&lt;br /&gt;
{{Hidden begin |showhide=left |title=&amp;#039;&amp;#039;topic&amp;#039;&amp;#039; alone |bodystyle=font-size:105%;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{Template category |topic=the [[United States]]}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Template category |topic=the [[United States]]}}&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
{{Hidden begin |showhide=left |title=&amp;#039;&amp;#039;type&amp;#039;&amp;#039;, &amp;#039;&amp;#039;topic&amp;#039;&amp;#039; |bodystyle=font-size:105%;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{Template category |type=infobox |topic=the [[United States]]}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Template category |type=infobox |topic=the [[United States]]}}&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
====&amp;#039;&amp;#039;description&amp;#039;&amp;#039;====&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
: Use &amp;#039;&amp;#039;description&amp;#039;&amp;#039; if a customised description is needed instead of&amp;amp;nbsp;– or, if &amp;#039;&amp;#039;topic&amp;#039;&amp;#039; also used, to follow&amp;amp;nbsp;– the default description above.&lt;br /&gt;
&lt;br /&gt;
{{Hidden begin |showhide=left |title=&amp;#039;&amp;#039;type&amp;#039;&amp;#039;, &amp;#039;&amp;#039;topic&amp;#039;&amp;#039;, &amp;#039;&amp;#039;description&amp;#039;&amp;#039; |bodystyle=font-size:105%;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Template category&lt;br /&gt;
| type = navbox&lt;br /&gt;
| topic = [[China]]&lt;br /&gt;
| description = &amp;lt;br /&amp;gt;{{small|For templates relating specifically to the [[People&amp;#039;s Republic of China|People&amp;#039;s Republic of China (PRC)]] or the current [[Taiwan|Republic of China (ROC, &amp;quot;Taiwan&amp;quot;)]], see, respectively, {{c|People&amp;#039;s Republic of China templates}} and {{c|Taiwan templates}}.}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Template category&lt;br /&gt;
| type = navbox&lt;br /&gt;
| topic = [[China]]&lt;br /&gt;
| description = &amp;lt;br /&amp;gt;{{small|For templates relating specifically to the [[People&amp;#039;s Republic of China|People&amp;#039;s Republic of China (PRC)]] or the current [[Taiwan|Republic of China (ROC, &amp;quot;Taiwan&amp;quot;)]], see, respectively, {{c|People&amp;#039;s Republic of China templates}} and {{c|Taiwan templates}}.}}&lt;br /&gt;
}}&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
{{Hidden begin |showhide=left |title=&amp;#039;&amp;#039;description&amp;#039;&amp;#039; alone |bodystyle=font-size:105%;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{Template category |description=This text is supplied by the &amp;#039;&amp;#039;description&amp;#039;&amp;#039; parameter.}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Template category |description=This text is supplied by the &amp;#039;&amp;#039;description&amp;#039;&amp;#039; parameter.}}&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
====&amp;#039;&amp;#039;help&amp;#039;&amp;#039;====&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
: Use &amp;#039;&amp;#039;help&amp;#039;&amp;#039; to replace the instructions on adding a template to the category (second paragraph of the &amp;quot;Further template category notes&amp;quot; section):&lt;br /&gt;
&lt;br /&gt;
{{Hidden begin |showhide=left |title=replace &amp;#039;&amp;#039;help&amp;#039;&amp;#039; text |bodystyle=font-size:105%;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{Template category |help=This text supplied by the &amp;#039;&amp;#039;help&amp;#039;&amp;#039; parameter.}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Template category |help=This text supplied by the &amp;#039;&amp;#039;help&amp;#039;&amp;#039; parameter.}}&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
: To omit the default instructions, set &amp;#039;&amp;#039;help&amp;#039;&amp;#039; to &amp;#039;&amp;#039;no&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
{{Hidden begin |showhide=left |title=omit &amp;#039;&amp;#039;help&amp;#039;&amp;#039; text |bodystyle=font-size:105%;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{Template category |help=no}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Template category |help=no}}&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
== Tracking category==&lt;br /&gt;
Uses with a topic or description parameter are tracked:&lt;br /&gt;
* {{clc|Template:Template category with no topic or description}}&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;onright&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;rhs&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;type&amp;quot;: {},&lt;br /&gt;
		&amp;quot;container&amp;quot;: {},&lt;br /&gt;
		&amp;quot;topic&amp;quot;: {},&lt;br /&gt;
		&amp;quot;description&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;1&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;ALTTEXT&amp;quot;: {},&lt;br /&gt;
		&amp;quot;help&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;2&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;category&amp;quot;: {}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template is used as a header for category pages that contain templates.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Other category-header templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Category namespace templates]]&lt;br /&gt;
[[Category:Tracking templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zeroclanzhang</name></author>
	</entry>
</feed>