Help:Gallery
From QED
| Help |
|
| Related topics |
For details about the <gallery> tag, see wikipedia:Help:Gallery. Note that thumbnails of images that have been transcluded using the transclude template can be included in galleries as explained below.
To create a gallery of images dynamically based on a query, see Help:Category Query.
To view a gallery of images that have been tagged as belonging to a category, simply visit the Category page for that category. To view a list of the available categories, visit Special:CategoryQuery; for a graphical overview of categories, see CRM Classes.
Including thumbnails of transcluded images
If a thumbnail has been generated for a media description page (see Template:transclude for details), then the thumbnail can be included in a gallery created using the <gallery> tag simply by referencing the image description page in the usual way, e.g.
</gallery> Image:Cholera,_2000-2001|Cholera, 2000-2001 Image:Cholera,_2003 |Cholera, 2003 </gallery>
Thumbnails that have been generated for transcluded images can also be used in other contexts, for example using Template:transcluded image thumbnail or Template:transcluded image cell.
Creating a gallery using a table
One simple way to create a gallery of images and/or video clips is to create a table. This is especially useful for transcluded images.
For example, the following wiki markup generates the rows of images below. Notice that the images in the second row have captions, hovertext, and hyperlinks. Many variations are possible.
{|
| http://www.onthepath.com/images/tibet_images_04.jpg
| http://www.onthepath.com/images/tibet_images_11.jpg
|-
| {{transclude|http://www.onthepath.com/images/tears.jpg|
<center>Kora at the Lake of Turquoise Lions' Tears</center>|320}}
| {{transclude|http://www.onthepath.com/images/Dzongzar%20Sangha.jpg|
<center>Dzongzar Sangha</center>|320}}
|}
|
|
See also
- Help:Image
- Template:nextImage — simple slideshow or animation
- Template:transclude
- Template:TransclusionWarning














