Difference between revisions of "Template:Double image"
(Image: → File, rm. spelling alternative. The main part of the site uses en-US spellings) |
(update classes) |
||
Line 1: | Line 1: | ||
<noinclude>{{Wikipedia}} | <noinclude>{{Wikipedia}} | ||
</noinclude><includeonly>{{#switch: {{{1|}}} <!-- first parameter inserts a <div> with a left, right or central float --> | </noinclude><includeonly>{{#switch: {{{1|}}} <!-- first parameter inserts a <div> with a left, right or central float --> | ||
− | | left = <div class="thumb tleft"> | + | | left = <div class="thumb tleft article-thumb"> |
| right = <div class="thumb tright"> | | right = <div class="thumb tright"> | ||
| center = <div class="center"><div class="thumb tnone"> | | center = <div class="center"><div class="thumb tnone"> | ||
Line 13: | Line 13: | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
{{#if: {{{7|}}} | <!-- two captions if the seventh param (caption for title two) is specified --> | {{#if: {{{7|}}} | <!-- two captions if the seventh param (caption for title two) is specified --> | ||
− | {{!}} style="padding: 0; margin: 0; border: 0;" {{!}} <div class="thumbcaption">{{{6|}}}</div> | + | {{!}} style="padding: 0; margin: 0; border: 0;" {{!}} <div class="caption thumbcaption">{{{6|}}}</div> |
{{!}} style="padding: 0; margin: 0; border: 0;" {{!}} | {{!}} style="padding: 0; margin: 0; border: 0;" {{!}} | ||
− | {{!}} style="padding: 0; margin: 0; border: 0;" {{!}} <div class="thumbcaption">{{{7|}}}</div> | + | {{!}} style="padding: 0; margin: 0; border: 0;" {{!}} <div class="caption thumbcaption">{{{7|}}}</div> |
| <!-- otherwise just have one caption underneath both images --> | | <!-- otherwise just have one caption underneath both images --> | ||
− | {{!}} style="padding: 0; margin: 0; border: 0;" colspan="3" {{!}} <div class="thumbcaption">{{{6|}}}</div> | + | {{!}} style="padding: 0; margin: 0; border: 0;" colspan="3" {{!}} <div class="caption thumbcaption">{{{6|}}}</div> |
}} | }} | ||
|} | |} |
Revision as of 23:40, 13 March 2016
This template uses Creative Commons licensed content from Wikipedia's Template:Double image template.
The list of authors can be seen in the page history there. See Wikipedia's copyrights page for more information. |
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 wikipedia:WP:ALT for advice about alt text.
Examples
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}}
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
- {{Multiple image}}
- {{Triple image}}