<?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%3ACrossreference%2Fdoc</id>
	<title>模板:Crossreference/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%3ACrossreference%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Crossreference/doc&amp;action=history"/>
	<updated>2026-11-10T15:32:52Z</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:Crossreference/doc&amp;diff=4435&amp;oldid=prev</id>
		<title>Zeroclanzhang：​创建页面，内容为“{{Documentation subpage}} {{High-use}} {{Template shortcut|Xref|Crossref}} {{lua|Module:Hatnote inline}} {{Uses TemplateStyles|{{NAMESPACE}}:{{ROOTPAGENAME}}/styles.css}}  The {{tlx|{{ROOTPAGENAME}}}} (a.k.a. {{tlx|crossref}} or {{tlx|xref}}) template formats text into a standardized style for an {{em|inline}} (not block-level) &quot;&#039;&#039;(See also ...)&#039;&#039;&quot;-type parenthetical Wikipedia crossreference to other Wikipedia material. When on different pages,…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Crossreference/doc&amp;diff=4435&amp;oldid=prev"/>
		<updated>2024-01-16T15:21:36Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Documentation subpage}} {{High-use}} {{Template shortcut|Xref|Crossref}} {{lua|Module:Hatnote inline}} {{Uses TemplateStyles|{{NAMESPACE}}:{{ROOTPAGENAME}}/styles.css}}  The {{tlx|{{ROOTPAGENAME}}}} (a.k.a. {{tlx|crossref}} or {{tlx|xref}}) template formats text into a standardized style for an {{em|inline}} (not block-level) &amp;quot;&amp;#039;&amp;#039;(See also ...)&amp;#039;&amp;#039;&amp;quot;-type parenthetical &lt;a href=&quot;/index.php?title=MOS:CROSSREF&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;MOS:CROSSREF（页面不存在）&quot;&gt;Wikipedia crossreference&lt;/a&gt; to other Wikipedia material. When on different pages,…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
{{Template shortcut|Xref|Crossref}}&lt;br /&gt;
{{lua|Module:Hatnote inline}}&lt;br /&gt;
{{Uses TemplateStyles|{{NAMESPACE}}:{{ROOTPAGENAME}}/styles.css}}&lt;br /&gt;
&lt;br /&gt;
The {{tlx|{{ROOTPAGENAME}}}} (a.k.a. {{tlx|crossref}} or {{tlx|xref}}) template formats text into a standardized style for an {{em|inline}} (not block-level) &amp;quot;&amp;#039;&amp;#039;(See also ...)&amp;#039;&amp;#039;&amp;quot;-type parenthetical [[MOS:CROSSREF|Wikipedia crossreference]] to other Wikipedia material. When on different pages, these are [[WP:SELFREF|unprintworthy Wikipedia self-references]].  When crossreferencing material on the same page, they are not. For block-level crossreferences, see the {{tlx|Hatnote}} meta-template and its various progeny ({{tlx|See also}}, etc.). The output is ultimately produced by [[Module:Hatnote inline]].  It actually does support a block-level mode, however, for special cases (see parameter documentation below).&lt;br /&gt;
&lt;br /&gt;
See [[:Category:Cross-reference templates]] for other templates derived from or similar to this template.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
The template does not automatically create links of any kind. Links and other desired formatting (round brackets, terminal punctuation) must be explicitly added, using normal [[Wikipedia:Cheatsheet|Wikipedia markup]].&lt;br /&gt;
&amp;lt;!--DEPRECATED BY AUTHOR; going to replace them: Usage for links in the same article is discouraged, in favor of the more specific templates {{tlx|See above}} and {{tlx|See below}}.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Basic crossreference to another page:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
{{markup|&amp;lt;nowiki&amp;gt;{{Crossreference|(See also [[Radical Whigs]].)}}&amp;lt;/nowiki&amp;gt;|&lt;br /&gt;
{{ {{ROOTPAGENAME}}|(See also [[Radical Whigs]].)}}}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Basic crossreference on same page:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
{{markup|&amp;lt;nowiki&amp;gt;{{Crossreference|selfref=no|(see [[#Parameters]])}}&amp;lt;/nowiki&amp;gt;|&lt;br /&gt;
{{ {{ROOTPAGENAME}}|selfref=no|(see [[#Parameters]])}}}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;All parameters:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
{{markup|&amp;lt;nowiki&amp;gt;{{Crossreference|class=class1 class2|selfref=no|inline=no|Blargh:&lt;br /&gt;
* Foo&lt;br /&gt;
* Bar&lt;br /&gt;
* Baz&lt;br /&gt;
}}&amp;lt;/nowiki&amp;gt;|&lt;br /&gt;
{{ {{ROOTPAGENAME}}|class=class1 class2|selfref=no|inline=no|Blargh:&lt;br /&gt;
* Foo&lt;br /&gt;
* Bar&lt;br /&gt;
* Baz&lt;br /&gt;
}} }}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
This template accepts the following parameters:&lt;br /&gt;
* {{para|1}} or {{para|text}} or {{para|content}} – The cross-reference text (required). While the explicit naming of this parameter with {{para|1}}, {{para|text}}, or {{para|content}} is not required, it is always safest to use it this way, since any {{kbd|{{=}}}} character in the text will break the template if the parameter is unnamed.&lt;br /&gt;
* {{para|class}} or {{para|extraclasses}} – Any extra CSS classes to be added. This should not normally be used.&lt;br /&gt;
* {{para|selfref|no}} – If set to {{kbd|no}} (or {{kbd|n}}, {{kbd|false}}, {{kbd|0}}, etc.), removes the default CSS class &amp;lt;code&amp;gt;selfref&amp;lt;/code&amp;gt;, used to denote unprintworthy self-references to Wikipedia {{crossreference|(see [[Template:Self-reference]] for more information)}}. This option should not be used on cross-article links, only links within the same article (and the shorthand templates {{tlx|See above}} and {{tlx|See below}} can be used for this purpose). The parameter aliases {{para|printworthy|yes}} or {{para|pw|yes}} (also with any other value, like {{kbd|y}}, {{kbd|true}}, {{kbd|1}}, etc.) and {{para|unprintworthy|no}} (or {{kbd|n}}, {{kbd|false}}, {{kbd|0}}) have the same effect as {{para|selfref|no}}.  This can also be used for cross-references between internal Wikipedia pages such as guidelines and policies; there is no rationale to suppress the printing-out of links in this case. Note: These parameters are not yet &amp;quot;smart&amp;quot;, and do not detect opposite values; that is, {{para|printworthy|{{!xt|no}}}} and {{para|unprintworthy|{{!xt|yes}}}} will not have the desired effect (and would be redundant anyway, since unprintworthiness is the default).&lt;br /&gt;
* {{para|inline}} – Defaults to {{kbd|yes}}. If set to {{kbd|no}} (or {{kbd|n}}, {{kbd|false}}, {{kbd|0}}, etc.), it will use a {{tag|div|o}} element instead of a {{tag|span|o}}, so you can use block-level elements inside it, such as a list. The difference between {{tnull|{{ROOTPAGENAME}}|inline{{=}}no|...}} and {{tlx|Hatnote|...}} is that the former is not indented the way the latter is. This de-indentation is done by [[WP:TemplateStyles]], specifically in [[Template::{{ROOTPAGENAME}}/styles.css]].&lt;br /&gt;
&lt;br /&gt;
== CSS ==&lt;br /&gt;
This template always adds the CSS class &amp;lt;code&amp;gt;crossreference&amp;lt;/code&amp;gt;, so you can use [[WP:User styles]] to do as you wish with it. You will need to use &amp;lt;code&amp;gt;!important&amp;lt;/code&amp;gt; probably only in the case that you want to override this template&amp;#039;s non-indentation when it is in block mode (i.e., when you do want it indented the way {{tlx|Hatnote}} works), and you&amp;#039;ll be doing this with on-site user style, such as [[Special:MyPage/common.css]]. This is because TemplateStyles actually load after on-site user styles, so you must override the TemplateStyle with the &amp;lt;code&amp;gt;!important&amp;lt;/code&amp;gt; priority flag.&lt;br /&gt;
&lt;br /&gt;
== Redirects ==&lt;br /&gt;
The following alternative names redirect to this template:&lt;br /&gt;
* {{tlx|xref}}&lt;br /&gt;
* {{tlx|crossref}}&lt;br /&gt;
* {{tlx|cross-ref}}&lt;br /&gt;
* {{tlx|cross-reference}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tlx|Hatnote inline}} – the meta-template this template uses, and other templates that use it&lt;br /&gt;
* {{tlx|See above}} and {{tlx|See below}} – some specific, printworthy &amp;quot;child&amp;quot; templates of {{tlx|{{ROOTPAGENAME}}}}&lt;br /&gt;
* [[Template:Hatnote templates documentation]] – docs for all the block-format hatnotes&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Cross-reference templates|{{PAGENAME}}]]&lt;br /&gt;
[[Category:Inline hatnote templates|{{PAGENAME}}]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Template data ==&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;text&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;1&amp;quot;,&lt;br /&gt;
				&amp;quot;content&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;class&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;extraclasses&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;CSS classes&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;inline&amp;quot;: {&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;printworthy&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;selfref&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;formats text into a standardized style for an inline (not block-level) \&amp;quot;(See also ...)\&amp;quot;-type parenthetical Wikipedia crossreference to other Wikipedia material.&amp;quot;,&lt;br /&gt;
	&amp;quot;paramOrder&amp;quot;: [&lt;br /&gt;
		&amp;quot;text&amp;quot;,&lt;br /&gt;
		&amp;quot;printworthy&amp;quot;,&lt;br /&gt;
		&amp;quot;class&amp;quot;,&lt;br /&gt;
		&amp;quot;inline&amp;quot;&lt;br /&gt;
	],&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zeroclanzhang</name></author>
	</entry>
</feed>