Template:Video gallery: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(Created page with "{{#if:{{{video1|}}}|<!-- --><div style="float: left; margin-right: 20px;">{{youtube|{{{video1|QGo8b_frsac}}}}}</div>}}<!-- -->{{#if:{{{video2|}}}|<div style="float: left; margin-...")
 
No edit summary
Line 29: Line 29:
-->{{#if:{{{video28|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video28|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video28|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video28|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video29|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video29|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video29|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video29|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video30|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video30|QGo8b_frsac}}}}}</div>}}
-->{{#if:{{{video30|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video30|QGo8b_frsac}}}}}</div>}}<noinclude>
This template shows up to 30 YouTube videos in a gallery that automatically adjusts the amount shown on each line.
 
== Example ==
<pre><nowiki>{{Videogallery
|video1 = UYFcIN3LXM0
|video2 = gkSjoy3BJGw
|video3 = Pi2Dhy4cNqk
|video4 = fxoJmNm_4sg
|video5 = wUe4RMlplrc
|video6 = 95Qo_6HbSwE
}}</nowiki></pre>
produces
{{Videogallery
|video1=UYFcIN3LXM0
|video2=gkSjoy3BJGw
|video3=Pi2Dhy4cNqk
|video4=fxoJmNm_4sg
|video5=wUe4RMlplrc
|video6=95Qo_6HbSwE
}}</noinclude>

Revision as of 21:27, 1 June 2011

This template shows up to 30 YouTube videos in a gallery that automatically adjusts the amount shown on each line.

Example

{{Videogallery
|video1 = UYFcIN3LXM0
|video2 = gkSjoy3BJGw
|video3 = Pi2Dhy4cNqk
|video4 = fxoJmNm_4sg
|video5 = wUe4RMlplrc
|video6 = 95Qo_6HbSwE
}}

produces