Template:Gallery/Aux

From FlightGear wiki
< Template:Gallery
Revision as of 20:43, 7 May 2014 by Johan G (talk | contribs) (+doc)
Jump to navigation Jump to search
{{{alt}}}
{{{2}}} 


The following template description is not displayed when the template is inserted in an article.

Goal

This template is used by {{gallery}} for each of the images in a gallery.

Usage

{{Gallery/Aux|file name|caption |width= |height= |lines= |alt=}}

Consider all parameters mandatory.

file name
Name of the image file excluding the File: or Image: prefix. Defaults to Flag of None.png.
caption
Image caption to be shown below the image.
width
Maximum width of each image in pixels. Defaults to 180.
height
Maximum height of each image in pixels. Defaults to 180.
lines
Number of text lines needed for the largest caption. Blank lines are appended to smaller captions. A caption that does not fit is cut off. Defaults to 2.
alt
Alt text for the image. Will be used in screen readers, for visually impaired readers etc.

Known issues

For some reason it seems that while defaults are defined in the wiki text of the template they are are not used when using the template without parameters.