Template:Maincat
This template is used to link main categories from gallery pages. For marking main category pages, use {{Categorise}} instead
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.
- - "For" 1-N alternative pages with one or more explanations.
- – As "For2" with an explanation of the current page.
- - As "For multi" 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).
- Template:Multilingual link – allows to indicate names of versions of same Wikipedia article in many languages and displays one link in interface language.
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}} → Main category: A
- {{Maincat|A|B}} →
- {{Maincat|A|B|C}} →
- Etc., up to 10 parameters.
- Tsusho
- Example
- On Stained glass (several sections linking to their main category)
- On Quintus Horatius Flaccus (a gallery item linking to its main category)
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
First category | 1 | Insert the name of the first category | String | required |
2 | 2 | no description | Unknown | optional |
l1 | l1 | no description | Unknown | optional |
3 | 3 | no description | Unknown | optional |
l2 | l2 | no description | Unknown | optional |
4 | 4 | no description | Unknown | optional |
l3 | l3 | no description | Unknown | optional |
5 | 5 | no description | Unknown | optional |
l4 | l4 | no description | Unknown | optional |
6 | 6 | no description | Unknown | optional |
l5 | l5 | no description | Unknown | optional |
7 | 7 | no description | Unknown | optional |
l6 | l6 | no description | Unknown | optional |
8 | 8 | no description | Unknown | optional |
l7 | l7 | no description | Unknown | optional |
9 | 9 | no description | Unknown | optional |
l8 | l8 | no description | Unknown | optional |
10 | 10 | no description | Unknown | optional |
l9 | l9 | no description | Unknown | optional |
l10 | l10 | no description | Unknown | optional |
11 | 11 | no description | Unknown | optional |