Difference between revisions of "Template:Double image"
(update classes) |
(Restoring revision 4856460 by User:Dinoguy1000 on 2022-01-02 08:59:01. "fix "|=foo" bug") |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{ | + | <noinclude>{{Deprecated|Template:Multiple image}} |
− | </noinclude><includeonly>{{ | + | </noinclude><includeonly>{{multiple image |
− | | | + | | align = {{ safesubst:<noinclude/>#switch: {{{1|}}} |
− | + | |left|right = {{{1|}}} | |
− | + | |center|centre = center | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
}} | }} | ||
− | |} | + | | direction = horizontal |
− | </ | + | | image1 = {{{2}}} |
− | {{ | + | | width1 = {{{3|0}}} |
− | | | + | | alt1 = {{{8|}}} |
− | | < | + | | caption1 = {{ safesubst:<noinclude/>#if: {{{7|}}} | {{{6|}}} }} |
+ | | image2 = {{{4}}} | ||
+ | | width2 = {{{5|0}}} | ||
+ | | alt2 = {{{9|}}} | ||
+ | | caption2 = {{{7|}}} | ||
+ | | footer = {{ safesubst:<noinclude/>#if: {{{7|}}} || {{{6|}}} }} | ||
+ | | footer_align = left | ||
+ | | valign = {{{valign|middle}}} <!-- style="vertical-align:{{{valign|middle}}};" --> | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 02:39, 15 March 2023
This template is deprecated. Please use Template:Multiple image instead. |
Usage[edit]
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[edit]
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[edit]
- {{Multiple image}}
- {{Triple image}}