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)
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:{{{video1hd|}}}|hd=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:{{{video2hd|}}}|hd=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:{{{video3hd|}}}|hd=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:{{{video4hd|}}}|hd=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:{{{video5hd|}}}|hd=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:{{{video6hd|}}}|hd=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:{{{video7hd|}}}|hd=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:{{{video8hd|}}}|hd=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:{{{video9hd|}}}|hd=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:{{{video10hd|}}}|hd=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:{{{video11hd|}}}|hd=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:{{{video12hd|}}}|hd=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:{{{video13hd|}}}|hd=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:{{{video14hd|}}}|hd=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:{{{video15hd|}}}|hd=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:{{{video16hd|}}}|hd=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:{{{video17hd|}}}|hd=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:{{{video18hd|}}}|hd=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:{{{video19hd|}}}|hd=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:{{{video20hd|}}}|hd=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:{{{video21hd|}}}|hd=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:{{{video22hd|}}}|hd=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:{{{video23hd|}}}|hd=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:{{{video24hd|}}}|hd=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:{{{video25hd|}}}|hd=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:{{{video26hd|}}}|hd=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:{{{video27hd|}}}|hd=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:{{{video28hd|}}}|hd=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:{{{video29hd|}}}|hd=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:{{{video30hd|}}}|hd=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.


Line 49: Line 49:
|video5=wUe4RMlplrc
|video5=wUe4RMlplrc
|video6=95Qo_6HbSwE
|video6=95Qo_6HbSwE
}}</noinclude>
}}
{{clr}}
<pre><nowiki>{{Videogallery
|video1 = vikaCt9eJ80
|video1hd = yes
|video2 = IFnObI0M0Kw
|video2hd = yes
}}</nowiki></pre>
produces
{{Videogallery
|video1=vikaCt9eJ80
|video1hd=yes
|video2=IFnObI0M0Kw
|video2hd=yes
}}
</noinclude>

Revision as of 21:56, 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

{{Videogallery
|video1 = vikaCt9eJ80
|video1hd = yes
|video2 = IFnObI0M0Kw
|video2hd = yes
}}

produces