Syntax
Use the following for embedding a YouTube video onto your wiki page:
{video:youtube|<YouTube Video ID>}
Extracting the video id
The YouTube Video ID can be retrieved from the YouTube URL or from the "Embed" code by extracting the string between v= and & or end of the url:
| Source type | Source example | Extracted ID |
|---|---|---|
| URL | http:// youtube.com/watch?v=tpR_6y-OoRcP | tpR_6y-OoRc |
| URL | http:// www.youtube.com/watch?v=tpR_6y-OoRc&eurl=http%3A%2F%2Fwikis%2Esun%2Ecom%2Fdisplay%2FHelp%2FHow%2Bto%2BEmbed%2Ba%2BYouTube%2BVideo | tpR_6y-OoRc |
| the "Embed" code | <object width="425" height="353"><param name="movie" value="http://www.youtube.com/v/tpR_6y-OoRc"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/tpR_6y-OoRc" type="application/x-shockwave-flash" wmode="transparent" width="425" height="353"></embed></object> | tpR_6y-OoRc |
Example
For YouTube video with v id tpR_6y-OoRc use this simple code:
{video:youtube|tpR_6y-OoRc}
The result:
See also: