<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Template%3ACategory_pair%2Fdoc</id>
	<title>Template:Category pair/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Template%3ACategory_pair%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Template:Category_pair/doc&amp;action=history"/>
	<updated>2026-07-18T12:41:16Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Template:Category_pair/doc&amp;diff=2085447&amp;oldid=prev</id>
		<title>imported&gt;Kcx36：​翻译外文链接</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Template:Category_pair/doc&amp;diff=2085447&amp;oldid=prev"/>
		<updated>2025-07-13T08:27:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/wiki/MediaWiki:Gadget-link-ts.js&quot; title=&quot;MediaWiki:Gadget-link-ts.js&quot;&gt;翻译&lt;/a&gt;外文链接&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;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
{{Lua|Module:Category pair|Module:Check for unknown parameters}}&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
Place&lt;br /&gt;
* {{tlx|Category pair|CATEGORY NAME1|CATEGORY NAME2}}&lt;br /&gt;
on the top of the category page, replacing &amp;quot;&amp;lt;code&amp;gt;CATEGORY NAMEn&amp;lt;/code&amp;gt;&amp;quot; with the &amp;#039;&amp;#039;names only&amp;#039;&amp;#039; of the target categories, leaving out the term &amp;quot;&amp;lt;code&amp;gt;Category:&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Each category is displayed only if it exists. If neither category exists, nothing will be displayed.&lt;br /&gt;
&lt;br /&gt;
If there is no succeeding category, you may simply place:&lt;br /&gt;
* {{tlx|Category pair|CATEGORY NAME1}}&lt;br /&gt;
on the top of the category page, replacing &amp;quot;&amp;lt;code&amp;gt;CATEGORY NAME1&amp;lt;/code&amp;gt;&amp;quot; with the &amp;#039;&amp;#039;name only&amp;#039;&amp;#039; of the target category, leaving out the term &amp;quot;&amp;lt;code&amp;gt;Category:&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If there is no preceding category, then leave the first parameter empty, and simply place:&lt;br /&gt;
* {{tlx|Category pair|&amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;|CATEGORY NAME2}}&lt;br /&gt;
on the top of the category page, replacing &amp;quot;&amp;lt;code&amp;gt;CATEGORY NAME2&amp;lt;/code&amp;gt;&amp;quot; with the &amp;#039;&amp;#039;name only&amp;#039;&amp;#039; of the target category, leaving out the term &amp;quot;&amp;lt;code&amp;gt;Category:&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
;Preceding and succeeding categories, both exist&lt;br /&gt;
* {{tlx|Category pair|19世纪|21世纪}} → {{Category pair|19世纪|21世纪}}&lt;br /&gt;
* {{tlx|Category pair|20世纪|22世纪}} → {{Category pair|20世纪|22世纪}}&lt;br /&gt;
;Preceding category only, which exists&lt;br /&gt;
* {{tlx|Category pair|20世纪}} → {{Category pair|20世纪}}&lt;br /&gt;
;Succeding category only, which exists&lt;br /&gt;
* {{tlx|Category pair|&amp;lt;nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;|5世纪}} → {{Category pair||5世纪}}&lt;br /&gt;
;Preceding and succeeding categories, only preceding exists&lt;br /&gt;
* {{tlx|Category pair|7世纪|N世纪}} → {{Category pair|7世纪|N世纪}}&lt;br /&gt;
;Preceding and succeeding categories, only succeeding exists&lt;br /&gt;
* {{tlx|Category pair|X世纪|5世纪}} → {{Category pair|X世纪|5世纪}}&lt;br /&gt;
; Two non-existent categories, so no output:&lt;br /&gt;
* {{tlx|Category pair|81世纪|83rd century}} → {{Category pair|81世纪|83rd century}}&lt;br /&gt;
&lt;br /&gt;
== Error checking ==&lt;br /&gt;
If more than two parameters are supplied, a warning message is shown when the page is previewed and when it is saved the page is added to a hidden tracking category: [[:Category:Pages using Template:Category pair with more than 2 parameters]].&lt;br /&gt;
&lt;br /&gt;
Only the first two parameters are processed.  Others are ignored.&lt;br /&gt;
&lt;br /&gt;
If more than two parameters are supplied, the template is unlikely to do what the editor intended e.g.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tlx|Category pair|CATEGORY NAME1|CATEGORY NAME2|CATEGORY NAME3}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will ignore CATEGORY NAME3&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tlx|Category pair|CATEGORY NAME1||CATEGORY NAME2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will ignore CATEGORY NAME2, because a duplicate &amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt; character between the two categories causes CATEGORY NAME2 to be the third parameter rather the second&lt;br /&gt;
&lt;br /&gt;
== Tracking categories ==&lt;br /&gt;
* [[:Category:category pair没有输出的页面]]&lt;br /&gt;
: If neither parameter is a category which currently exists the template will produce no output. This is &amp;#039;&amp;#039;not necessarily an error&amp;#039;&amp;#039;; the other categories may simply be part of an incomplete series which will be completed in due course&lt;br /&gt;
*  [[:Category:category pair参数超过2个的页面]]&lt;br /&gt;
: See above: [[#Error checking|Error checking]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{tl|Preceding category}}&lt;br /&gt;
* {{tl|Succeeding category}}&lt;br /&gt;
* {{tl|Category see also}}&lt;br /&gt;
* {{tl|Category see also if exists}}&lt;br /&gt;
&lt;br /&gt;
{{Category hatnote templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
[[Category:分类页面的顶注模板]]&lt;br /&gt;
[[Category:添加追踪分类的模板]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Kcx36</name></author>
	</entry>
</feed>