Template:Commonscat show2
From Wikipedia, the free encyclopedia
Contents |
[edit] Summary
This template is similar to "Commonscat" but shows 2, 3, 4, 5 or 6 categories (the name "show2" is easier to use than would be "show-n").
-
- Usage: {{Commonscat_show2| topic1 | topic2}}
- Usage: {{Commonscat_show2| topic1 | topic2 | topic3}}
- Usage: {{Commonscat_show2| topic1 | topic2 | topic3 | topic4}}
- Usage: {{Commonscat_show2| topic1 | t2 | t3 | t4 | t5 | t6}}
See examples, further below. 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.
If the second topic is omitted, then the article name (the "PAGENAME") will be shown as the topic name of the 2nd Commons category in the box. Note that the topic names should exist as category names in Wikimedia Commons (edited using a Wikimedia login name).
[edit] Related
The Category:Interwiki category linking templates also includes:
- Template:Commonscat-N - to list up to 4 categories, one per line;
- Template:Commonscat2 - to link just other category: "media in a matching Category";
- Template:Commonscat4 - lefthand box with "image media such as pictures and maps" (only one category).
[edit] Examples
The following examples show the results of the template as stored in the Wikipedia library (but not the results when previewing the template during editing).
- Example for "{{Commonscat_show2| Gold | Silver}}" below:
- Example for "{{Commonscat_show2| Los Angeles | New York}}" below:
- Misspelling in "{{Commonscat_show2| Les Angles | Now York}}" below:
-
- WARNING: Note how misspelled words seem to be valid links to Wikimedia. Check spelling carefully.
- Example for "{{Commonscat_show2|Gold|Silver|Bronze}}" below:
- Example for "{{Commonscat_show2|Gold|Silver|Bronze|Iron}}" below:
- Example for "{{Commonscat_show2|Gold|Silver|Bronze|Iron| Copper|Brass}}" below:
- Example for alignment "Begin1|End1|Begin2|End2|Begin3|End3" below:
[edit] See also
- Template:Commonscat-N - to list up to 4 categories, one per line.
- Template:Wikimedia - to link all Wikinews, Wikisource, etc.