Widget:YouTube

From Wikispooks
Revision as of 08:55, 6 March 2014 by Peter (talk | contribs) (→‎Placing the widget on the page: modify example code)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

It was created by Yaron Koren.

Using this widget

Paste the following code {{#widget:YouTube|id=xxxxxxxx}}

Default height and width are 420 x 350. Change with additional parameters:

  • Height=
  • width=

For further information see widget description page on MediaWikiWidgets.org.

Placing the widget on the page

Use div tags and style statements similar to the following:

<div class="thumb tright">
<div class="thumbinner">
{{#widget:YouTube|width=360px|height=300px|id=xxxxxxxxxx}}
<div class="thumbcaption">Caption text goes here.
</div></div></div>