வார்ப்புரு:Crossreference/doc
{{Documentation subpage}}
 {{Template shortcut|Xref|Crossref}}
 {{lua|Module:Hatnote inline}}
 
 The {{tl|Crossreference}} template formats text into a standardized style for an {{em|inline}} (not block-level) &quot;''(See also ...)''&quot;-type parenthetical [[MOS:CROSSREF|Wikipedia crossreference]] to other Wikipedia material. When on the 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 {{tl|Hatnote}} meta-template and its many progeny ({{tl|See also}}, etc.). The output is ultimately produced by [[Module:Hatnote inline]]. 
 
 See [[:Category:Cross-reference templates]] for other templates derived from or similar to this template.
 
 == Usage ==
 
 '''Basic crossreference to another page:'''
 {{markup|&lt;nowiki&gt;{{Crossreference|(See also [[Radical Whigs]].)}}&lt;/nowiki&gt;|
 {{Crossreference|(See also [[Radical Whigs]].)}}}}
 
 '''Basic crossreference on same page:'''
 {{markup|&lt;nowiki&gt;{{Crossreference|selfref=no|(see [[#Parameters]])}}&lt;/nowiki&gt;|
 {{Crossreference|selfref=no|(see [[#Parameters]])}}}}
 
 '''All parameters:'''
 {{markup|&lt;nowiki&gt;{{Crossreference|text|class=class1 class2|selfref=no}}}}&lt;/nowiki&gt;|
 {{Crossreference|text|class=class1 class2|selfref=no}}}}
 
 The meta-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]].
 
 Usage for links in the same article is discouraged, in favor of the more specific templates {{tl|See above}} and {{tl|See below}}.
 
 == Parameters ==
 
 This template accepts the following parameters:
 * {{para|1}} or {{para|text}} or {{para|content}} the cross-reference text (required). While the explicit naming of this parameter with &lt;code&gt;1=&lt;/code&gt;, &lt;code&gt;text=&lt;/code&gt;, or &lt;code&gt;content=&lt;/code&gt; is not required, it is always safest to use it this way, since any &lt;code&gt;=&lt;/code&gt; character in the text will break the template if the parameter is unnamed.
 * {{para|class}} or {{para|extraclasses}} any extra CSS classes to be added. This should not normally be used.
 * {{para|selfref|no}} &amp;ndash; if set to &lt;kbd&gt;no&lt;/kbd&gt; (or &lt;kbd&gt;n&lt;/kbd&gt;, &lt;kbd&gt;false&lt;/kbd&gt;, &lt;kbd&gt;0&lt;kbd&gt;, etc.) removes the default CSS class &lt;code&gt;selfref&lt;/code&gt;, used to denote unprintworthy self-references to Wikipedia {{crossref|(see [[Template:Selfref]] 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 with any other value, like &lt;kbd&gt;y&lt;/kbd&gt;, &lt;kbd&gt;true&lt;/kbd&gt;, &lt;kbd&gt;1&lt;/kbd&gt;, etc.) and {{para|unprintworthy|no}} (or &lt;kbd&gt;n&lt;/kbd&gt;, &lt;kbd&gt;false&lt;/kbd&gt;, &lt;kbd&gt;0&lt;/kbd&gt;) have the same effect as {{para|selfref|no}}.
 
 == Redirects ==
 The following alternative names redirect to this template:
 * {{tlx|xref}}
 * {{tlx|crossref}}
 * {{tlx|cross-ref}}
 * {{tlx|cross-reference}}
 
 == See also ==
 * {{tlx|Hatnote inline}}, for the meta-template this template uses, and other templates that use it
 * {{tlx|See above}} and {{tlx|See below}}, some specific, printworthy &quot;child&quot; templates of {{tl|Crossreference}}
 * [[Template:Hatnote templates documentation]], for all the block-format hatnotes]]
 
 &lt;includeonly&gt;
 [[Category:Cross-reference templates|{{PAGENAME}}]]
 [[Category:Inline hatnote templates|{{PAGENAME}}]]
 &lt;/includeonly&gt;
 
 == Template data ==
 &lt;templatedata&gt;
 {
 	&quot;params&quot;: {
 		&quot;text&quot;: {
 			&quot;aliases&quot;: [
 				&quot;1&quot;,
 				&quot;content&quot;
 			]
 		},
 		&quot;class&quot;: {
 			&quot;aliases&quot;: [
 				&quot;extraclasses&quot;
 			],
 			&quot;label&quot;: &quot;CSS classes&quot;
 		},
 		&quot;printworthy&quot;: {
 			&quot;aliases&quot;: [
 				&quot;selfref&quot;
 			],
 			&quot;type&quot;: &quot;boolean&quot;
 		}
 	},
 	&quot;description&quot;: &quot;formats text into a standardized style for an inline (not block-level) \&quot;(See also ...)\&quot;-type parenthetical Wikipedia crossreference to other Wikipedia material.&quot;,
 	&quot;paramOrder&quot;: [
 		&quot;text&quot;,
 		&quot;class&quot;,
 		&quot;printworthy&quot;
 	],
 	&quot;format&quot;: &quot;inline&quot;
 }