Difference between revisions of "Template:Commons category multi"

From blackwiki
Jump to navigation Jump to search
imported>V2Blast
m (italicized Wikimedia Commons links to be consistent with "Commons" and "Commons category" templates)
imported>Redrose64
(let's not include a revision history in the template itself - for a start, it's incomplete; also, this page (like all other pages) has a history link that is updated automatically)
Line 9: Line 9:
 
   |conjunction={{{conjunction|{{{delimiter|}}}}}}
 
   |conjunction={{{conjunction|{{{delimiter|}}}}}}
 
   |{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}|{{{11|}}}|{{{12|}}}}}.}}<noinclude>
 
   |{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}|{{{11|}}}|{{{12|}}}}}.}}<noinclude>
<!-- (begin portion displayed when NOT included) -->
+
{{Documentation}}
{{Documentation}}<!--
 
-------------------------------------------------------------
 
-HISTORY:
 
-22Feb07 New: commons multi-cats box, align=left & width=20em.
 
-13May09 Re-implemented again for align=left & width=20em.
 
-13May09 Set style="font-size:92%" like current {Commons cat}.
 
-13May09 Set image-spacing in style of current {Commons cat}.
 
-13May09 Reduced Commons-logo.svg as 41px (was 50px).
 
-13May09 Removed colon-indent ":" different on each wiki-server.
 
-13May09 Began internal HISTORY comments to log major changes.
 
-13May09 Set line-height by style="line-height:1.3em;".
 
-14May09 Set text-alignment by style="text-align:left;".
 
-14May09 Servers indented randomly until "text-align:left".
 
-14May09 Indented 8px (was 24px) for less-random alignment.
 
-14May09 Forced logo-cell width=42px as less-random alignment.
 
-14May09 (Random alignment occurred if 3 or more categories.)
 
-14May09 Wiki-servers - a nightmare of monthly spastication.
 
-01Jul17 Italicized Commons links to be consistent with {Commons cat}.
 
-
 
-- (end portion processed when NOT included) -->
 
 
</noinclude>
 
</noinclude>

Revision as of 12:33, 1 July 2017

Template:Sister project

Template documentation[view] [edit] [history] [purge]

Template:Message box

Usage

This template is similar to {{Commons category}} but shows 2, 3, 4, 5 or 6 categories, and allows changing width or floating the box to the left.

Usage: {{Commons category multi | topic1 | topic2 | align=left | width=20em}}
Usage: {{Commons category multi | topic1 | topic2 | topic3}}
Usage: {{Commons category multi | topic1 | topic2 | topic3 | topic4}}
Usage: {{Commons category multi | topic1 | t2 | t3 | t4 | t5 | t6}}

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 |align=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 &#32; to indicate space.

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

Location

Incorrect usage
  1. REDIRECT Template:Xmark
Do not place this template in a section all by itself.
  1. REDIRECT Template:Xmark
Do not place this template in a section containing columns.

In articles, this template should be placed in the External links section, if one exists, or at the top of the last section on the page, if no external links section exists. However, uf using a large, graphical template produces odd layout problems, like the excessive white space shown on the right of this screenshot, then switch to a different sister template.

Examples

The following examples show the results of the template uasge.

{{Commons category multi | Gold | Silver}}
Template:Sister project
This example shows the use of |align=left

{{Commons category multi | Red | Pale Green | align=left}}

Template:Sister project
{{Commons category multi | Los Angeles | New York}}
Template:Sister project
This example shows links to misspelled words, in this case "Les Angles".

{{Commons category multi | Les Angles | Now York}}

Template:Sister project
{{Commons category multi | Ludwig van Beethoven | Richard Strauss}}
Template:Sister project
{{Commons category multi | Gold | Silver | Bronze}}
Template:Sister project
{{Commons category multi | Gold | Silver | Bronze | Iron}}
Template:Sister project
This example shows the use of delimiters. See "Usage" section above for explanation.

{{Commons category multi | Gold | Silver | Bronze | Iron | Copper | Brass |delimiter={{;}}&#32;}}

Template:Sister project

See also