Template:VC: Difference between revisions
Jump to navigation
Jump to search
geometrydash.wiki.gg>Jamasto mNo edit summary |
geometrydash.wiki.gg>Jamasto mNo edit summary |
||
| Line 1: | Line 1: | ||
<div class="template-embedvideo-container" style="display:flex;flex-wrap:wrap;align-items:center;justify-content:center;margin:1em 0;"> | <div class="template-embedvideo-container" style="display:flex;flex-wrap:wrap;align-items:center;justify-content:center;margin:1em 0;"> | ||
{{#if:{{{1|}}}|<div style="display:flex;width: | {{#if:{{{1|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{1|}}}|||{{{cpt1|}}}}}}}</div> | ||
{{#if:{{{2|}}}|<div style="display:flex;width: | {{#if:{{{2|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{2|}}}|||{{{cpt2|}}}}}}}</div> | ||
{{#if:{{{3|}}}|<div style="display:flex;width: | {{#if:{{{3|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{3|}}}|||{{{cpt3|}}}}}}}</div> | ||
{{#if:{{{4|}}}|<div style="display:flex;width: | {{#if:{{{4|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{4|}}}|||{{{cpt4|}}}}}}}</div> | ||
{{#if:{{{5|}}}|<div style="display:flex;width: | {{#if:{{{5|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{5|}}}|||{{{cpt5|}}}}}}}</div> | ||
{{#if:{{{6|}}}|<div style="display:flex;width: | {{#if:{{{6|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{6|}}}|||{{{cpt6|}}}}}}}</div> | ||
{{#if:{{{7|}}}|<div style="display:flex;width: | {{#if:{{{7|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{7|}}}|||{{{cpt7|}}}}}}}</div> | ||
{{#if:{{{8|}}}|<div style="display:flex;width: | {{#if:{{{8|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{8|}}}|||{{{cpt8|}}}}}}}</div> | ||
{{#if:{{{9|}}}|<div style="display:flex;width: | {{#if:{{{9|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{9|}}}|||{{{cpt9|}}}}}}}</div> | ||
{{#if:{{{10|}}}|<div style="display:flex;width: | {{#if:{{{10|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{10|}}}|||{{{cpt10|}}}}}}}</div> | ||
</div><noinclude> | </div><noinclude> | ||
;Description | ;Description | ||
:This template is used to create a | :This template is used to create a '''V'''ideo '''C'''ontainer that facilitates the easy embedding of videos into an expandable gallery-style layout with optional captions (cpt), with up to ten videos able to be included, defaulted to two videos per row and YouTube as the source service. | ||
:Embed functionality is derived from [[mw:Extension:EmbedVideo|Extension:EmbedVideo]], whose article can be viewed for information about the parser function. | :Embed functionality is derived from [[mw:Extension:EmbedVideo|Extension:EmbedVideo]], whose article can be viewed for information about the parser function. | ||
;Syntax | ;Syntax | ||
<pre> | <pre> | ||
{{ | {{VC|<videoID1>|<videoID2>|<videoID3>|<videoID4>|<videoID5>|<videoID6>|<videoID7>|<videoID8>|<videoID9>|<videoID10> | ||
|cpt1 | |service = (hidden field) | ||
|cpt2 | |perrow = (hidden field) | ||
|cpt3 | |cpt1 = (hidden field) | ||
|cpt4 | |cpt2 = (hidden field) | ||
|cpt5 | |cpt3 = (hidden field) | ||
|cpt6 | |cpt4 = (hidden field) | ||
|cpt7 | |cpt5 = (hidden field) | ||
|cpt8 | |cpt6 = (hidden field) | ||
|cpt9 | |cpt7 = (hidden field) | ||
|cpt10 = (hidden field) | |cpt8 = (hidden field) | ||
|cpt9 = (hidden field) | |||
|cpt10 = (hidden field) | |||
}} | }} | ||
</pre> | </pre> | ||
;Sample | ;Sample | ||
<pre> | <pre> | ||
{{ | {{VC|lhhhcRRUHAw|IBFBNdN4JgI|63dk6jIGUYU|NabtjDi2OgU | ||
|cpt4 = ''That'' game lol | |perrow = 3 | ||
|cpt4 = ''That'' game lol | |||
}} | }} | ||
</pre> | </pre> | ||
;Sample output | ;Sample output | ||
{{ | {{VC|lhhhcRRUHAw|IBFBNdN4JgI|63dk6jIGUYU|NabtjDi2OgU | ||
|cpt4 = ''That'' game lol | |perrow = 3 | ||
|cpt4 = ''That'' game lol | |||
}} | }} | ||
[[Category:Container templates]]</nocinclude> | [[Category:Container templates]]</nocinclude> | ||
Revision as of 03:05, 19 July 2025
- Description
- This template is used to create a Video Container that facilitates the easy embedding of videos into an expandable gallery-style layout with optional captions (cpt), with up to ten videos able to be included, defaulted to two videos per row and YouTube as the source service.
- Embed functionality is derived from Extension:EmbedVideo, whose article can be viewed for information about the parser function.
- Syntax
{{VC|<videoID1>|<videoID2>|<videoID3>|<videoID4>|<videoID5>|<videoID6>|<videoID7>|<videoID8>|<videoID9>|<videoID10>
|service = (hidden field)
|perrow = (hidden field)
|cpt1 = (hidden field)
|cpt2 = (hidden field)
|cpt3 = (hidden field)
|cpt4 = (hidden field)
|cpt5 = (hidden field)
|cpt6 = (hidden field)
|cpt7 = (hidden field)
|cpt8 = (hidden field)
|cpt9 = (hidden field)
|cpt10 = (hidden field)
}}
- Sample
{{VC|lhhhcRRUHAw|IBFBNdN4JgI|63dk6jIGUYU|NabtjDi2OgU
|perrow = 3
|cpt4 = ''That'' game lol
}}
- Sample output
</nocinclude>