Template:Commons category multi
| Note how misspelled words seem to be valid links to Wikimedia Commons. Check spelling carefully. |
Usage
This template is similar to {{Commons category}} but shows up to twelve (12) categories, and allows floating the box to the left.
- Usage:
{{Commons category multi|topic1|topic2|topic3|…|topic12}} - Usage:
{{Commons category multi|topic1|topic2|position=left}}
- Usage:
The template will state "Wikimedia Commons has media related to (category):..." and then display the first 2 topic names in bold/italics as "topic1 or topic2" (as links). The optional topics 3 or 4 would be on the next line ("or topic3 or topic4"). Optional topics 5 and 6 would be on a third line.
The optional |position=left shifts the box to the left margin. The template is on the right margin by default.
|delimiter= specifies which delimiter is used to separate each entry. Be careful, as this parameter accepts wikicode as well. So, to specify semicolon (;) as the delimiter (which is the Wikicode for definition list), use {{;}} instead. Because the leading and trailing spaces are ignored, use   to indicate a space.
Note that the topic names should exist as category names in Wikimedia Commons (edited using a Wikimedia login name).
Location

Generally:
Do not place this template or any box-type template in a section all by itself.
Do not place this template in a section containing columns without floating left.
Do not indent this template with colon (:) or a bullet (*) markup.
Specifically:
- In articles, this template should be placed at the top of the last section on the page so that it floats to the right of that section.
- See Wikipedia:Wikimedia sister projects#Where to place links for more information and alternatives.
- In disambiguation pages, this template is usually placed at the top of the page.
- In categories, this template should be grouped with other templates at the beginning of the category introduction. This avoids unnecessary white space as any text is floated around the template boxes.
Examples
The following examples show the results of the template uasge.
| Wikitext | Displays as |
|---|---|
| {{Commons category multi|Gold|Silver}} | |
This example shows the use of |position=left:{{Commons category multi|Red|Pale Green|position=left}} |
Wikimedia Commons has media related to |
| {{Commons category multi|Los Angeles|New York}} | Wikimedia Commons has media related to |
| This example shows links to misspelled words, in this case "Les Angles" and "Now York." {{Commons category multi|Les Angles|Now York}} |
Wikimedia Commons has media related to |
| {{Commons category multi|Ludwig van Beethoven|Richard Strauss}} | Wikimedia Commons has media related to |
| {{Commons category multi|Gold|Silver|Bronze}} | |
| {{Commons category multi|Gold|Silver|Bronze|Iron}} | |
| This example shows the use of delimiters; see § Usage section above for more details. {{Commons category multi|Gold|Silver|Bronze|Iron|Copper|Brass|delimiter=; }} |
TemplateData
TemplateData for Commons category multi
Displays a box along either lateral page margin with links to up to 12 category pages at Wikimedia Commons
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Topic 1 | 1 | Name of first category to link to at Wikimedia Commons | Line | required |
| Alignment | position align | Sets the lateral page margin with which the link box is aligned; must be one of: 'left' or 'right' (default).
| Line | optional |
| Topic 2 | 2 | Name of second category to link to at Wikimedia Commons | Line | optional |
| Topic 3 | 3 | Name of third category to link to at Wikimedia Commons | Line | optional |
| Topic 4 | 4 | Name of fourth category to link to at Wikimedia Commons | Line | optional |
| Topic 5 | 5 | Name of fifth category to link to at Wikimedia Commons | Line | optional |
| Topic 6 | 6 | Name of sixth category to link to at Wikimedia Commons | Line | optional |
| Topic 7 | 7 | Name of seventh category to link to at Wikimedia Commons | Line | optional |
| Topic 8 | 8 | Name of eighth category to link to at Wikimedia Commons | Line | optional |
| Topic 9 | 9 | Name of ninth category to link to at Wikimedia Commons | Line | optional |
| Topic 10 | 10 | Name of tenth category to link to at Wikimedia Commons | Line | optional |
| Topic 11 | 11 | Name of eleventh category to link to at Wikimedia Commons | Line | optional |
| Topic 12 | 12 | Name of twelfth category to link to at Wikimedia Commons | Line | optional |
| Alternate term | alt-term | Replaces the default text 'media related to' the precedes the category links by default
| Line | optional |
| List delimiter | delimiter | Defines a custom text string to separate the category links rather than the default spaced commas
| Line | optional |
| Conjunction | conjunction | Defines a custom separator between the penultimate and final links when three or more categories are specified rather than the default 'and'
| Line | optional |
Redirects
- {{Commonscat-N}}
- {{Commoncats}}
- {{Commonscat show2}}
- {{Commonscats}}
- {{Common cats}}
- {{Commons cats}}
- {{Commons cat show2}}
- {{Commonscat multi}}
- {{Commons cat multi}}
- {{Ccatm}}
- {{Commons category multiple}}
- {{Commonscat-multi}}
- {{Commons category-multi}}
- {{Commons multiple}}
- {{Commons multi}}
- {{Commonscatmulti}}
See also
- Wikipedia:Manual of Style/Layout § External links
- {{Commons}}—shows Commons box
- {{Commons-inline}}—shows Commons gallery inline
- {{Commons category}}—shows Commons category box
- {{Commons category-inline}}—shows Commons category inline
- {{Commons category multi}}—to list up to six categories
- {{Commons and category}}—shows Commons box with both gallery and category
- {{Commons and category inline}}—shows Commons gallery and category inline
- {{Copy to Wikimedia Commons}}
- {{Wikimedia Commons redirect}}—specialized soft redirect template for Commons
- {{Wiki category}}—to link to a gallery hosted on Wikipedia
- mw:Manual:Pywikibot/commonscat.py
- {{Sister project links}}—to link all Wikinews, Wikisource, etc.
- {{Wikibooks}} / {{Wikibooks inline}}
- {{Wikidata property}}
- {{Wikinews}} / {{Wikinews inline}}
- {{Wikiquote}} / {{Wikiquote-inline}}
- {{Wikisource}} / {{Wikisource-inline}}
- {{Wikispecies}} / {{Wikispecies-inline}}
- {{Wikiversity}} / {{Wikiversity inline}}
- {{Wikivoyage}} / {{Wikivoyage inline}}
- {{Wiktionary}} / {{Wiktionary-inline}}