Difference between revisions of "Template:Double image"
(updating classes and tags) |
Dinoguy1000 (talk | contribs) (newest version from WP; deprecate) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{ | + | <noinclude>{{Deprecated|Template:Multiple image}} |
− | </noinclude><includeonly>{{ | + | </noinclude><includeonly>{{multiple image |
− | + | | align = {{{{{|safesubst:}}}#switch: {{{1|}}} | |
− | + | |left|right = {{{1|}}} | |
− | + | |center|centre = center | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
}} | }} | ||
− | |} | + | | direction = horizontal |
− | + | | image1 = {{{2}}} | |
− | {{# | + | | width1 = {{{3|0}}} |
− | | | + | | alt1 = {{{8|}}} |
− | | # | + | | caption1 = {{{{{|safesubst:}}}#if: {{{7|}}} | {{{6|}}} }} |
+ | | image2 = {{{4}}} | ||
+ | | width2 = {{{5|0}}} | ||
+ | | alt2 = {{{9|}}} | ||
+ | | caption2 = {{{7|}}} | ||
+ | | footer = {{{{{|safesubst:}}}#if: {{{7|}}} || {{{6|}}} }} | ||
+ | | footer_align = left | ||
+ | | valign = {{{valign|middle}}} <!-- style="vertical-align:{{{valign|middle}}};" --> | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 18:06, 22 July 2018
This template is deprecated. Please use Template:Multiple image instead. |
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}}