Page Actions

Template

YouTube

From ISOGG Wiki



[edit] [purge] Template documentation

Documentation for {{YouTube}}

To embed a YouTube video into a wiki page, cut and paste the following. The id code is the YouTube id code in the embedding html. The width and height are in pixels. Use of px is not necessary after the values. For example:


{{YouTube
| id = 
| width  = 
| height = 
| align  = 
}}

If width and height values are blank, default is 450 X 338

The id is the YouTube id code in the embedding html. It can be found in two locations.
For example:

<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/gjTU4XTexYc&hl=en_US&fs=1"> </param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/gjTU4XTexYc&hl=en_US&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>

OR:

In the web address: http://www.youtube.com/watch?v=gjTU4XTexYc&feature=player_embedded

Example 1



The following code:

{{YouTube
| id = gjTU4XTexYc
| width  = 400
| height = 320
| align  = right
}}

Results in a right justified video.


Example 2



Or this code: Results in a left justified video.
  {{YouTube
  | id = gjTU4XTexYc
  | width  = 400
  | height = 320
  | align  = left
  }}







Example 3



No, width and height, center justified.
  {{YouTube
  | id = gjTU4XTexYc
  | width  = 400
  | height = 320
  | align  = center
  }}