This Template:Gallery, using Template:Gallery/aux, shows up to 30 images with caption. Each image with caption is embedded in a HTML-table of the same size. As a result the browser displays them row by row, with as many on one row as fit in the window.
The parameters are width and lines.
The lines parameter specifies the number of lines for the caption. If for an image the text does not fit in this number of lines a vertical scroll bar appears for the caption this image. Typically this lines parameter is set depending on the width parameter and the maximum length of all captions, and such that even for users with a large font setting it is enough, since the vertical scroll bar is not convenient, but just an "emergency measure".
If a word in a caption is longer than the width of the image a horizontal scroll bar appears. The appearance of a horizontal and vertical scrollbar are independent of each other.
Example:
{{Gallery
|caption=Photos
|width=150
|lines=3
|Oost_amsterdam_cs.JPG|Oostzijde Centraal Station
|AMS_central_station_3.jpg|[[Stationsplein (Amsterdam)|Stationsplein]] Amsterdam
|Asd_cs_afstand.JPG|Het station vanaf de [[Oude Kerkstoren]]
|Amsterdam Centraal oostzijde.jpg|Het station vanuit het oosten
}}