This Xy trio of templates can create an example table to help document the use of a userbox template.

The Xy template trio comprises the following three templates:

Each of these templates may be invoked without the Template: prefix and in lower case.

Template:Xytop change

Template:Xytop always comes first to create the table headings.

{{xytop|cat}}

where:

  • cat is an optional category column.

Examples change

{{xytop}} creates:

Place this Wikitext on your user page to create this userbox

{{xytop|cat}} creates:

Place this Wikitext on your user page to create this userbox and add your user page to:

Template:Xy change

Template:Xy creates a single table row with the template Wiki markup, the template box, and a link to the list of pages that link to the called template.

{{xy|template|par1|...|par12|cat1=|...|cat6=|link=}}

where:

  • template is the required template name without the Template: prefix.
  • par1|...|par12 are up to 12 optional template parameters.
  • cat1=|...|cat6= are up to 6 optional categories without the Category: prefix.
  • link= is an optional template link. (default=no)

A zero-width space   may be used to represent a missing parameter.


Template:Xyend change

Template:Xyend always comes last and completes the table.

{{xyend}}

Template:Xyend is interchangeable with Template:Yyend or the Wikitext |}.