Template:Commonscat show2

From Wikipedia, the free encyclopedia

Wikimedia Commons has media related to (category):
[[Commons:Category:Template:Arg1|Template:Arg1]] or Commonscat show2

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:
Wikimedia Commons has media related to (category):


Example for "{{Commonscat_show2| Los Angeles | New York}}" below:
Wikimedia Commons has media related to (category):


Misspelling in "{{Commonscat_show2| Les Angles | Now York}}" below:
Wikimedia Commons has media related to (category):
WARNING: Note how misspelled words seem to be valid links to Wikimedia. Check spelling carefully.


Example for "{{Commonscat_show2|Gold|Silver|Bronze}}" below:
Wikimedia Commons has media related to (category):


Example for "{{Commonscat_show2|Gold|Silver|Bronze|Iron}}" below:
Wikimedia Commons has media related to (category):
Gold or Silver or
Bronze or Iron


Example for "{{Commonscat_show2|Gold|Silver|Bronze|Iron| Copper|Brass}}" below:
Wikimedia Commons has media related to (category):
Gold or Silver or
Bronze or Iron or
 Copper or Brass


Example for alignment "Begin1|End1|Begin2|End2|Begin3|End3" below:
Wikimedia Commons has media related to (category):
Begin1 or End1 or
Begin2 or End2 or
 Begin3 or End3


[edit] See also