FANDOM


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...
|}<noinclude>
[[Category:Infobox templates|President]]
</noinclude>

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
|}<noinclude>
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.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.