Difference between revisions of "Template:YouTube"

From Adam Lambert Live
Jump to navigation Jump to search
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{1}}}|{{#ev:youtube|{{{1}}}|{{{2|320}}}}} }}<noinclude>If you wish to embed  YouTube videos, simply use the following code:
+
<includeonly>{{#widget:YouTube|{{#if:{{{playlist|}}}|playlist={{{playlist}}}|id={{{1}}}}}|width={{{width|420}}}|height={{{height|350}}}}}</includeonly><noinclude>If you wish to embed  YouTube videos, simply use the following code:<pre>{{YouTube|YouTubeVideoID|width|height}}</pre>Or for playlists:<pre>{{YouTube|playlist=YouTubePlaylistID|width|height}}</pre>Width and Height are '''optional''' and are set to the default of 420x350.</noinclude>
<pre>{{YouTube|ReplaceWithYouTubeVideoID}}</pre></noinclude>
 

Latest revision as of 11:23, 20 April 2015

If you wish to embed YouTube videos, simply use the following code:

{{YouTube|YouTubeVideoID|width|height}}

Or for playlists:

{{YouTube|playlist=YouTubePlaylistID|width|height}}

Width and Height are optional and are set to the default of 420x350.