Template:Triple image/doc

From openwfm
Jump to navigation Jump to search

{{#if: |

40px This is the template documentation page for Template:Triple 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
   | Template:Mbox
   }}{{
   #if: 
   | 
   | [[Category:{{
     #if: Template
     | Template
     | Article
   }} documentation]]
 }}

| }} }}

This template creates a box with three images side by side by side.

Usage

It needs parameters like this:

{{triple image|left/right/center|Image 1|Size 1|Image 2|Size 2|Image 3|Size 3|Left caption|[Center caption]|[Right caption]|Left alt text|Center alt text|Right alt text}}

See WP:ALT for advice about alt text.

See also Template:Double image for only two images and Template:Double image stack for stacking two images vertically and Template:Multiple image.

Examples

{{#if: right | |

}}{{#switch: right | left =
| right =
| center|centre =
| #default =
|

}}{{#if: right | |

{{triple image|left/right/center|Image 1|Size 1|Image 2|Size 2|Image 3|Size 3|Left caption|[Center caption]|[Right caption]|Left alt text|Center alt text|Right alt text}} }} To the right, with one single caption:

{{triple image|right|Ribbon numeral 2.png|60|Ribbon numeral 3.png|60|Ribbon numeral 4.png|60|When a user has many of one type of [[WP:BARN|barnstar]], they can represent them with [[WP:RIBBON|ribbons]] and these numerals to indicate the count.|||digit 2|digit 3|digit 4}}


{{#if: left | |
}}{{#switch: left | left =
| right =
| center|centre =
| #default =
}}
{{#if: Number 3Number 4 |
Number 2 Number 2}} Number 2}}
Number 2
Number 3
Number 4
Number 2

}}

{{#switch: left

| center|centre =
|

}}{{#if: left | |

{{triple image|left/right/center|Image 1|Size 1|Image 2|Size 2|Image 3|Size 3|Left caption|[Center caption]|[Right caption]|Left alt text|Center alt text|Right alt text}} }} To the left. With three captions, one beneath each image:

{{triple image|left|Ribbon numeral 2.png|60|Ribbon numeral 3.png|60|Ribbon numeral 4.png|60|Number 2|Number 3|Number 4|digit 2|digit 3|digit 4}}


See also