Template:Crossreference/doc

The (a.k.a.  or ) template formats text into a standardized style for an  (not block-level) "(See also ...)"-type parenthetical Wikipedia crossreference to other Wikipedia material. When on different pages, these are unprintworthy Wikipedia self-references. When crossreferencing material on the same page, they are not. For block-level crossreferences, see the meta-template and its various progeny (, 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:

Basic crossreference on same page:

All parameters: | }}

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.

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,  , or   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.
 * no – If set to no (or n, false , 0 , etc.) removes the default CSS class , used to denote unprintworthy self-references to Wikipedia . This option should not be used on cross-article links, only links within the same article (and the shorthand templates  and  can be used for this purpose). The parameter aliases yes (or with any other value, like y , true , 1 , etc.) and no (or n , false , 0 ) have the same effect as no.

Redirects
The following alternative names redirect to this template:

Template data
{	"params": { "text": { "aliases": [ "1",				"content" ]		},		"class": { "aliases": [ "extraclasses" ],			"label": "CSS classes" },		"printworthy": { "aliases": [ "selfref" ],			"type": "boolean" }	},	"description": "formats text into a standardized style for an inline (not block-level) \"(See also ...)\"-type parenthetical Wikipedia crossreference to other Wikipedia material.", "paramOrder": [ "text", "class", "printworthy" ],	"format": "inline" }