How To Embed a YouTube Video: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
No edit summary
imported>Tlosk
(syntax changed with move to wikia)
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>''' ). 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. Adding <nowiki>[[Category:Video]]</nowiki> at least once on any page with a video will allow easier searching.
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>''' ). Adding <nowiki>[[Category:Video]]</nowiki> at least once on any page with a video will allow easier searching.


== Code ==
== Code ==
<pre>
<pre>
<youtube v="VideoID" />
<youtube>VideoID</youtube>


[[Category:Video]]
[[Category:Video]]
</pre>
</pre>
<pre>
<youtube v="VideoID" width="300" />
[[Category:Video]]
</pre>


== Example ==
== Example ==
For example:
For example:
<pre>
<pre>
<youtube v="uiC_XPpnn4k" />
<youtube>uiC_XPpnn4k</youtube>
</pre>
</pre>


displays as:
displays as:


<youtube v="uiC_XPpnn4k" />
<youtube>uiC_XPpnn4k</youtube>


[[Category:Help]]
[[Category:Help]]
[[Category:Video]]
[[Category:Video]]

Revision as of 00:48, 28 September 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= ). Adding [[Category:Video]] at least once on any page with a video will allow easier searching.

Code

<youtube>VideoID</youtube>

[[Category:Video]]

Example

For example:

<youtube>uiC_XPpnn4k</youtube>

displays as:

<youtube>uiC_XPpnn4k</youtube>