Difference between revisions of "Template:Triple image"
(create) |
m (same fixes as Template:Double image) |
||
Line 3: | Line 3: | ||
| left = <div class="thumb tleft"> | | left = <div class="thumb tleft"> | ||
| right = <div class="thumb tright"> | | right = <div class="thumb tright"> | ||
− | | center | + | | center = <div class="center"><div class="thumb tnone"> |
| #default = <div class="thumb tright"> | | #default = <div class="thumb tright"> | ||
}}<div class="thumbinner" style="width:{{#expr: {{{3|0}}} + {{{5|0}}} + {{{7|0}}} + 12}}px;"> | }}<div class="thumbinner" style="width:{{#expr: {{{3|0}}} + {{{5|0}}} + {{{7|0}}} + 12}}px;"> | ||
{| style="background: transparent; border: 0; padding: 0; margin: 0; width:{{#expr: {{{3|0}}} + {{{5|0}}} + {{{7|0}}} + 6}}px;" cellspacing="0" | {| style="background: transparent; border: 0; padding: 0; margin: 0; width:{{#expr: {{{3|0}}} + {{{5|0}}} + {{{7|0}}} + 6}}px;" cellspacing="0" | ||
− | | style="padding: 0; margin: 0;" class="thumbimage" | [[ | + | | style="padding: 0; margin: 0;" class="thumbimage" | [[File:{{{2}}}|{{{3}}}px|alt={{{11|}}}]] |
| style="padding: 0; margin: 0; border: 0; width: 2px" | | | style="padding: 0; margin: 0; border: 0; width: 2px" | | ||
− | | style="padding: 0; margin: 0;" class="thumbimage" | [[ | + | | style="padding: 0; margin: 0;" class="thumbimage" | [[File:{{{4}}}|{{{5}}}px|alt={{{12|}}}]] |
| style="padding: 0; margin: 0; border: 0; width: 2px" | | | style="padding: 0; margin: 0; border: 0; width: 2px" | | ||
− | | style="padding: 0; margin: 0;" class="thumbimage" | [[ | + | | style="padding: 0; margin: 0;" class="thumbimage" | [[File:{{{6}}}|{{{7}}}px|alt={{{13|}}}]] |
|- | |- | ||
{{#if: {{{9|}}}{{{10|}}} | | {{#if: {{{9|}}}{{{10|}}} | | ||
Line 25: | Line 25: | ||
</div> | </div> | ||
{{#switch: {{{1|}}} | {{#switch: {{{1|}}} | ||
− | | center | + | | center = </div></div> |
| </div> | | </div> | ||
}}{{#if: {{{1|}}} | | | }}{{#if: {{{1|}}} | | |
Revision as of 11:31, 12 December 2012
This template uses Creative Commons licensed content from Wikipedia's Template:Triple image template.
The list of authors can be seen in the page history there. See Wikipedia's copyrights page for more information. |
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 or Template:Multiple image for only two images and Template:Multiple image for stacking images vertically.
Examples
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}}
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
- {{Double image}}
- {{Multiple image}}