Template:Gallery: Difference between revisions

From xat wiki
No edit summary
mNo edit summary
Line 3: Line 3:
=== Attributes ===
=== Attributes ===
* 1d-10d - Image descriptions (optional).
* 1d-10d - Image descriptions (optional).
* width - Width of each thumbnail in pixels (optional).
* width - Width of each thumbnail in pixels (optional, defaults to 275).


=== Usage ===
=== Usage ===

Revision as of 22:20, 25 May 2016

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).

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
}}