Widget:Youtube

From Jldupont

Jump to: navigation, search

YouTube Widget

This widget allows you to add YouTube player to your wiki page.

Credit

This widget was inspired from work done by Yaron Koren.

Usage

{{#widget:youtube
|vid=vhgzIM-9lfA
|width=425
|height=355
}}

Parameters

Parameter Notes Default Value
vid video identifier vhgzIM-9lfA
width frame width 425
height frame height 355
divid id attribute for div wrapper yt1
divclass class attribute for div wrapper yt

Example

Code

Only provided for reference.

<object width="{@{width|string|425}@}" height="{@{height|string|355}@}"><param name="movie" value="http://www.youtube.com/v/{@{vid|string|vhgzIM-9lfA}@}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{@{vid|string|vhgzIM-9lfA}@}" type="application/x-shockwave-flash" wmode="transparent" width="{@{width|string|425}@}" height="{@{height|string|355}@}"></embed></object>

Play with it!

Play with it in the Sandbox.



First Previous Next Last

Rate this!

Personal tools
Sandbox

    AddThis Social Bookmark Button


    tracker