Template:VideoGallery: Difference between revisions

From Heartbound Wiki
(Add the videogallery template)
 
m (Update the category and fix the doc)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Template:VideoGallery/styles.css"/><div class="video-embed-gallery">{{{1}}}</div></includeonly>
<includeonly><templatestyles src="Template:VideoGallery/styles.css"/>
{{#switch: {{{display}}}
  | block= <div class="video-embed-gallery" style="display: block !important;">
  | #default= <div class="video-embed-gallery">
}}{{#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}}