Warning: API call failed to get remote JsonConfig: status=There was a problem during the HTTP request: 429 Too Many Requests, query= [Called from JsonConfig\JCUtils::warn in /home/escforumwiki/public_html/extensions/JsonConfig/includes/JCUtils.php at line 47] in /home/escforumwiki/public_html/includes/debug/MWDebug.php on line 499

Warning: API call failed to get remote JsonConfig: status=There was a problem during the HTTP request: 429 Too Many Requests, query= [Called from JsonConfig\JCUtils::warn in /home/escforumwiki/public_html/extensions/JsonConfig/includes/JCUtils.php at line 47] in /home/escforumwiki/public_html/includes/debug/MWDebug.php on line 499
Template:Multiple image - escforumwiki Jump to content

Template:Multiple image

From escforumwiki
Revision as of 15:17, 4 April 2010 by 84.27.83.25 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
{{multiple image
 | align = right
 | total_width = 320

 | image1 = Donkey 1 arp 750px.jpg
 | alt1 = A donkey
 | caption1 = Rectangular image of a donkey, originally 536 pixels high.

 | image2 = Rainbow_trout.png
 | alt2 = A trout
 | caption2 = Square image of a trout, originally 300 pixels high.

 | footer = Both images have been rendered with the same height, and a total width of 320px
}}

The aspect ratio of each image is automatically retrieved from the File metadata. You can override the native width and height values by

  • Examining the individual image pages to obtain the full resolution. For example:
  • Specify the full width and height for each image, of the form:
    • |width1= |height1= |width2= |height2=

Multiple rows

To create an array of images, with multiple rows, use |perrow=. The value passed to |perrow= may be a single number, or a list of numbers delimited by /. This feature may also be combined with |total_width= for multiple rows of images with the same total width. <div class="thumb tright" style="width:Expression error: Unrecognized punctuation character "{".px;">

<div style="float:left;margin:1px;width:Expression error: Unrecognized punctuation character "{".px;">

<div style="float:left;margin:1px;width:Expression error: Unrecognized punctuation character "{".px;">

<div style="float:left;margin:1px;width:Expression error: Unrecognized punctuation character "{".px;">

<div style="float:left;margin:1px;width:Expression error: Unrecognized punctuation character "{".px;">

}}}}

Surveying Equipment. Clockwise from upper left: Optical Theodolite, Robotic total station, Optical level, RTK GPS Base station.
{{multiple image|perrow = 2|total_width=300
| image1 = Kern_Theodolit_DKM2-A.jpg
| image2 = Total-Robotic-Station.jpg
| image3 = DumpyLevel.jpg
| image4 = GPS_Survey_Equipment_at_Weir_Dyke_Bridge_-_geograph.org.uk_-_336908.jpg
| footer = Surveying Equipment. Clockwise from upper left: Optical Theodolite, Robotic total station, Optical level, [[Real-time kinematic | RTK]] GPS Base station.
}}

Removing the image border

The border around the images can be removed using |image_style=border:none. <div class="thumb tright" style="width:Expression error: Unrecognized punctuation character "{".px;">

<div style="float:left;margin:1px;width:Expression error: Unrecognized punctuation character "{".px;">
Image of a donkey

<div style="float:left;margin:1px;width:Expression error: Unrecognized punctuation character "{".px;">

Image of a trout

}}}}

{{multiple image
 | align = right
 | total_width = 320
 | image_style = border:none;

 | image1 = Donkey 1 arp 750px.jpg
 | alt1 = A donkey
 | caption1 = Image of a donkey

 | image2 = Rainbow_trout.png
 | alt2 = A trout
 | caption2 = Image of a trout
}}

Increasing the gap between images

The gap between the images can be increased using |image_gap=N, where N is the number of pixels (must be non-negative). <div class="thumb tright" style="width:Expression error: Unrecognized punctuation character "{".px;">

<div style="float:left;margin:1px;width:Expression error: Unrecognized punctuation character "{".px;">
Image of a donkey

<div style="float:left;margin:1px;width:Expression error: Unrecognized punctuation character "{".px;">

Image of a trout

}}}}

{{multiple image
 | align = right
 | total_width = 320
 | image_gap = 20

 | image1 = Donkey 1 arp 750px.jpg
 | alt1 = A donkey
 | caption1 = Image of a donkey

 | image2 = Rainbow_trout.png
 | alt2 = A trout
 | caption2 = Image of a trout
}}

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Multiple image in articles based on its TemplateData.

TemplateData for Multiple image

INTERNAL: Module:Format_TemplateData:568: assign to undeclared variable 'dt'

Tracking categories

See also

MediaWiki spam blocked by CleanTalk.