Template:Category navigation/index/list/doc

Category:Template documentation#Category%20navigation/index/list/doc

This helper template creates a horizontal list of meta categories with an editable prefix and suffix.

Usage


{{Category navigation/index/list |prefix= |suffix= |suffixns= |redlink= }}

Template parameters

ParameterDescriptionDefaultStatus
prefixprefixportion of the name preceding the topicemptyoptional
suffixsuffixportion of the name following the topicemptyoptional
suffixnsno space before suffixset to yes to suppress space between topic and suffixemptyoptional
redlinkshow red linksset to yes to display links even if category does not existemptyoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

Category:TemplateData documentation

This helper template creates a horizontal list of [[:en:commons:Commons:List of meta category criteria|meta categories]] with an editable prefix and suffix.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
prefixprefix

portion of the name preceding the topic

Stringoptional
show red linksredlink

set to yes to display links even if category does not exist

Suggested values
yes
Unknownoptional
suffixsuffix

portion of the name following the topic

Stringoptional
no space before suffixsuffixns

set to yes to suppress space between topic and suffix

Suggested values
yes
Stringoptional

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:

Examples

{{Category navigation/index/list|prefix=Categories}}

renders as:


{{Category navigation/index/list|prefix=Categories|redlink=yes}}

renders as:

Localization

This template is not intended to be localized.

Category:TemplateData documentation Category:Template documentation