Dominion Atlantic Railway Digital Preservation Initiative - Wiki

Use of this site is subject to our Terms & Conditions.

Template:Double image/doc

From DARwiki

{{#if: |

40px This is the template documentation page for Template:Double image.
This page may not be intended to be viewed directly.
Links using variables may appear broken; do not replace these with hardcoded page names or URLs.

{{#if:x||

}} |{{#ifeq: doc | doc

 | 

{{

   #ifeq: show | show
   | {{
 {{#switch:
 {{#if: 
   | 
   | {{#if: 
     | 
       {{#ifeq:|
       | talk
       |  
       }}
     | 
       {{#ifeq:template|template talk
       | talk
       | template 
       }}
     }}
   }}

| main | = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | book = ombox | other | #default = ombox

}} | type = notice | image = none | imageright = | class = | style = | textstyle = | text = This is a documentation subpage for Template:Double image (see that page for the {{ #if: Template | template | article }} itself).
It contains usage information, categories and other content that is not part of the original {{ #if: Template |template page|article}}. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = }}

   }}{{
   #if: 
   | 
   | [[Category:{{
     #if: Template
     | Template
     | Article
   }} documentation]]
 }}

| }} }}

Usage

This template creates a box with two images side by side. It needs parameters like this:

{{double image|left/right/center|Left image|Left image size|Right image|Right image size|Left caption|Right caption|Left alt text|Right alt text}}

or

{{double image
|1=left/right/center
|2=Left image
|3=Left image size
|4=Right image
|5=Right image size
|6=Left caption
|7=Right caption (leave blank to combine)
|8=Left image alt text
|9=Right image alt text}}

See WP:ALT for advice about alt text.

Examples

{{#switch: right

| left =

| right =
| center|centre =
| #default =
}}
{{#if: |
Players are cautioned with a yellow card, and sent off with a red card, which is sometimes round. {{#if: Players are cautioned with a yellow card, and sent off with a red card, which is sometimes round.}}
Players are cautioned with a yellow card, and sent off with a red card, which is sometimes round.
Players are cautioned with a yellow card, and sent off with a red card, which is sometimes round.

}}

{{#switch: right

| center|centre =
|

}} To the right, with one single caption:

{{double image|right|Yellow card.svg|60|Red card.svg|60|Players are cautioned ... round.||Yellow cartouche|Red cartouche}}


{{#switch: left

| left =
| right =
| center|centre =
| #default =
}}
{{#if: Red |
Yellow Yellow}}
Yellow
Red
Yellow

}}

{{#switch: left

| center|centre =
|

}} To the left. With two captions, one beneath each image:

{{double image|left|Yellow card.svg|60|Red card.svg|60|Yellow|Red|Yellow cartouche|Red cartouche}}


See also