CURRENT MISSION: Conclude the 2026 soyjak.party hack page, aswell as any pages relating to it, such as the Summer 2026 Crisis page.
Update Quotecord with any relevant info. See the blackboard for more info.
Template:Multiple image: Difference between revisions
Replaced content with "you VILL come back later and i VILL finish this." Tag: Replaced |
this should work or something |
||
| Line 1: | Line 1: | ||
you | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE. --> | |||
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images. | |||
== Usage == | |||
{{TemplateDataHeader}} | |||
<templatedata> | |||
{ | |||
"description": "This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.", | |||
"params": { | |||
"align": { | |||
"type": "string", | |||
"label": "Align", | |||
"default": "right", | |||
"description": "left/right/center/none" | |||
}, | |||
"direction": { | |||
"default": "horizontal", | |||
"type": "string", | |||
"label": "Direction", | |||
"description": "horizontal/vertical" | |||
}, | |||
"width": { | |||
"type": "string", | |||
"label": "Width", | |||
"description": "width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter. Integer width in pixels; no 'px' suffix" | |||
}, | |||
"background color": { | |||
"type": "string", | |||
"label": "Background color", | |||
"description": "defines the background color between the border of the box and the images." | |||
}, | |||
"header": { | |||
"type": "string", | |||
"label": "Header" | |||
}, | |||
"footer": { | |||
"type": "string", | |||
"label": "Footer" | |||
}, | |||
"header_align": { | |||
"default": "center", | |||
"type": "string", | |||
"label": "Header align", | |||
"description": "left/right/center" | |||
}, | |||
"footer_align": { | |||
"default": "left", | |||
"type": "string", | |||
"label": "Footer align", | |||
"description": "left/right/center" | |||
}, | |||
"header_background": { | |||
"type": "string", | |||
"label": "Header background" | |||
}, | |||
"footer_background": { | |||
"type": "string", | |||
"label": "Footer background" | |||
}, | |||
"image1": { | |||
"description": "image1 is name of first image. Similarly for image2, etc. File name only; no 'File:' or 'Image:' prefix.", | |||
"type": "string" | |||
}, | |||
"width1": { | |||
"description": "width1 is width of first image. Similarly for width2, etc. ", | |||
"type": "number" | |||
}, | |||
"alt1": { | |||
"type": "string", | |||
"description": "alt1 is [[alt text]] of first image (see [[WP:ALT]]). Similarly for alt2, etc." | |||
}, | |||
"caption1": { | |||
"type": "string", | |||
"description": "caption1 is caption of first image. Similarly for caption2, etc." | |||
}, | |||
"link1": { | |||
"type": "string/wiki-page-name", | |||
"description": "is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[WP:ALT]].\nImportant: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction." | |||
}, | |||
"image2": {}, | |||
"width2": {}, | |||
"alt2": {}, | |||
"caption2": {}, | |||
"link2": {}, | |||
"image3": {}, | |||
"width3": {}, | |||
"alt3": {}, | |||
"caption3": {}, | |||
"link3": {} | |||
} | |||
} | |||
</templatedata> | |||
* '''align''' defaults to "right" | |||
* '''direction''' defaults to "horizontal" | |||
* '''header_align''' defaults to "center" | |||
* '''footer_align''' defaults to "left" | |||
* '''image1''' is name of first image. Similarly for '''image2''', etc. | |||
* '''width1''' is width of first image. Similarly for '''width2''', etc. | |||
** '''width''' overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter. | |||
* '''alt1''' is [[alt text]] of first image (see [[WP:ALT]]). Similarly for '''alt2''', etc. | |||
* '''caption1''' is caption of first image. Similarly for '''caption2''', etc. | |||
* '''link1''' is where the first page links to. Similarly for '''link2''', etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[WP:ALT]].<br />'''Important''': If the image is under a free license like the GFDL or a CC license, you '''must not''' use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. | |||
* '''background color''' defines the [[List of colors|background color]] between the border of the box and the images. | |||
* header, footer, background color and captions are optional. | |||
<pre style="width: 85%; overflow:auto"> | |||
{{multiple image | |||
<!-- Essential parameters --> | |||
| align = <!-- left/right/center/none --> | |||
| direction = <!-- horizontal/vertical --> | |||
| width = <!-- integer width in pixels; no "px" suffix --> | |||
<!-- Image 1 --> | |||
| image1 = <!-- file name only; no "File:" or "Image:" prefix --> | |||
| width1 = | |||
| alt1 = | |||
| caption1 = | |||
<!-- Image 2 --> | |||
| image2 = <!-- file name only; no "File:" or "Image:" prefix --> | |||
| width2 = | |||
| alt2 = | |||
| caption2 = | |||
<!-- Image 3 --> | |||
| image3 = <!-- file name only; no "File:" or "Image:" prefix --> | |||
| width3 = | |||
| alt3 = | |||
| caption3 = | |||
<!-- up to |image10 is accepted --> | |||
<!-- Extra parameters --> | |||
| header = | |||
| header_align = <!-- left/right/center --> | |||
| header_background = | |||
| footer = | |||
| footer_align = <!-- left/right/center --> | |||
| footer_background = | |||
| background color = | |||
}}</pre> | |||
== Examples == | |||
{{multiple image | |||
| footer = 'Jaks are usually rated as 'Coal' or 'Gem'. | |||
| width = 60 | |||
| image1 = Minecraft-Coal.png | |||
| alt1 = Minecraft's coal icon. | |||
| image2 = Minecraft-diamond.png | |||
| alt2 = Minecraft's diamond icon. | |||
}} | |||
<pre style="overflow: auto;"> | |||
{{multiple image | |||
| footer = 'Jaks are usually rated as 'Coal' or 'Gem'. | |||
| width = 60 | |||
| image1 = Minecraft-Coal.png | |||
| alt1 = Minecraft's coal icon. | |||
| image2 = Minecraft-diamond.png | |||
| alt2 = Minecraft's diamond icon. | |||
}}</pre> | |||
{{-}} | |||
{{multiple image | |||
| align = left | |||
| direction = vertical | |||
| header = [[PNG]] transparency demonstration | |||
| width = 200 | |||
| image1 = Transparent original soyak.png | |||
| alt1 = Original Soyak with a transparent background | |||
| caption1 = A PNG image with an 8-bit transparency layer... | |||
| image2 = Fake Transparent soyak.png | |||
| alt2 = Original Soyak with a checkered background | |||
| caption2 = ...here overlaid onto a checkered background. | |||
}} | |||
<pre style="overflow: auto;"> | |||
{{multiple image | |||
| align = left | |||
| direction = vertical | |||
| header = [[PNG]] transparency demonstration | |||
| width = 200 | |||
| image1 = Transparent original soyak.png | |||
| alt1 = Original Soyak with a transparent background | |||
| caption1 = A PNG image with an 8-bit transparency layer... | |||
| image2 = Fake Transparent soyak.png | |||
| alt2 = Original Soyak with a checkered background | |||
| caption2 = ...here overlaid onto a checkered background. | |||
}}</pre> | |||
{{-}} | |||
=== Example with background color === | |||
{{multiple image | |||
| image1=Gem brimstone.png | |||
| alt1=Wholesomejak sitting on gems | |||
| image2=Gem_award.png | |||
| alt2=Realistic gem | |||
| image3=Minecraft-diamond.png | |||
| alt3= Minecraft's diamond icon | |||
| footer=[[Gem]] | |||
| footer_background=#f1f7fb | |||
| background color=#d9ebf4 | |||
| footer_align=center | |||
| width=160 | |||
}} | |||
<pre style="overflow: auto;"> | |||
{{multiple image | |||
| image1=Gem brimstone.png | |||
| alt1=Wholesomejak sitting on gems | |||
| image2=Gem_award.png | |||
| alt2=Realistic gem | |||
| image3=Minecraft-diamond.png | |||
| alt3= Minecraft's diamond icon | |||
| footer=[[Gem]] | |||
| footer_background=#f1f7fb | |||
| background color=#d9ebf4 | |||
| footer_align=center | |||
| width=160 | |||
}} | |||
</pre> | |||
{{-}} | |||
=== Example with links === | |||
{{multiple image | |||
| footer = The gem links to ''[[Gem]]'', the dust does not link anywhere, and the coal links to its image description page as usual. | |||
| align = left | |||
| image1 = Minecraft-diamond.png | |||
| width1 = 143 | |||
| alt1 = A gem | |||
| caption1 = A gem. | |||
| link1 = Gem | |||
| image2 = BaseDust.png | |||
| width2 = 150 | |||
| alt2 = Dust | |||
| caption2 = Dust. | |||
| link2 = | |||
| image3 = Minecraft-Coal.png | |||
| width3 = 91 | |||
| alt3 = Coal | |||
| caption3 = Coal. | |||
}} | |||
<pre style="overflow: auto;"> | |||
{{multiple image | |||
| footer = The gem links to ''[[Gem]]'', the dust does not link anywhere, and the coal links to its image description page as usual. | |||
| align = left | |||
| image1 = Minecraft-diamond.png | |||
| width1 = 143 | |||
| alt1 = A gem | |||
| caption1 = A gem. | |||
| link1 = Gem | |||
| image2 = BaseDust.png | |||
| width2 = 150 | |||
| alt2 = Dust | |||
| caption2 = Dust. | |||
| link2 = | |||
| image3 = Minecraft-Coal.png | |||
| width3 = 91 | |||
| alt3 = Coal | |||
| caption3 = Coal. | |||
}} | |||
</pre> | |||
{{-}} | |||
=== Horizontal placement === | |||
Vertical direction places the images on one column, while horizontal direction places the images on one row: | |||
{{multiple image | |||
| align = left | |||
| direction = vertical | |||
| header = vertical | |||
| width = 60 | |||
| image1 = Minecraft-Coal.png | |||
| image2 = BaseDust.png | |||
| image3 = Minecraft-diamond.png | |||
}} | |||
{{multiple image | |||
| align = left | |||
| direction = vertical | |||
| header = vertical | |||
| width = 60 | |||
| image1 = Minecraft-Coal.png | |||
| image2 = BaseDust.png | |||
| image3 = Minecraft-diamond.png | |||
}} | |||
{{clear}} | |||
==== Matching image heights ==== | |||
: ''This trick is not required if all images have the same [[Aspect ratio (image)|aspect ratio]], where ''{{para|width}}'' suffices'' | |||
* Decide on a common height for the images, say 100 pixels. | |||
* Examine the individual image pages to obtain the full resolution. For example: | |||
** [[:File:Minecraft-Coal.png]] shows "Minecraft-Coal.png (160 × 160 pixels, file size: 226 bytes, MIME type: image/png)" | |||
** [[:File:Minecraft-diamond.png]] shows "Minecraft-diamond.png (150 × 150 pixels, file size: 1 KB, MIME type: image/png)" | |||
* For non-square images, use these figures to construct an expression for the {{para|width''n''}} parameters, of the form: | |||
** <code><nowiki> | |||
{{#expr:</nowiki> (''dh'' * ''ow'' / ''oh'') round 0<nowiki>}}</nowiki></code> | |||
* where | |||
** ''dh'' is the desired height in pixels (100) | |||
** ''ow'' is the original width in pixels (750 or 300) | |||
** ''oh'' is the original height in pixels (536 or 300) | |||
* For ''square'' images, simply set the appropriate {{para|width''n''}} to be the desired height. If all are square, only {{para|width}} needs to be set. | |||
{{multiple image | |||
| footer = The two images are both rendered 100 pixels high | |||
| align = right | |||
| image1 = Minecraft-Coal.png | |||
| width1 = {{#expr: (100 * 750 / 536) round 0}} | |||
| alt1 = Coal | |||
| caption1 = Coal, originally 160 pixels high. | |||
| image2 = Minecraft-diamond.png | |||
| width2 = 100 | |||
| alt2 = A gem | |||
| caption2 = A gem, originally 150 pixels high. | |||
}} | |||
<pre style="overflow: auto;"> | |||
{{multiple image | |||
| footer = The two images are both rendered 100 pixels high | |||
| align = right | |||
| image1 = Minecraft-Coal.png | |||
| width1 = {{#expr: (100 * 750 / 536) round 0}} | |||
| alt1 = Coal | |||
| caption1 = Coal, originally 160 pixels high. | |||
| image2 = Minecraft-diamond.png | |||
| width2 = 100 | |||
| alt2 = A gem | |||
| caption2 = A gem, originally 150 pixels high. | |||
}} | |||
</pre> | |||
{{clear}} | |||
<includeonly><!-- | |||
++++ PLEASE ADD CATEGORIES BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. --> | |||
</includeonly> | |||
Revision as of 13:25, 17 May 2024
Template:Documentation subpage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
Usage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Align | align | left/right/center/none
| String | optional |
| Direction | direction | horizontal/vertical
| String | optional |
| Width | width | width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter. Integer width in pixels; no 'px' suffix | String | optional |
| Background color | background color | defines the background color between the border of the box and the images. | String | optional |
| Header | header | no description | String | optional |
| Footer | footer | no description | String | optional |
| Header align | header_align | left/right/center
| String | optional |
| Footer align | footer_align | left/right/center
| String | optional |
| Header background | header_background | no description | String | optional |
| Footer background | footer_background | no description | String | optional |
| image1 | image1 | image1 is name of first image. Similarly for image2, etc. File name only; no 'File:' or 'Image:' prefix. | String | optional |
| width1 | width1 | width1 is width of first image. Similarly for width2, etc. | Number | optional |
| alt1 | alt1 | alt1 is [[alt text]] of first image (see [[WP:ALT]]). Similarly for alt2, etc. | String | optional |
| caption1 | caption1 | caption1 is caption of first image. Similarly for caption2, etc. | String | optional |
| link1 | link1 | is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[WP:ALT]]. Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. | Page name | optional |
| image2 | image2 | no description | Unknown | optional |
| width2 | width2 | no description | Unknown | optional |
| alt2 | alt2 | no description | Unknown | optional |
| caption2 | caption2 | no description | Unknown | optional |
| link2 | link2 | no description | Unknown | optional |
| image3 | image3 | no description | Unknown | optional |
| width3 | width3 | no description | Unknown | optional |
| alt3 | alt3 | no description | Unknown | optional |
| caption3 | caption3 | no description | Unknown | optional |
| link3 | link3 | no description | Unknown | optional |
- align defaults to "right"
- direction defaults to "horizontal"
- header_align defaults to "center"
- footer_align defaults to "left"
- image1 is name of first image. Similarly for image2, etc.
- width1 is width of first image. Similarly for width2, etc.
- width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter.
- alt1 is alt text of first image (see WP:ALT). Similarly for alt2, etc.
- caption1 is caption of first image. Similarly for caption2, etc.
- link1 is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per WP:ALT.
Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. - background color defines the background color between the border of the box and the images.
- header, footer, background color and captions are optional.
{{multiple image
<!-- Essential parameters -->
| align = <!-- left/right/center/none -->
| direction = <!-- horizontal/vertical -->
| width = <!-- integer width in pixels; no "px" suffix -->
<!-- Image 1 -->
| image1 = <!-- file name only; no "File:" or "Image:" prefix -->
| width1 =
| alt1 =
| caption1 =
<!-- Image 2 -->
| image2 = <!-- file name only; no "File:" or "Image:" prefix -->
| width2 =
| alt2 =
| caption2 =
<!-- Image 3 -->
| image3 = <!-- file name only; no "File:" or "Image:" prefix -->
| width3 =
| alt3 =
| caption3 =
<!-- up to |image10 is accepted -->
<!-- Extra parameters -->
| header =
| header_align = <!-- left/right/center -->
| header_background =
| footer =
| footer_align = <!-- left/right/center -->
| footer_background =
| background color =
}}
Examples
Template:Documentation subpage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
Usage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Align | align | left/right/center/none
| String | optional |
| Direction | direction | horizontal/vertical
| String | optional |
| Width | width | width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter. Integer width in pixels; no 'px' suffix | String | optional |
| Background color | background color | defines the background color between the border of the box and the images. | String | optional |
| Header | header | no description | String | optional |
| Footer | footer | no description | String | optional |
| Header align | header_align | left/right/center
| String | optional |
| Footer align | footer_align | left/right/center
| String | optional |
| Header background | header_background | no description | String | optional |
| Footer background | footer_background | no description | String | optional |
| image1 | image1 | image1 is name of first image. Similarly for image2, etc. File name only; no 'File:' or 'Image:' prefix. | String | optional |
| width1 | width1 | width1 is width of first image. Similarly for width2, etc. | Number | optional |
| alt1 | alt1 | alt1 is [[alt text]] of first image (see [[WP:ALT]]). Similarly for alt2, etc. | String | optional |
| caption1 | caption1 | caption1 is caption of first image. Similarly for caption2, etc. | String | optional |
| link1 | link1 | is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[WP:ALT]]. Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. | Page name | optional |
| image2 | image2 | no description | Unknown | optional |
| width2 | width2 | no description | Unknown | optional |
| alt2 | alt2 | no description | Unknown | optional |
| caption2 | caption2 | no description | Unknown | optional |
| link2 | link2 | no description | Unknown | optional |
| image3 | image3 | no description | Unknown | optional |
| width3 | width3 | no description | Unknown | optional |
| alt3 | alt3 | no description | Unknown | optional |
| caption3 | caption3 | no description | Unknown | optional |
| link3 | link3 | no description | Unknown | optional |
- align defaults to "right"
- direction defaults to "horizontal"
- header_align defaults to "center"
- footer_align defaults to "left"
- image1 is name of first image. Similarly for image2, etc.
- width1 is width of first image. Similarly for width2, etc.
- width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter.
- alt1 is alt text of first image (see WP:ALT). Similarly for alt2, etc.
- caption1 is caption of first image. Similarly for caption2, etc.
- link1 is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per WP:ALT.
Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. - background color defines the background color between the border of the box and the images.
- header, footer, background color and captions are optional.
{{multiple image
<!-- Essential parameters -->
| align = <!-- left/right/center/none -->
| direction = <!-- horizontal/vertical -->
| width = <!-- integer width in pixels; no "px" suffix -->
<!-- Image 1 -->
| image1 = <!-- file name only; no "File:" or "Image:" prefix -->
| width1 =
| alt1 =
| caption1 =
<!-- Image 2 -->
| image2 = <!-- file name only; no "File:" or "Image:" prefix -->
| width2 =
| alt2 =
| caption2 =
<!-- Image 3 -->
| image3 = <!-- file name only; no "File:" or "Image:" prefix -->
| width3 =
| alt3 =
| caption3 =
<!-- up to |image10 is accepted -->
<!-- Extra parameters -->
| header =
| header_align = <!-- left/right/center -->
| header_background =
| footer =
| footer_align = <!-- left/right/center -->
| footer_background =
| background color =
}}
Examples
Template loop detected: Template:Multiple image
{{multiple image
| footer = 'Jaks are usually rated as 'Coal' or 'Gem'.
| width = 60
| image1 = Minecraft-Coal.png
| alt1 = Minecraft's coal icon.
| image2 = Minecraft-diamond.png
| alt2 = Minecraft's diamond icon.
}}
Template loop detected: Template:Multiple image
{{multiple image
| align = left
| direction = vertical
| header = [[PNG]] transparency demonstration
| width = 200
| image1 = Transparent original soyak.png
| alt1 = Original Soyak with a transparent background
| caption1 = A PNG image with an 8-bit transparency layer...
| image2 = Fake Transparent soyak.png
| alt2 = Original Soyak with a checkered background
| caption2 = ...here overlaid onto a checkered background.
}}
Example with background color
Template loop detected: Template:Multiple image
{{multiple image
| image1=Gem brimstone.png
| alt1=Wholesomejak sitting on gems
| image2=Gem_award.png
| alt2=Realistic gem
| image3=Minecraft-diamond.png
| alt3= Minecraft's diamond icon
| footer=[[Gem]]
| footer_background=#f1f7fb
| background color=#d9ebf4
| footer_align=center
| width=160
}}
Example with links
Template loop detected: Template:Multiple image
{{multiple image
| footer = The gem links to ''[[Gem]]'', the dust does not link anywhere, and the coal links to its image description page as usual.
| align = left
| image1 = Minecraft-diamond.png
| width1 = 143
| alt1 = A gem
| caption1 = A gem.
| link1 = Gem
| image2 = BaseDust.png
| width2 = 150
| alt2 = Dust
| caption2 = Dust.
| link2 =
| image3 = Minecraft-Coal.png
| width3 = 91
| alt3 = Coal
| caption3 = Coal.
}}
Horizontal placement
Vertical direction places the images on one column, while horizontal direction places the images on one row:
Template loop detected: Template:Multiple image
Template loop detected: Template:Multiple image
Matching image heights
- This trick is not required if all images have the same aspect ratio, where
|width=suffices
- Decide on a common height for the images, say 100 pixels.
- Examine the individual image pages to obtain the full resolution. For example:
- File:Minecraft-Coal.png shows "Minecraft-Coal.png (160 × 160 pixels, file size: 226 bytes, MIME type: image/png)"
- File:Minecraft-diamond.png shows "Minecraft-diamond.png (150 × 150 pixels, file size: 1 KB, MIME type: image/png)"
- For non-square images, use these figures to construct an expression for the
|widthn=parameters, of the form:{{#expr: (dh * ow / oh) round 0}}
- where
- dh is the desired height in pixels (100)
- ow is the original width in pixels (750 or 300)
- oh is the original height in pixels (536 or 300)
- For square images, simply set the appropriate
|widthn=to be the desired height. If all are square, only|width=needs to be set.
Template loop detected: Template:Multiple image
{{multiple image
| footer = The two images are both rendered 100 pixels high
| align = right
| image1 = Minecraft-Coal.png
| width1 = {{#expr: (100 * 750 / 536) round 0}}
| alt1 = Coal
| caption1 = Coal, originally 160 pixels high.
| image2 = Minecraft-diamond.png
| width2 = 100
| alt2 = A gem
| caption2 = A gem, originally 150 pixels high.
}}
{{multiple image
| footer = 'Jaks are usually rated as 'Coal' or 'Gem'.
| width = 60
| image1 = Minecraft-Coal.png
| alt1 = Minecraft's coal icon.
| image2 = Minecraft-diamond.png
| alt2 = Minecraft's diamond icon.
}}
Template:Documentation subpage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
Usage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Align | align | left/right/center/none
| String | optional |
| Direction | direction | horizontal/vertical
| String | optional |
| Width | width | width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter. Integer width in pixels; no 'px' suffix | String | optional |
| Background color | background color | defines the background color between the border of the box and the images. | String | optional |
| Header | header | no description | String | optional |
| Footer | footer | no description | String | optional |
| Header align | header_align | left/right/center
| String | optional |
| Footer align | footer_align | left/right/center
| String | optional |
| Header background | header_background | no description | String | optional |
| Footer background | footer_background | no description | String | optional |
| image1 | image1 | image1 is name of first image. Similarly for image2, etc. File name only; no 'File:' or 'Image:' prefix. | String | optional |
| width1 | width1 | width1 is width of first image. Similarly for width2, etc. | Number | optional |
| alt1 | alt1 | alt1 is [[alt text]] of first image (see [[WP:ALT]]). Similarly for alt2, etc. | String | optional |
| caption1 | caption1 | caption1 is caption of first image. Similarly for caption2, etc. | String | optional |
| link1 | link1 | is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[WP:ALT]]. Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. | Page name | optional |
| image2 | image2 | no description | Unknown | optional |
| width2 | width2 | no description | Unknown | optional |
| alt2 | alt2 | no description | Unknown | optional |
| caption2 | caption2 | no description | Unknown | optional |
| link2 | link2 | no description | Unknown | optional |
| image3 | image3 | no description | Unknown | optional |
| width3 | width3 | no description | Unknown | optional |
| alt3 | alt3 | no description | Unknown | optional |
| caption3 | caption3 | no description | Unknown | optional |
| link3 | link3 | no description | Unknown | optional |
- align defaults to "right"
- direction defaults to "horizontal"
- header_align defaults to "center"
- footer_align defaults to "left"
- image1 is name of first image. Similarly for image2, etc.
- width1 is width of first image. Similarly for width2, etc.
- width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter.
- alt1 is alt text of first image (see WP:ALT). Similarly for alt2, etc.
- caption1 is caption of first image. Similarly for caption2, etc.
- link1 is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per WP:ALT.
Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. - background color defines the background color between the border of the box and the images.
- header, footer, background color and captions are optional.
{{multiple image
<!-- Essential parameters -->
| align = <!-- left/right/center/none -->
| direction = <!-- horizontal/vertical -->
| width = <!-- integer width in pixels; no "px" suffix -->
<!-- Image 1 -->
| image1 = <!-- file name only; no "File:" or "Image:" prefix -->
| width1 =
| alt1 =
| caption1 =
<!-- Image 2 -->
| image2 = <!-- file name only; no "File:" or "Image:" prefix -->
| width2 =
| alt2 =
| caption2 =
<!-- Image 3 -->
| image3 = <!-- file name only; no "File:" or "Image:" prefix -->
| width3 =
| alt3 =
| caption3 =
<!-- up to |image10 is accepted -->
<!-- Extra parameters -->
| header =
| header_align = <!-- left/right/center -->
| header_background =
| footer =
| footer_align = <!-- left/right/center -->
| footer_background =
| background color =
}}
Examples
Template loop detected: Template:Multiple image
{{multiple image
| footer = 'Jaks are usually rated as 'Coal' or 'Gem'.
| width = 60
| image1 = Minecraft-Coal.png
| alt1 = Minecraft's coal icon.
| image2 = Minecraft-diamond.png
| alt2 = Minecraft's diamond icon.
}}
Template loop detected: Template:Multiple image
{{multiple image
| align = left
| direction = vertical
| header = [[PNG]] transparency demonstration
| width = 200
| image1 = Transparent original soyak.png
| alt1 = Original Soyak with a transparent background
| caption1 = A PNG image with an 8-bit transparency layer...
| image2 = Fake Transparent soyak.png
| alt2 = Original Soyak with a checkered background
| caption2 = ...here overlaid onto a checkered background.
}}
Example with background color
Template loop detected: Template:Multiple image
{{multiple image
| image1=Gem brimstone.png
| alt1=Wholesomejak sitting on gems
| image2=Gem_award.png
| alt2=Realistic gem
| image3=Minecraft-diamond.png
| alt3= Minecraft's diamond icon
| footer=[[Gem]]
| footer_background=#f1f7fb
| background color=#d9ebf4
| footer_align=center
| width=160
}}
Example with links
Template loop detected: Template:Multiple image
{{multiple image
| footer = The gem links to ''[[Gem]]'', the dust does not link anywhere, and the coal links to its image description page as usual.
| align = left
| image1 = Minecraft-diamond.png
| width1 = 143
| alt1 = A gem
| caption1 = A gem.
| link1 = Gem
| image2 = BaseDust.png
| width2 = 150
| alt2 = Dust
| caption2 = Dust.
| link2 =
| image3 = Minecraft-Coal.png
| width3 = 91
| alt3 = Coal
| caption3 = Coal.
}}
Horizontal placement
Vertical direction places the images on one column, while horizontal direction places the images on one row:
Template loop detected: Template:Multiple image
Template loop detected: Template:Multiple image
Matching image heights
- This trick is not required if all images have the same aspect ratio, where
|width=suffices
- Decide on a common height for the images, say 100 pixels.
- Examine the individual image pages to obtain the full resolution. For example:
- File:Minecraft-Coal.png shows "Minecraft-Coal.png (160 × 160 pixels, file size: 226 bytes, MIME type: image/png)"
- File:Minecraft-diamond.png shows "Minecraft-diamond.png (150 × 150 pixels, file size: 1 KB, MIME type: image/png)"
- For non-square images, use these figures to construct an expression for the
|widthn=parameters, of the form:{{#expr: (dh * ow / oh) round 0}}
- where
- dh is the desired height in pixels (100)
- ow is the original width in pixels (750 or 300)
- oh is the original height in pixels (536 or 300)
- For square images, simply set the appropriate
|widthn=to be the desired height. If all are square, only|width=needs to be set.
Template loop detected: Template:Multiple image
{{multiple image
| footer = The two images are both rendered 100 pixels high
| align = right
| image1 = Minecraft-Coal.png
| width1 = {{#expr: (100 * 750 / 536) round 0}}
| alt1 = Coal
| caption1 = Coal, originally 160 pixels high.
| image2 = Minecraft-diamond.png
| width2 = 100
| alt2 = A gem
| caption2 = A gem, originally 150 pixels high.
}}
{{multiple image
| align = left
| direction = vertical
| header = [[PNG]] transparency demonstration
| width = 200
| image1 = Transparent original soyak.png
| alt1 = Original Soyak with a transparent background
| caption1 = A PNG image with an 8-bit transparency layer...
| image2 = Fake Transparent soyak.png
| alt2 = Original Soyak with a checkered background
| caption2 = ...here overlaid onto a checkered background.
}}
Example with background color
Template:Documentation subpage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
Usage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Align | align | left/right/center/none
| String | optional |
| Direction | direction | horizontal/vertical
| String | optional |
| Width | width | width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter. Integer width in pixels; no 'px' suffix | String | optional |
| Background color | background color | defines the background color between the border of the box and the images. | String | optional |
| Header | header | no description | String | optional |
| Footer | footer | no description | String | optional |
| Header align | header_align | left/right/center
| String | optional |
| Footer align | footer_align | left/right/center
| String | optional |
| Header background | header_background | no description | String | optional |
| Footer background | footer_background | no description | String | optional |
| image1 | image1 | image1 is name of first image. Similarly for image2, etc. File name only; no 'File:' or 'Image:' prefix. | String | optional |
| width1 | width1 | width1 is width of first image. Similarly for width2, etc. | Number | optional |
| alt1 | alt1 | alt1 is [[alt text]] of first image (see [[WP:ALT]]). Similarly for alt2, etc. | String | optional |
| caption1 | caption1 | caption1 is caption of first image. Similarly for caption2, etc. | String | optional |
| link1 | link1 | is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[WP:ALT]]. Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. | Page name | optional |
| image2 | image2 | no description | Unknown | optional |
| width2 | width2 | no description | Unknown | optional |
| alt2 | alt2 | no description | Unknown | optional |
| caption2 | caption2 | no description | Unknown | optional |
| link2 | link2 | no description | Unknown | optional |
| image3 | image3 | no description | Unknown | optional |
| width3 | width3 | no description | Unknown | optional |
| alt3 | alt3 | no description | Unknown | optional |
| caption3 | caption3 | no description | Unknown | optional |
| link3 | link3 | no description | Unknown | optional |
- align defaults to "right"
- direction defaults to "horizontal"
- header_align defaults to "center"
- footer_align defaults to "left"
- image1 is name of first image. Similarly for image2, etc.
- width1 is width of first image. Similarly for width2, etc.
- width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter.
- alt1 is alt text of first image (see WP:ALT). Similarly for alt2, etc.
- caption1 is caption of first image. Similarly for caption2, etc.
- link1 is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per WP:ALT.
Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. - background color defines the background color between the border of the box and the images.
- header, footer, background color and captions are optional.
{{multiple image
<!-- Essential parameters -->
| align = <!-- left/right/center/none -->
| direction = <!-- horizontal/vertical -->
| width = <!-- integer width in pixels; no "px" suffix -->
<!-- Image 1 -->
| image1 = <!-- file name only; no "File:" or "Image:" prefix -->
| width1 =
| alt1 =
| caption1 =
<!-- Image 2 -->
| image2 = <!-- file name only; no "File:" or "Image:" prefix -->
| width2 =
| alt2 =
| caption2 =
<!-- Image 3 -->
| image3 = <!-- file name only; no "File:" or "Image:" prefix -->
| width3 =
| alt3 =
| caption3 =
<!-- up to |image10 is accepted -->
<!-- Extra parameters -->
| header =
| header_align = <!-- left/right/center -->
| header_background =
| footer =
| footer_align = <!-- left/right/center -->
| footer_background =
| background color =
}}
Examples
Template loop detected: Template:Multiple image
{{multiple image
| footer = 'Jaks are usually rated as 'Coal' or 'Gem'.
| width = 60
| image1 = Minecraft-Coal.png
| alt1 = Minecraft's coal icon.
| image2 = Minecraft-diamond.png
| alt2 = Minecraft's diamond icon.
}}
Template loop detected: Template:Multiple image
{{multiple image
| align = left
| direction = vertical
| header = [[PNG]] transparency demonstration
| width = 200
| image1 = Transparent original soyak.png
| alt1 = Original Soyak with a transparent background
| caption1 = A PNG image with an 8-bit transparency layer...
| image2 = Fake Transparent soyak.png
| alt2 = Original Soyak with a checkered background
| caption2 = ...here overlaid onto a checkered background.
}}
Example with background color
Template loop detected: Template:Multiple image
{{multiple image
| image1=Gem brimstone.png
| alt1=Wholesomejak sitting on gems
| image2=Gem_award.png
| alt2=Realistic gem
| image3=Minecraft-diamond.png
| alt3= Minecraft's diamond icon
| footer=[[Gem]]
| footer_background=#f1f7fb
| background color=#d9ebf4
| footer_align=center
| width=160
}}
Example with links
Template loop detected: Template:Multiple image
{{multiple image
| footer = The gem links to ''[[Gem]]'', the dust does not link anywhere, and the coal links to its image description page as usual.
| align = left
| image1 = Minecraft-diamond.png
| width1 = 143
| alt1 = A gem
| caption1 = A gem.
| link1 = Gem
| image2 = BaseDust.png
| width2 = 150
| alt2 = Dust
| caption2 = Dust.
| link2 =
| image3 = Minecraft-Coal.png
| width3 = 91
| alt3 = Coal
| caption3 = Coal.
}}
Horizontal placement
Vertical direction places the images on one column, while horizontal direction places the images on one row:
Template loop detected: Template:Multiple image
Template loop detected: Template:Multiple image
Matching image heights
- This trick is not required if all images have the same aspect ratio, where
|width=suffices
- Decide on a common height for the images, say 100 pixels.
- Examine the individual image pages to obtain the full resolution. For example:
- File:Minecraft-Coal.png shows "Minecraft-Coal.png (160 × 160 pixels, file size: 226 bytes, MIME type: image/png)"
- File:Minecraft-diamond.png shows "Minecraft-diamond.png (150 × 150 pixels, file size: 1 KB, MIME type: image/png)"
- For non-square images, use these figures to construct an expression for the
|widthn=parameters, of the form:{{#expr: (dh * ow / oh) round 0}}
- where
- dh is the desired height in pixels (100)
- ow is the original width in pixels (750 or 300)
- oh is the original height in pixels (536 or 300)
- For square images, simply set the appropriate
|widthn=to be the desired height. If all are square, only|width=needs to be set.
Template loop detected: Template:Multiple image
{{multiple image
| footer = The two images are both rendered 100 pixels high
| align = right
| image1 = Minecraft-Coal.png
| width1 = {{#expr: (100 * 750 / 536) round 0}}
| alt1 = Coal
| caption1 = Coal, originally 160 pixels high.
| image2 = Minecraft-diamond.png
| width2 = 100
| alt2 = A gem
| caption2 = A gem, originally 150 pixels high.
}}
{{multiple image
| image1=Gem brimstone.png
| alt1=Wholesomejak sitting on gems
| image2=Gem_award.png
| alt2=Realistic gem
| image3=Minecraft-diamond.png
| alt3= Minecraft's diamond icon
| footer=[[Gem]]
| footer_background=#f1f7fb
| background color=#d9ebf4
| footer_align=center
| width=160
}}
Example with links
Template:Documentation subpage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
Usage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Align | align | left/right/center/none
| String | optional |
| Direction | direction | horizontal/vertical
| String | optional |
| Width | width | width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter. Integer width in pixels; no 'px' suffix | String | optional |
| Background color | background color | defines the background color between the border of the box and the images. | String | optional |
| Header | header | no description | String | optional |
| Footer | footer | no description | String | optional |
| Header align | header_align | left/right/center
| String | optional |
| Footer align | footer_align | left/right/center
| String | optional |
| Header background | header_background | no description | String | optional |
| Footer background | footer_background | no description | String | optional |
| image1 | image1 | image1 is name of first image. Similarly for image2, etc. File name only; no 'File:' or 'Image:' prefix. | String | optional |
| width1 | width1 | width1 is width of first image. Similarly for width2, etc. | Number | optional |
| alt1 | alt1 | alt1 is [[alt text]] of first image (see [[WP:ALT]]). Similarly for alt2, etc. | String | optional |
| caption1 | caption1 | caption1 is caption of first image. Similarly for caption2, etc. | String | optional |
| link1 | link1 | is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[WP:ALT]]. Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. | Page name | optional |
| image2 | image2 | no description | Unknown | optional |
| width2 | width2 | no description | Unknown | optional |
| alt2 | alt2 | no description | Unknown | optional |
| caption2 | caption2 | no description | Unknown | optional |
| link2 | link2 | no description | Unknown | optional |
| image3 | image3 | no description | Unknown | optional |
| width3 | width3 | no description | Unknown | optional |
| alt3 | alt3 | no description | Unknown | optional |
| caption3 | caption3 | no description | Unknown | optional |
| link3 | link3 | no description | Unknown | optional |
- align defaults to "right"
- direction defaults to "horizontal"
- header_align defaults to "center"
- footer_align defaults to "left"
- image1 is name of first image. Similarly for image2, etc.
- width1 is width of first image. Similarly for width2, etc.
- width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter.
- alt1 is alt text of first image (see WP:ALT). Similarly for alt2, etc.
- caption1 is caption of first image. Similarly for caption2, etc.
- link1 is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per WP:ALT.
Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. - background color defines the background color between the border of the box and the images.
- header, footer, background color and captions are optional.
{{multiple image
<!-- Essential parameters -->
| align = <!-- left/right/center/none -->
| direction = <!-- horizontal/vertical -->
| width = <!-- integer width in pixels; no "px" suffix -->
<!-- Image 1 -->
| image1 = <!-- file name only; no "File:" or "Image:" prefix -->
| width1 =
| alt1 =
| caption1 =
<!-- Image 2 -->
| image2 = <!-- file name only; no "File:" or "Image:" prefix -->
| width2 =
| alt2 =
| caption2 =
<!-- Image 3 -->
| image3 = <!-- file name only; no "File:" or "Image:" prefix -->
| width3 =
| alt3 =
| caption3 =
<!-- up to |image10 is accepted -->
<!-- Extra parameters -->
| header =
| header_align = <!-- left/right/center -->
| header_background =
| footer =
| footer_align = <!-- left/right/center -->
| footer_background =
| background color =
}}
Examples
Template loop detected: Template:Multiple image
{{multiple image
| footer = 'Jaks are usually rated as 'Coal' or 'Gem'.
| width = 60
| image1 = Minecraft-Coal.png
| alt1 = Minecraft's coal icon.
| image2 = Minecraft-diamond.png
| alt2 = Minecraft's diamond icon.
}}
Template loop detected: Template:Multiple image
{{multiple image
| align = left
| direction = vertical
| header = [[PNG]] transparency demonstration
| width = 200
| image1 = Transparent original soyak.png
| alt1 = Original Soyak with a transparent background
| caption1 = A PNG image with an 8-bit transparency layer...
| image2 = Fake Transparent soyak.png
| alt2 = Original Soyak with a checkered background
| caption2 = ...here overlaid onto a checkered background.
}}
Example with background color
Template loop detected: Template:Multiple image
{{multiple image
| image1=Gem brimstone.png
| alt1=Wholesomejak sitting on gems
| image2=Gem_award.png
| alt2=Realistic gem
| image3=Minecraft-diamond.png
| alt3= Minecraft's diamond icon
| footer=[[Gem]]
| footer_background=#f1f7fb
| background color=#d9ebf4
| footer_align=center
| width=160
}}
Example with links
Template loop detected: Template:Multiple image
{{multiple image
| footer = The gem links to ''[[Gem]]'', the dust does not link anywhere, and the coal links to its image description page as usual.
| align = left
| image1 = Minecraft-diamond.png
| width1 = 143
| alt1 = A gem
| caption1 = A gem.
| link1 = Gem
| image2 = BaseDust.png
| width2 = 150
| alt2 = Dust
| caption2 = Dust.
| link2 =
| image3 = Minecraft-Coal.png
| width3 = 91
| alt3 = Coal
| caption3 = Coal.
}}
Horizontal placement
Vertical direction places the images on one column, while horizontal direction places the images on one row:
Template loop detected: Template:Multiple image
Template loop detected: Template:Multiple image
Matching image heights
- This trick is not required if all images have the same aspect ratio, where
|width=suffices
- Decide on a common height for the images, say 100 pixels.
- Examine the individual image pages to obtain the full resolution. For example:
- File:Minecraft-Coal.png shows "Minecraft-Coal.png (160 × 160 pixels, file size: 226 bytes, MIME type: image/png)"
- File:Minecraft-diamond.png shows "Minecraft-diamond.png (150 × 150 pixels, file size: 1 KB, MIME type: image/png)"
- For non-square images, use these figures to construct an expression for the
|widthn=parameters, of the form:{{#expr: (dh * ow / oh) round 0}}
- where
- dh is the desired height in pixels (100)
- ow is the original width in pixels (750 or 300)
- oh is the original height in pixels (536 or 300)
- For square images, simply set the appropriate
|widthn=to be the desired height. If all are square, only|width=needs to be set.
Template loop detected: Template:Multiple image
{{multiple image
| footer = The two images are both rendered 100 pixels high
| align = right
| image1 = Minecraft-Coal.png
| width1 = {{#expr: (100 * 750 / 536) round 0}}
| alt1 = Coal
| caption1 = Coal, originally 160 pixels high.
| image2 = Minecraft-diamond.png
| width2 = 100
| alt2 = A gem
| caption2 = A gem, originally 150 pixels high.
}}
{{multiple image
| footer = The gem links to ''[[Gem]]'', the dust does not link anywhere, and the coal links to its image description page as usual.
| align = left
| image1 = Minecraft-diamond.png
| width1 = 143
| alt1 = A gem
| caption1 = A gem.
| link1 = Gem
| image2 = BaseDust.png
| width2 = 150
| alt2 = Dust
| caption2 = Dust.
| link2 =
| image3 = Minecraft-Coal.png
| width3 = 91
| alt3 = Coal
| caption3 = Coal.
}}
Horizontal placement
Vertical direction places the images on one column, while horizontal direction places the images on one row:
Template:Documentation subpage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
Usage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Align | align | left/right/center/none
| String | optional |
| Direction | direction | horizontal/vertical
| String | optional |
| Width | width | width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter. Integer width in pixels; no 'px' suffix | String | optional |
| Background color | background color | defines the background color between the border of the box and the images. | String | optional |
| Header | header | no description | String | optional |
| Footer | footer | no description | String | optional |
| Header align | header_align | left/right/center
| String | optional |
| Footer align | footer_align | left/right/center
| String | optional |
| Header background | header_background | no description | String | optional |
| Footer background | footer_background | no description | String | optional |
| image1 | image1 | image1 is name of first image. Similarly for image2, etc. File name only; no 'File:' or 'Image:' prefix. | String | optional |
| width1 | width1 | width1 is width of first image. Similarly for width2, etc. | Number | optional |
| alt1 | alt1 | alt1 is [[alt text]] of first image (see [[WP:ALT]]). Similarly for alt2, etc. | String | optional |
| caption1 | caption1 | caption1 is caption of first image. Similarly for caption2, etc. | String | optional |
| link1 | link1 | is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[WP:ALT]]. Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. | Page name | optional |
| image2 | image2 | no description | Unknown | optional |
| width2 | width2 | no description | Unknown | optional |
| alt2 | alt2 | no description | Unknown | optional |
| caption2 | caption2 | no description | Unknown | optional |
| link2 | link2 | no description | Unknown | optional |
| image3 | image3 | no description | Unknown | optional |
| width3 | width3 | no description | Unknown | optional |
| alt3 | alt3 | no description | Unknown | optional |
| caption3 | caption3 | no description | Unknown | optional |
| link3 | link3 | no description | Unknown | optional |
- align defaults to "right"
- direction defaults to "horizontal"
- header_align defaults to "center"
- footer_align defaults to "left"
- image1 is name of first image. Similarly for image2, etc.
- width1 is width of first image. Similarly for width2, etc.
- width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter.
- alt1 is alt text of first image (see WP:ALT). Similarly for alt2, etc.
- caption1 is caption of first image. Similarly for caption2, etc.
- link1 is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per WP:ALT.
Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. - background color defines the background color between the border of the box and the images.
- header, footer, background color and captions are optional.
{{multiple image
<!-- Essential parameters -->
| align = <!-- left/right/center/none -->
| direction = <!-- horizontal/vertical -->
| width = <!-- integer width in pixels; no "px" suffix -->
<!-- Image 1 -->
| image1 = <!-- file name only; no "File:" or "Image:" prefix -->
| width1 =
| alt1 =
| caption1 =
<!-- Image 2 -->
| image2 = <!-- file name only; no "File:" or "Image:" prefix -->
| width2 =
| alt2 =
| caption2 =
<!-- Image 3 -->
| image3 = <!-- file name only; no "File:" or "Image:" prefix -->
| width3 =
| alt3 =
| caption3 =
<!-- up to |image10 is accepted -->
<!-- Extra parameters -->
| header =
| header_align = <!-- left/right/center -->
| header_background =
| footer =
| footer_align = <!-- left/right/center -->
| footer_background =
| background color =
}}
Examples
Template loop detected: Template:Multiple image
{{multiple image
| footer = 'Jaks are usually rated as 'Coal' or 'Gem'.
| width = 60
| image1 = Minecraft-Coal.png
| alt1 = Minecraft's coal icon.
| image2 = Minecraft-diamond.png
| alt2 = Minecraft's diamond icon.
}}
Template loop detected: Template:Multiple image
{{multiple image
| align = left
| direction = vertical
| header = [[PNG]] transparency demonstration
| width = 200
| image1 = Transparent original soyak.png
| alt1 = Original Soyak with a transparent background
| caption1 = A PNG image with an 8-bit transparency layer...
| image2 = Fake Transparent soyak.png
| alt2 = Original Soyak with a checkered background
| caption2 = ...here overlaid onto a checkered background.
}}
Example with background color
Template loop detected: Template:Multiple image
{{multiple image
| image1=Gem brimstone.png
| alt1=Wholesomejak sitting on gems
| image2=Gem_award.png
| alt2=Realistic gem
| image3=Minecraft-diamond.png
| alt3= Minecraft's diamond icon
| footer=[[Gem]]
| footer_background=#f1f7fb
| background color=#d9ebf4
| footer_align=center
| width=160
}}
Example with links
Template loop detected: Template:Multiple image
{{multiple image
| footer = The gem links to ''[[Gem]]'', the dust does not link anywhere, and the coal links to its image description page as usual.
| align = left
| image1 = Minecraft-diamond.png
| width1 = 143
| alt1 = A gem
| caption1 = A gem.
| link1 = Gem
| image2 = BaseDust.png
| width2 = 150
| alt2 = Dust
| caption2 = Dust.
| link2 =
| image3 = Minecraft-Coal.png
| width3 = 91
| alt3 = Coal
| caption3 = Coal.
}}
Horizontal placement
Vertical direction places the images on one column, while horizontal direction places the images on one row:
Template loop detected: Template:Multiple image
Template loop detected: Template:Multiple image
Matching image heights
- This trick is not required if all images have the same aspect ratio, where
|width=suffices
- Decide on a common height for the images, say 100 pixels.
- Examine the individual image pages to obtain the full resolution. For example:
- File:Minecraft-Coal.png shows "Minecraft-Coal.png (160 × 160 pixels, file size: 226 bytes, MIME type: image/png)"
- File:Minecraft-diamond.png shows "Minecraft-diamond.png (150 × 150 pixels, file size: 1 KB, MIME type: image/png)"
- For non-square images, use these figures to construct an expression for the
|widthn=parameters, of the form:{{#expr: (dh * ow / oh) round 0}}
- where
- dh is the desired height in pixels (100)
- ow is the original width in pixels (750 or 300)
- oh is the original height in pixels (536 or 300)
- For square images, simply set the appropriate
|widthn=to be the desired height. If all are square, only|width=needs to be set.
Template loop detected: Template:Multiple image
{{multiple image
| footer = The two images are both rendered 100 pixels high
| align = right
| image1 = Minecraft-Coal.png
| width1 = {{#expr: (100 * 750 / 536) round 0}}
| alt1 = Coal
| caption1 = Coal, originally 160 pixels high.
| image2 = Minecraft-diamond.png
| width2 = 100
| alt2 = A gem
| caption2 = A gem, originally 150 pixels high.
}}
Template:Documentation subpage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
Usage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Align | align | left/right/center/none
| String | optional |
| Direction | direction | horizontal/vertical
| String | optional |
| Width | width | width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter. Integer width in pixels; no 'px' suffix | String | optional |
| Background color | background color | defines the background color between the border of the box and the images. | String | optional |
| Header | header | no description | String | optional |
| Footer | footer | no description | String | optional |
| Header align | header_align | left/right/center
| String | optional |
| Footer align | footer_align | left/right/center
| String | optional |
| Header background | header_background | no description | String | optional |
| Footer background | footer_background | no description | String | optional |
| image1 | image1 | image1 is name of first image. Similarly for image2, etc. File name only; no 'File:' or 'Image:' prefix. | String | optional |
| width1 | width1 | width1 is width of first image. Similarly for width2, etc. | Number | optional |
| alt1 | alt1 | alt1 is [[alt text]] of first image (see [[WP:ALT]]). Similarly for alt2, etc. | String | optional |
| caption1 | caption1 | caption1 is caption of first image. Similarly for caption2, etc. | String | optional |
| link1 | link1 | is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[WP:ALT]]. Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. | Page name | optional |
| image2 | image2 | no description | Unknown | optional |
| width2 | width2 | no description | Unknown | optional |
| alt2 | alt2 | no description | Unknown | optional |
| caption2 | caption2 | no description | Unknown | optional |
| link2 | link2 | no description | Unknown | optional |
| image3 | image3 | no description | Unknown | optional |
| width3 | width3 | no description | Unknown | optional |
| alt3 | alt3 | no description | Unknown | optional |
| caption3 | caption3 | no description | Unknown | optional |
| link3 | link3 | no description | Unknown | optional |
- align defaults to "right"
- direction defaults to "horizontal"
- header_align defaults to "center"
- footer_align defaults to "left"
- image1 is name of first image. Similarly for image2, etc.
- width1 is width of first image. Similarly for width2, etc.
- width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter.
- alt1 is alt text of first image (see WP:ALT). Similarly for alt2, etc.
- caption1 is caption of first image. Similarly for caption2, etc.
- link1 is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per WP:ALT.
Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. - background color defines the background color between the border of the box and the images.
- header, footer, background color and captions are optional.
{{multiple image
<!-- Essential parameters -->
| align = <!-- left/right/center/none -->
| direction = <!-- horizontal/vertical -->
| width = <!-- integer width in pixels; no "px" suffix -->
<!-- Image 1 -->
| image1 = <!-- file name only; no "File:" or "Image:" prefix -->
| width1 =
| alt1 =
| caption1 =
<!-- Image 2 -->
| image2 = <!-- file name only; no "File:" or "Image:" prefix -->
| width2 =
| alt2 =
| caption2 =
<!-- Image 3 -->
| image3 = <!-- file name only; no "File:" or "Image:" prefix -->
| width3 =
| alt3 =
| caption3 =
<!-- up to |image10 is accepted -->
<!-- Extra parameters -->
| header =
| header_align = <!-- left/right/center -->
| header_background =
| footer =
| footer_align = <!-- left/right/center -->
| footer_background =
| background color =
}}
Examples
Template loop detected: Template:Multiple image
{{multiple image
| footer = 'Jaks are usually rated as 'Coal' or 'Gem'.
| width = 60
| image1 = Minecraft-Coal.png
| alt1 = Minecraft's coal icon.
| image2 = Minecraft-diamond.png
| alt2 = Minecraft's diamond icon.
}}
Template loop detected: Template:Multiple image
{{multiple image
| align = left
| direction = vertical
| header = [[PNG]] transparency demonstration
| width = 200
| image1 = Transparent original soyak.png
| alt1 = Original Soyak with a transparent background
| caption1 = A PNG image with an 8-bit transparency layer...
| image2 = Fake Transparent soyak.png
| alt2 = Original Soyak with a checkered background
| caption2 = ...here overlaid onto a checkered background.
}}
Example with background color
Template loop detected: Template:Multiple image
{{multiple image
| image1=Gem brimstone.png
| alt1=Wholesomejak sitting on gems
| image2=Gem_award.png
| alt2=Realistic gem
| image3=Minecraft-diamond.png
| alt3= Minecraft's diamond icon
| footer=[[Gem]]
| footer_background=#f1f7fb
| background color=#d9ebf4
| footer_align=center
| width=160
}}
Example with links
Template loop detected: Template:Multiple image
{{multiple image
| footer = The gem links to ''[[Gem]]'', the dust does not link anywhere, and the coal links to its image description page as usual.
| align = left
| image1 = Minecraft-diamond.png
| width1 = 143
| alt1 = A gem
| caption1 = A gem.
| link1 = Gem
| image2 = BaseDust.png
| width2 = 150
| alt2 = Dust
| caption2 = Dust.
| link2 =
| image3 = Minecraft-Coal.png
| width3 = 91
| alt3 = Coal
| caption3 = Coal.
}}
Horizontal placement
Vertical direction places the images on one column, while horizontal direction places the images on one row:
Template loop detected: Template:Multiple image
Template loop detected: Template:Multiple image
Matching image heights
- This trick is not required if all images have the same aspect ratio, where
|width=suffices
- Decide on a common height for the images, say 100 pixels.
- Examine the individual image pages to obtain the full resolution. For example:
- File:Minecraft-Coal.png shows "Minecraft-Coal.png (160 × 160 pixels, file size: 226 bytes, MIME type: image/png)"
- File:Minecraft-diamond.png shows "Minecraft-diamond.png (150 × 150 pixels, file size: 1 KB, MIME type: image/png)"
- For non-square images, use these figures to construct an expression for the
|widthn=parameters, of the form:{{#expr: (dh * ow / oh) round 0}}
- where
- dh is the desired height in pixels (100)
- ow is the original width in pixels (750 or 300)
- oh is the original height in pixels (536 or 300)
- For square images, simply set the appropriate
|widthn=to be the desired height. If all are square, only|width=needs to be set.
Template loop detected: Template:Multiple image
{{multiple image
| footer = The two images are both rendered 100 pixels high
| align = right
| image1 = Minecraft-Coal.png
| width1 = {{#expr: (100 * 750 / 536) round 0}}
| alt1 = Coal
| caption1 = Coal, originally 160 pixels high.
| image2 = Minecraft-diamond.png
| width2 = 100
| alt2 = A gem
| caption2 = A gem, originally 150 pixels high.
}}
Matching image heights
- This trick is not required if all images have the same aspect ratio, where
|width=suffices
- Decide on a common height for the images, say 100 pixels.
- Examine the individual image pages to obtain the full resolution. For example:
- File:Minecraft-Coal.png shows "Minecraft-Coal.png (160 × 160 pixels, file size: 226 bytes, MIME type: image/png)"
- File:Minecraft-diamond.png shows "Minecraft-diamond.png (150 × 150 pixels, file size: 1 KB, MIME type: image/png)"
- For non-square images, use these figures to construct an expression for the
|widthn=parameters, of the form:{{#expr: (dh * ow / oh) round 0}}
- where
- dh is the desired height in pixels (100)
- ow is the original width in pixels (750 or 300)
- oh is the original height in pixels (536 or 300)
- For square images, simply set the appropriate
|widthn=to be the desired height. If all are square, only|width=needs to be set.
Template:Documentation subpage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
Usage
This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Align | align | left/right/center/none
| String | optional |
| Direction | direction | horizontal/vertical
| String | optional |
| Width | width | width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter. Integer width in pixels; no 'px' suffix | String | optional |
| Background color | background color | defines the background color between the border of the box and the images. | String | optional |
| Header | header | no description | String | optional |
| Footer | footer | no description | String | optional |
| Header align | header_align | left/right/center
| String | optional |
| Footer align | footer_align | left/right/center
| String | optional |
| Header background | header_background | no description | String | optional |
| Footer background | footer_background | no description | String | optional |
| image1 | image1 | image1 is name of first image. Similarly for image2, etc. File name only; no 'File:' or 'Image:' prefix. | String | optional |
| width1 | width1 | width1 is width of first image. Similarly for width2, etc. | Number | optional |
| alt1 | alt1 | alt1 is [[alt text]] of first image (see [[WP:ALT]]). Similarly for alt2, etc. | String | optional |
| caption1 | caption1 | caption1 is caption of first image. Similarly for caption2, etc. | String | optional |
| link1 | link1 | is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[WP:ALT]]. Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. | Page name | optional |
| image2 | image2 | no description | Unknown | optional |
| width2 | width2 | no description | Unknown | optional |
| alt2 | alt2 | no description | Unknown | optional |
| caption2 | caption2 | no description | Unknown | optional |
| link2 | link2 | no description | Unknown | optional |
| image3 | image3 | no description | Unknown | optional |
| width3 | width3 | no description | Unknown | optional |
| alt3 | alt3 | no description | Unknown | optional |
| caption3 | caption3 | no description | Unknown | optional |
| link3 | link3 | no description | Unknown | optional |
- align defaults to "right"
- direction defaults to "horizontal"
- header_align defaults to "center"
- footer_align defaults to "left"
- image1 is name of first image. Similarly for image2, etc.
- width1 is width of first image. Similarly for width2, etc.
- width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter.
- alt1 is alt text of first image (see WP:ALT). Similarly for alt2, etc.
- caption1 is caption of first image. Similarly for caption2, etc.
- link1 is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per WP:ALT.
Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. - background color defines the background color between the border of the box and the images.
- header, footer, background color and captions are optional.
{{multiple image
<!-- Essential parameters -->
| align = <!-- left/right/center/none -->
| direction = <!-- horizontal/vertical -->
| width = <!-- integer width in pixels; no "px" suffix -->
<!-- Image 1 -->
| image1 = <!-- file name only; no "File:" or "Image:" prefix -->
| width1 =
| alt1 =
| caption1 =
<!-- Image 2 -->
| image2 = <!-- file name only; no "File:" or "Image:" prefix -->
| width2 =
| alt2 =
| caption2 =
<!-- Image 3 -->
| image3 = <!-- file name only; no "File:" or "Image:" prefix -->
| width3 =
| alt3 =
| caption3 =
<!-- up to |image10 is accepted -->
<!-- Extra parameters -->
| header =
| header_align = <!-- left/right/center -->
| header_background =
| footer =
| footer_align = <!-- left/right/center -->
| footer_background =
| background color =
}}
Examples
Template loop detected: Template:Multiple image
{{multiple image
| footer = 'Jaks are usually rated as 'Coal' or 'Gem'.
| width = 60
| image1 = Minecraft-Coal.png
| alt1 = Minecraft's coal icon.
| image2 = Minecraft-diamond.png
| alt2 = Minecraft's diamond icon.
}}
Template loop detected: Template:Multiple image
{{multiple image
| align = left
| direction = vertical
| header = [[PNG]] transparency demonstration
| width = 200
| image1 = Transparent original soyak.png
| alt1 = Original Soyak with a transparent background
| caption1 = A PNG image with an 8-bit transparency layer...
| image2 = Fake Transparent soyak.png
| alt2 = Original Soyak with a checkered background
| caption2 = ...here overlaid onto a checkered background.
}}
Example with background color
Template loop detected: Template:Multiple image
{{multiple image
| image1=Gem brimstone.png
| alt1=Wholesomejak sitting on gems
| image2=Gem_award.png
| alt2=Realistic gem
| image3=Minecraft-diamond.png
| alt3= Minecraft's diamond icon
| footer=[[Gem]]
| footer_background=#f1f7fb
| background color=#d9ebf4
| footer_align=center
| width=160
}}
Example with links
Template loop detected: Template:Multiple image
{{multiple image
| footer = The gem links to ''[[Gem]]'', the dust does not link anywhere, and the coal links to its image description page as usual.
| align = left
| image1 = Minecraft-diamond.png
| width1 = 143
| alt1 = A gem
| caption1 = A gem.
| link1 = Gem
| image2 = BaseDust.png
| width2 = 150
| alt2 = Dust
| caption2 = Dust.
| link2 =
| image3 = Minecraft-Coal.png
| width3 = 91
| alt3 = Coal
| caption3 = Coal.
}}
Horizontal placement
Vertical direction places the images on one column, while horizontal direction places the images on one row:
Template loop detected: Template:Multiple image
Template loop detected: Template:Multiple image
Matching image heights
- This trick is not required if all images have the same aspect ratio, where
|width=suffices
- Decide on a common height for the images, say 100 pixels.
- Examine the individual image pages to obtain the full resolution. For example:
- File:Minecraft-Coal.png shows "Minecraft-Coal.png (160 × 160 pixels, file size: 226 bytes, MIME type: image/png)"
- File:Minecraft-diamond.png shows "Minecraft-diamond.png (150 × 150 pixels, file size: 1 KB, MIME type: image/png)"
- For non-square images, use these figures to construct an expression for the
|widthn=parameters, of the form:{{#expr: (dh * ow / oh) round 0}}
- where
- dh is the desired height in pixels (100)
- ow is the original width in pixels (750 or 300)
- oh is the original height in pixels (536 or 300)
- For square images, simply set the appropriate
|widthn=to be the desired height. If all are square, only|width=needs to be set.
Template loop detected: Template:Multiple image
{{multiple image
| footer = The two images are both rendered 100 pixels high
| align = right
| image1 = Minecraft-Coal.png
| width1 = {{#expr: (100 * 750 / 536) round 0}}
| alt1 = Coal
| caption1 = Coal, originally 160 pixels high.
| image2 = Minecraft-diamond.png
| width2 = 100
| alt2 = A gem
| caption2 = A gem, originally 150 pixels high.
}}
{{multiple image
| footer = The two images are both rendered 100 pixels high
| align = right
| image1 = Minecraft-Coal.png
| width1 = {{#expr: (100 * 750 / 536) round 0}}
| alt1 = Coal
| caption1 = Coal, originally 160 pixels high.
| image2 = Minecraft-diamond.png
| width2 = 100
| alt2 = A gem
| caption2 = A gem, originally 150 pixels high.
}}