Template:Catnav

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Catnav/doc.

Builds category navigational templates. Current maximum number of items: 99.
To increase this, just duplicate existing rows, increasing the item numbers.

Items are specified via link1,link2,link3 etc parameters (with optional display1,display2,display3 to allow link title to be different from the wikilink). See example uses: {{Districts of Saarland}}, {{Districts of Saarbrücken Navi}}

Usage

{{Catnav |items= |all= |image= |title= |prefix= |suffix= }}

Template parameters

ParameterDescriptionDefaultStatus
itemsnumber of items in the navigation templateemptyrequired
allshow all items, including items where no page exists (redlinks)emptyoptional
imagedecorative image for templateemptyoptional
titletitle to be displayed at the top of the templateemptyoptional
prefixparameter to customise template use, with text added before the relevant link parameter, eg :Category:Buildings in.emptyoptional
suffixparameter to customise template use, with text added after the relevant link parameteremptyoptional

Additional information

The template is intended to be used in the following namespaces: the Template namespace

The template is intended to be used by the following user groups: all users

Relies on:
{{Catnav/row}}, {{Catnav/top}}, {{Catnav/bot}}

See also

→ Replacing current Template:Catnav text by {{#invoke:Catnav|main}} is possible and should work, but there are a lot of dependent templates and verification of them all by means of preview page with this template is tedious. Doing this transition without a larger review may produce regressions, particularly in layout.

Localization

This template is not intended to be localized.