Template:Multiple image: Difference between revisions

From The Jedi Academy Archives
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{multiple image
=== Usage ===
<!-- Essential parameters -->
This template creates a box with two images side by side. It needs parameters like this:
| align    = <!-- left/right/center -->
| direction = <!-- horizontal/vertical -->
| width    = <!-- Digits only; no "px" suffix, please -->


<!-- Image 1 -->
:<code><nowiki>{{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}}</nowiki></code>
| image1    = <!-- Filename only; no "File:" or "Image:" prefix, please -->
| width1    =
| alt1      =
| caption1  =


<!-- Image 2 -->
or
| image2    = <!-- Filename only; no "File:" or "Image:" prefix, please -->
<pre>
| width2    =  
{{double image
| alt2      =  
|1=left/right/center
| caption2  =  
|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}}
</pre>


<!-- Image 3 -->
See [[WP:ALT]] for advice about [[alt text]].
| image3    = <!-- Filename only; no "File:" or "Image:" prefix, please -->
| width3    =
| alt3      =
| caption3  =


<!-- up to |image10 is accepted -->
=== Examples ===
{{double image|right|Yellow card.svg|60|Red card.svg|60|Players are cautioned with a yellow card, and sent off with a red card, which is sometimes round.||Yellow cartouche|Red cartouche}}
To the right, with one single caption:
:<code><nowiki>{{double image|right|Yellow card.svg|60|Red card.svg|60|Players are cautioned ... round.||Yellow cartouche|Red cartouche}}</nowiki></code>


<!-- Extra parameters -->
<br clear=all>
| header            =
{{double image|left|Yellow card.svg|60|Red card.svg|60|Yellow|Red|Yellow cartouche|Red cartouche}}
| header_align      = <!-- left/right/center -->
To the left. With two captions, one beneath each image:
| header_background =
:<code><nowiki>{{double image|left|Yellow card.svg|60|Red card.svg|60|Yellow|Red|Yellow cartouche|Red cartouche}}</nowiki></code>
| footer            =
{{-}}
| footer_align      = <!-- left/right/center -->
| footer_background =
| background color  =
}}

Revision as of 13:10, 11 September 2011

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 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}}