قالب:Commons cat multi

Commons-logo.svg
Wikimedia Commons لديها وسائط متعلقة بموضوع:
[[Commons:Category:{{{1}}}|]]
Template documentation[view] [edit] [history] [purge]

Usage

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:   {{Commonscat_show2| topic1 | topic2 | align=left | width=20em}}
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. 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

The Category:Interwiki category linking templates also includes:

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| Red | Pale Green | align=left}}" 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|Ludwig van Beethoven|Richard Strauss|width=22em}}" below:


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:

See also