Template:Gallery

From xat wiki
Revision as of 22:06, 9 January 2019 by Daniel (talk | contribs) (Undo revision 444354 by Daniel (talk))

Display a gallery of up to 10 images.

Attributes

  • 1d-10d - Image descriptions (optional).
  • width - Width of each thumbnail in pixels (optional, defaults to 275).
  • scalable - value no to prevent images from scaling.
  • hide - value yes to hide the gallery (i.e. to have the code as a placeholder until images become available).

Usage

{{Gallery|width=#
|image_link|1d=First image description.
|second_image_link|2d=Second image description.
}}

Example

{{Gallery|width=100
|http://i.imgur.com/abcd.png|1d=First image description.
|http://i.imgur.com/abcd.png|2d=Second image description.
}}

Minimalist example

{{Gallery
|http://i.imgur.com/abcd.png
|http://i.imgur.com/abcd.png
}}