Template:Video gallery: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(+support for hd, add {{clr}} to end of gallery)
mNo edit summary
 
Line 1: Line 1:
{{#if:{{{video1|}}}|<!--
{{#if:{{{video1|}}}|<!--
--><div style="float: left; margin-right: 20px;">{{youtube|{{{video1|QGo8b_frsac|{{#if:{{{video1hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video2hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video3hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video4hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video5hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video6hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video7hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video8hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video9hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video10hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video11hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video12hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video13hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video14hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video15hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video16hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video17hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video18hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video19hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video20hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video21hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video22hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video23hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video24hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video25hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video26hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video27hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video28hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video29hd|}}}|hd=on|}}}}}}}</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|{{#if:{{{video30hd|}}}|hd=on|}}}}}}}</div>}}{{clr}}<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 50: Line 50:
|video6=95Qo_6HbSwE
|video6=95Qo_6HbSwE
}}
}}
{{clr}}
<pre><nowiki>{{Video gallery
<pre><nowiki>{{Videogallery
|videohd=yes
|video1 = vikaCt9eJ80
|video1 = vikaCt9eJ80
|video1hd = yes
|video2 = IFnObI0M0Kw
|video2 = IFnObI0M0Kw
|video2hd = yes
}}</nowiki></pre>
}}</nowiki></pre>
produces
produces
{{Videogallery
{{Video gallery
|videohd=yes
|video1=vikaCt9eJ80
|video1=vikaCt9eJ80
|video1hd=yes
|video2=IFnObI0M0Kw
|video2=IFnObI0M0Kw
|video2hd=yes
}}</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