Template:VC: Difference between revisions

From Geometry Dash Expanded Wiki
Jump to navigation Jump to search
geometrydash.wiki.gg>Jamasto
m Tragic typo
geometrydash.wiki.gg>Jamasto
mNo edit summary
Line 10: Line 10:
{{#if:{{{9|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{9|}}}|||{{{cpt9|}}}}}}}</div>
{{#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:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{10|}}}|||{{{cpt10|}}}}}}}</div>
{{#if:{{{10|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{10|}}}|||{{{cpt10|}}}}}}}</div>
{{#if:{{{11|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{11|}}}|||{{{cpt11|}}}}}}}</div>
{{#if:{{{12|}}}|<div style="display:flex;width:calc(100% / {{{perrow|2}}});padding:1em;">{{#ev:{{{service|youtube}}}|{{{12|}}}|||{{{cpt12|}}}}}}}</div>
</div><noinclude>
</div><noinclude>
;Description
;Description
: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.
: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 twelve 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>
{{VC|<videoID1>|<videoID2>|<videoID3>|<videoID4>|<videoID5>|<videoID6>|<videoID7>|<videoID8>|<videoID9>|<videoID10>|<videoID11>|<videoID12>
  |service = (hidden field)
  |service =
  |perrow  = (hidden field)
  |perrow  =
  |cpt1    = (hidden field)
  |cpt1    =
  |cpt2    = (hidden field)
  |cpt2    =
  |cpt3    = (hidden field)
  |cpt3    =
  |cpt4    = (hidden field)
  |cpt4    =
  |cpt5    = (hidden field)
  |cpt5    =
  |cpt6    = (hidden field)
  |cpt6    =
  |cpt7    = (hidden field)
  |cpt7    =
  |cpt8    = (hidden field)
  |cpt8    =
  |cpt9    = (hidden field)
  |cpt9    =
  |cpt10  = (hidden field)
  |cpt10  =
|cpt11  =
|cpt12  =
}}
}}
</pre>
</pre>

Revision as of 16:20, 5 September 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 twelve 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>|<videoID11>|<videoID12>
 |service =
 |perrow  =
 |cpt1    =
 |cpt2    =
 |cpt3    =
 |cpt4    =
 |cpt5    =
 |cpt6    =
 |cpt7    =
 |cpt8    =
 |cpt9    =
 |cpt10   =
 |cpt11   =
 |cpt12   =
}}
Sample
{{VC|lhhhcRRUHAw|IBFBNdN4JgI|63dk6jIGUYU|NabtjDi2OgU
 |perrow = 3
 |cpt4   = ''That'' game lol
}}
Sample output
That game lol