Template:ExtendedGallery

From Dune: Awakening Community Wiki
Jump to navigation Jump to search


Usage Examples

Template Call Output
{{ExtendedGallery
|youtube = <youtubeoembed>-VAzdms8TIE</youtubeoembed>
|gif = Lost Harvest
|images =
LostHarvest1.jpg
LostHarvest2.jpg~OPTIONAL CAPTION
}}

Trailer

GIF Preview

Images

TemplateData

This template creates an extended Gallery with dedicated sections for embedded YouTube videos and GIFs. GIFs must not be placed in a standard Gallery, as they require special handling: to animate reliably, a GIF has to render at its full original size rather than as a thumbnail.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Gallery Itemsimages

Place each item on a new line. To insert an image caption, place it after the file name, using a tilde ~ as the delimiter, like so `Placeholder.jpg~OPTIONAL_CAPTION`. Captions cannot contain additional tildes.

Contentoptional
YouTube Traileryoutube

Insert only ONE YouTube video code, i.e. the string that comes after 'watch?v=' in the URL. After upgrading from MediaWiki 1.41 to 1.46, the input itself must be enclosed by <youtubeoembed> tags, otherwise it tries to resolve before the template can process the input.

Example
<youtubeoembed>vDiVNCwK9kM</youtubeoembed>
Stringoptional
Preview GIFgif

The name of a GIF file to display above the gallery, without the 'File:' prefix or '.gif' extension.

Example
Lost Harvest
Stringoptional