Template documentation[โฏview ยท edit ยท history ยท purgeโฏ]
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
- Template:Main gallery (Edit Discussion links Page history) โ "Main gallery" link from gallery or category to 1-N main galleries.
- (Edit Discussion links Page history) โ "Main category" link from gallery or category to 1-N main categories.
- Template:Gallery page (Edit Discussion links Page history) โ (box) Alternative "See category" boxed link from gallery to parent category, with explanation of the role of a gallery page.
- Downwards links
- Template:See (Edit Discussion links Page history) โ "Further information" link to 1-N detailed galleries or categories.
- Sideways page links
- Template:See also (Edit Discussion links Page history) โ (box or inline) "See also" link to 1-N related pages.
- Template:For2 (Edit Discussion links Page history) โ "For" a single alternative page with explanation.
- Template:For multi (Edit Discussion links Page history) - "For" 1-N alternative pages with one or more explanations.
- Template:Otheruses (Edit Discussion links Page history) โ As "For2" with an explanation of the current page.
- Template:About (Edit Discussion links Page history) - As "For multi" with an explanation of the current page.
- Template:Distinguish (Edit Discussion links Page history) โ "Not to be confused with" link to 1-N related pages.
- Template:See more images (Edit Discussion links Page history) โ (box) Internationalized "See also" (or other caption) to related images.
- Template:Case images (Edit Discussion links Page history) โ (box) Internationalized with icon-links to related images of the same (medical) case.
- Template:@see (Edit Discussion links Page history) โ "See" link from gallery to gallery.
- Sideways category links
- Template:Cat see also (Edit Discussion links Page history) โ (box or inline) "See also Categories" link to 1-N related categories.
- Template:Cat disambig (Edit Discussion links Page history) โ (box or inline) "Not to be confused with categories" link from category with ambiguous names to 1-N unrelated categories.
- Interproject links
- Template:Mainw (Edit Discussion links Page history) โ "Main Wikipedia article" link to 1 article (don't forget the purpose of interwiki links).
- Template:See also w (Edit Discussion links Page history) โ "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)
| 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 |
