Mall:Shortcut Mall:Template category

Using sortkeysRedigera

This section applies to adding an infobox to the category, nothing special needs to be done when adding an infobox to an article.

To add an infobox to the category, make sure to use a Sort key. For example, when adding Template:Infobox President, one would use the following code:

{| class="infobox"
|...table code...
[[Category:Infobox templates|President]]

Piping the category with the word "President" ensures the template is inserted into the category under "P".

A <noinclude> tag is required to ensure only the template appears in the category (as opposed to every article the infobox is part of appearing in the category).
Please include the first noinclude tag on the same line as the end of the table. For example
Not doing this may break the formatting on articles using the template.

Sample codeRedigera

For a sample infobox, see either Template:Infobox or Template:Infobox Conditionals.

Note that many templates can appear in more than one category: Template:Infobox golfer is in both Category:People infobox templates and Category:Sports infobox templates.