Template:Maincat
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
Contents
Usage
{{Maincat |1= |2= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | category name (without Category: prefix) | empty | required | |
2 | category name (without Category: prefix). Up to 9 additional categories. | empty | optional |
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
- – "Main gallery" link from gallery or category to 1-N main galleries.
- – "Main category" link from gallery or category to 1-N main categories.
- – (box) Alternative "See category" boxed link from gallery to parent category, with explanation of the role of a gallery page.
- Downwards links
- – "Further information" link to 1-N detailed galleries or categories.
- Sideways page links
- – (box or inline) "See also" link to 1-N related pages.
- – "For" a single alternative page with explanation.
- – As "For2" with an explanation of the current page.
- – "Not to be confused with" link to 1-N related pages.
- – (box) Internationalized "See also" (or other caption) to related images.
- – (box) Internationalized with icon-links to related images of the same (medical) case.
- – "See" link from gallery to gallery.
- Sideways category links
- – (box or inline) "See also Categories" link to 1-N related categories.
- – (box or inline) "Not to be confused with categories" link from category with ambiguous names to 1-N unrelated categories.
- Interproject links
- – "Main Wikipedia article" link to 1 article (don't forget the purpose of interwiki links).
- – "See also Wikipedia article" link to 1-N articles (don't forget the purpose of interwiki links).
Localization
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)
Use
- Syntax
- {{Maincat|Category name(s)}}
- Parameter
- {{Maincat|A}} →
- {{Maincat|A|B}} →
- {{Maincat|A|B|C}} →
- Etc., up to 10 parameters.
- Alias
- Example
- On Stained glass (several sections linking to their main category)
- On Quintus Horatius Flaccus (a gallery item linking to its main category)