Template:Video gallery: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#if:{{{video1|}}}|<!--
{{#if:{{{video1|}}}|<!--
--><div style="float: left; margin-right: 20px;">{{youtube|{{{video1|QGo8b_frsac}}}}}</div>}}<!--
--><div style="float: left; margin-right: 20px;">{{youtube|{{{video1|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video2|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video2|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video2|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video2|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video3|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video3|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video3|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video3|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video4|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video4|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video4|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video4|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video5|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video5|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video5|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video5|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video6|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video6|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video6|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video6|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video7|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video7|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video7|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video7|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video8|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video8|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video8|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video8|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video9|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video9|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video9|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video9|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video10|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video10|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video10|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video10|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video11|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video11|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video11|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video11|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video12|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video12|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video12|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video12|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video13|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video13|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video13|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video13|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video14|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video14|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video14|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video14|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video15|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video15|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video15|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video15|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video16|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video16|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video16|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video16|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video17|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video17|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video17|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video17|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video18|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video18|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video18|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video18|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video19|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video19|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video19|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video19|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video20|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video20|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video20|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video20|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video21|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video21|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video21|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video21|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video22|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video22|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video22|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video22|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video23|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video23|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video23|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video23|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video24|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video24|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video24|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video24|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video25|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video25|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video25|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video25|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video26|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video26|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video26|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video26|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video27|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video27|QGo8b_frsac}}}}}</div>}}<!--
-->{{#if:{{{video27|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video27|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#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}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</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}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}<!--
-->{{#if:{{{video30|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video30|QGo8b_frsac}}}}}</div>}}<noinclude>
-->{{#if:{{{video30|}}}|<div style="float: left; margin-right: 20px;">{{youtube|{{{video30|QGo8b_frsac}}}|{{#if:{{{videohd|}}}|hd|null}} = on}}</div>}}{{clr}}<noinclude>
This template shows up to 30 YouTube videos in a gallery that automatically adjusts the amount shown on each line.
This template shows up to 30 YouTube videos in a gallery that automatically adjusts the amount shown on each line.


== Example ==
== Example ==
<pre><nowiki>{{Videogallery
<pre><nowiki>{{Video gallery
|video1 = UYFcIN3LXM0
|video1 = UYFcIN3LXM0
|video2 = gkSjoy3BJGw
|video2 = gkSjoy3BJGw
Line 42: Line 42:
}}</nowiki></pre>
}}</nowiki></pre>
produces
produces
{{Videogallery
{{Video gallery
|video1=UYFcIN3LXM0
|video1=UYFcIN3LXM0
|video2=gkSjoy3BJGw
|video2=gkSjoy3BJGw
Line 49: Line 49:
|video5=wUe4RMlplrc
|video5=wUe4RMlplrc
|video6=95Qo_6HbSwE
|video6=95Qo_6HbSwE
}}
<pre><nowiki>{{Video gallery
|videohd=yes
|video1 = vikaCt9eJ80
|video2 = IFnObI0M0Kw
}}</nowiki></pre>
produces
{{Video gallery
|videohd=yes
|video1=vikaCt9eJ80
|video2=IFnObI0M0Kw
}}</noinclude>
}}</noinclude>

Latest revision as of 22:06, 1 June 2011

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

Example

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

produces

{{Video gallery
|videohd=yes
|video1 = vikaCt9eJ80
|video2 = IFnObI0M0Kw
}}

produces