Difference between revisions of "Template:Crossreference/doc"

From blackwiki
Jump to navigation Jump to search
imported>Paine Ellsworth
m (fix shortcut)
imported>SMcCandlish
m (typo)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
{{Template shortcut|Xref|Crossref}}
 
{{Template shortcut|Xref|Crossref}}
{{lua|Module:Hatnote-inline}}
+
{{lua|Module:Hatnote inline}}
  
The {{tl|Crossreference}} template formats text into a standardized style for an {{em|inline}} (not block-level)"''(See also ...)''"-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]].  
+
The {{tl|Crossreference}} template formats text into a standardized style for an {{em|inline}} (not block-level)"''(See also ...)''"-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:Crossreference templates]] for other templates derived from or similar to this template.
 
See [[:Category:Crossreference templates]] for other templates derived from or similar to this template.
Line 37: Line 37:
  
 
== See also ==
 
== See also ==
* {{tlx|Hatnote-inline}}, for the meta-template this template uses, and other templates that use it
+
* {{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 "child" templates of {{tl|Crossreference}}
 
* {{tlx|See above}} and {{tlx|See below}}, some specific, printworthy "child" templates of {{tl|Crossreference}}
 
* [[Template:Hatnote templates documentation]], for all the block-format hatnotes]]
 
* [[Template:Hatnote templates documentation]], for all the block-format hatnotes]]

Revision as of 03:44, 18 June 2016

The {{Crossreference}} template formats text into a standardized style for an inline (not block-level)"(See also ...)"-type parenthetical Wikipedia crossreference to other Wikipedia material. When on the different pages, these are unprintworthy Wikipedia self-references. When crossreferencing material on the same page, they are not. For block-level crossreferences, see the {{Hatnote}} meta-template and its many progeny ({{See also}}, etc.). The output is ultimately produced by Module:Hatnote inline.

See Category:Crossreference templates for other templates derived from or similar to this template.

Usage

Basic crossreference to another page
{{Crossreference|(See also [[Radical Whigs]].)}}
Basic crossreference on same page
{{Crossreference|selfref=no|(see [[#Parameters]])}}
All parameters
{{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 markup.

Usage for links in the same article is discouraged, in favor of the more specific templates {{See above}} and {{See below}}.

Parameters

This template accepts the following parameters:

  • |1= or |text= or |content= the cross-reference text (required). While the explicit naming of this parameter with 1=, text=, or content= is not required, it is always safest to use it this way, since any = character in the text will break the template if the parameter is unnamed.
  • |class= or |extraclasses= any extra CSS classes to be added. This should not normally be used.
  • |selfref=no – if set to no (or n, false, 0, etc.) removes the default CSS class selfref, used to denote unprintworthy self-references to Wikipedia (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 {{See above}} and {{See below}} can be used for this purpose). The parameter alias |printworthy=yes (or with any other value, like y, true, 1, etc.) has the same effect as |selfref=no.

Redirects

The following alternative names redirect to this template:

See also