Template:Crossreference
This template uses Lua: |
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|(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
– the cross-reference text. (required)class
orextraclasses
– any extra CSS classes to be added. For example, the {{see also}} template adds the classes|class=boilerplate seealso
.selfref
– if set to "no", "n", "false", or "0", removes the default CSS class "selfref", used to denote 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.
Redirects
See also
- {{Hatnote-inline}}, for the meta-template this template uses, and other templates that use it
- {{See above}} and {{See below}}, some specific "child" templates of {{Crossreference}}
- Template:Hatnote templates documentation, for all the block-format hatnotes]]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.