How To Embed a YouTube Video: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
mNo edit summary
imported>Tlosk
(added optional width parameter)
Line 1: Line 1:
You can embed a YouTube video using the video ID (the series of numbers/letters that are at the end of the page link following  '''<code>v=</code>''' ).
You can embed a YouTube video using the video ID (the series of numbers/letters that are at the end of the page link following  '''<code>v=</code>''' ). The default size is 425 pixels wide, however you can optionally specify a width between 100 and 1024. The height automatically stays a fixed ratio of the width.


== Code ==
== Code ==
Line 5: Line 5:
<youtube v="VideoID" />
<youtube v="VideoID" />
</pre>
</pre>
<pre>
<youtube v="VideoID" width="300" />
</pre>


== Example ==
== Example ==

Revision as of 09:39, 14 April 2009

You can embed a YouTube video using the video ID (the series of numbers/letters that are at the end of the page link following v= ). The default size is 425 pixels wide, however you can optionally specify a width between 100 and 1024. The height automatically stays a fixed ratio of the width.

Code

<youtube v="VideoID" />
<youtube v="VideoID" width="300" />


Example

For example:

<youtube v="uiC_XPpnn4k" />

displays as:

<youtube v="uiC_XPpnn4k" />