Template:VideoGallery: Difference between revisions

From Pirate Software Wiki
(Added `display=block` option.)
m (Fix for blocked elements.)
 
Line 1: Line 1:
<includeonly><templatestyles src="Template:VideoGallery/styles.css"/>
<includeonly><templatestyles src="Template:VideoGallery/styles.css"/>
{{#switch: {{{display}}}
{{#switch: {{{display}}}
   | block= <div class="video-embed-gallery" style="display: block !important;">
   | block= <div class="video-embed-gallery" style="display: contents !important;">
   | #default= <div class="video-embed-gallery">
   | #default= <div class="video-embed-gallery">
}}{{#if: {{{videos|}}} | {{{videos}}} | {{{1}}} }}</div></includeonly><noinclude>[[Category:Template]]{{doc}}</noinclude>
}}{{#if: {{{videos|}}} | {{{videos}}} | {{{1}}} }}</div></includeonly><noinclude>[[Category:Template]]{{doc}}</noinclude>

Latest revision as of 18:25, 23 October 2024

Documentation
This template's documentation has been marked as bad. Please improve or add to it.

{{VideoGallery}} is used to format embedded videos in a gallery layout, in combination with {{VideoEmbed}}.


Usage

{{VideoGallery
|display=block
|
{{VideoEmbed|service=twitchclip|url=https://www.twitch.tv/ferretsoftware/clip/BovineRelatedAlbatrossCopyThis-FSuhy0lyvjg-JTif|description=Doing a flip}}
{{VideoEmbed|service=twitchclip|url=https://www.twitch.tv/ferretsoftware/clip/JollyHelpfulWeaselPJSugar-_YSvSmPEMkXQBsri|description=Making perfect landings}}
}}


Template parameters

Attribute Description Required? Default
display You can set the display parameter between <block> and <flex>.
<block> will use all available space, which is useful when the VideoGallery intersects with infoboxes or images.
Optional flex
videos Can be set or not. Optional -