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

This template is used to link main categories from gallery pages. For marking main category pages, use {{Categorise}} instead


{{Maincat |1= |2= }}

Template parameters

1category name (without Category: prefix)emptyrequired
2category name (without Category: prefix). Up to 9 additional categories.emptyoptional

Additional information

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

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

See also

Templates linking contents

"1-N" means from one to many.

Upwards links
Downwards links
Sideways page links
Sideways category links
Interproject links


To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)

Note that there are 2 {{LangSwitch}} constructs, one for singular (one category) and one for plural (2+ categories)


{{Maincat|Category name(s)}}
  • {{Maincat|A}} →
    Main category: A
  • {{Maincat|A|B}} →
    Main categories: A and B
  • {{Maincat|A|B|C}} →
    Main categories: A, B, and C
  • Etc., up to 10 parameters.