Template:VideoGallery: Difference between revisions
(Created page with "<includeonly><templatestyles src="Template:VideoGallery/styles.css"/><div class="video-embed-gallery">{{{1}}}</div></includeonly>") Â |
(Added `display=block` option.) |
||
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:Template]]{{doc}}</noinclude> |
Revision as of 20:49, 7 October 2024
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 | - |