Template:Crossreference/doc

From Porn Base Central, the free encyclopedia of gay porn
Jump to navigation Jump to search

The {{crossreference}} (a.k.a. {{crossref}} or {{xref}}) template formats text into a standardized style for an inline (not block-level) "(See also ...)"-type parenthetical PBC crossreference to other PBC material. When on the different pages, these are unprintworthy PBC 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:Cross-reference templates for other templates derived from or similar to this template.

Usage[edit source]

Basic crossreference to another page:

Markup Renders as
{{Crossreference|(See also [[Radical Whigs]].)}}

Basic crossreference on same page:

Markup Renders as
{{Crossreference|selfref=no|(see [[#Parameters]])}}

All parameters:

Markup Renders as
{{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 PBC markup.


Parameters[edit source]

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 PBC

Redirects[edit source]

The following alternative names redirect to this template:

See also[edit source]


Template data[edit source]

formats text into a standardized style for an inline (not block-level) "(See also ...)"-type parenthetical PBC crossreference to other PBC material.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
texttext 1 content

no description

Unknownoptional
CSS classesclass extraclasses

no description

Unknownoptional
printworthyprintworthy selfref

no description

Booleanoptional