Template:VideoGallery: Difference between revisions

From Heartbound Wiki
(Added `display=block` option.)
m (Update the category and fix the doc)
 
Line 3: Line 3:
   | block= <div class="video-embed-gallery" style="display: block !important;">
   | block= <div class="video-embed-gallery" style="display: block !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:Templates]]{{documentation}}</noinclude>

Latest revision as of 19:00, 10 October 2024

{{doc/start|baddoc=1}}

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


Usage

{{VideoGallery
|display=block
|
{{VideoEmbed|service=twitchclip|url=https://www.twitch.tv/ferretsoftware/clip/BovineRelatedAlbatrossCopyThis-FSuhy0lyvjg-JTif%7Cdescription=Doing a flip}}
{{VideoEmbed|service=twitchclip|url=https://www.twitch.tv/ferretsoftware/clip/JollyHelpfulWeaselPJSugar-_YSvSmPEMkXQBsri%7Cdescription=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 <nowiki>flex</nowiki>
videos Can be set or not. Optional <nowiki>-</nowiki>
<includeonly></includeonly><noinclude></noinclude>{{doc/end}}