Templat:Commons cat show2

Wikimedia Commons mempunyai media berkenaan:
[[Commons:Category:{{{1}}}|]]

Description sunting

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") and allows changing width or floating the box to the left.

Usage:   {{Commons_cat_show2| topic1 | topic2 | align=left | width=20em}}
Usage:   {{Commons_cat_show2| topic1 | topic2 | topic3}}
Usage:   {{Commons_cat_show2| topic1 | topic2 | topic3 | topic4}}
Usage:   {{Commons_cat_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. Other optional parameters:

  • align=left - shifts the box to the left margin (default: right)
  • width=20em - can be added to widen the box for longer words (such as by "width=24em").

Note that the topic names should exist as category names in Wikimedia Commons (edited using a Wikimedia login name).

Related sunting

The Category:Interwiki category linking templates also includes:

Examples sunting

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 "{{Commons_cat_show2| Gold | Silver}}" below:
Wikimedia Commons mempunyai media berkenaan:
Example for "{{Commons_cat_show2| Red | Pale Green | align=left}}" below:
Wikimedia Commons mempunyai media berkenaan:
Example for "{{Commons_cat_show2| Los Angeles | New York}}" below:
Wikimedia Commons mempunyai media berkenaan:
Misspelling in "{{Commons_cat_show2| Les Angles | Now York}}" below:
Wikimedia Commons mempunyai media berkenaan:
WARNING: Note how misspelled words seem to be valid links to Wikimedia. Check spelling carefully.
Example for "{{Commons_cat_show2|Ludwig van Beethoven|Richard Strauss|width=22em}}" below:
Example for "{{Commons_cat_show2|Gold|Silver|Bronze}}" below:
Wikimedia Commons mempunyai media berkenaan:
Gold or Silver or
Bronze
Example for "{{Commons_cat_show2|Gold|Silver|Bronze|Iron}}" below:
Wikimedia Commons mempunyai media berkenaan:
Gold or Silver or
Bronze or Iron
Example for "{{Commons_cat_show2|Gold|Silver|Bronze|Iron| Copper|Brass}}" below:
Wikimedia Commons mempunyai media berkenaan:
Gold or Silver or
Bronze or Iron or
Copper or Brass
Example for alignment "Begin1|End1|Begin2|End2|Begin3|End3" below:
Wikimedia Commons mempunyai media berkenaan:
Begin1 or End1 or
Begin2 or End2 or
Begin3 or End3

See also sunting