Difference between revisions of "Widget:YouTube"

From Wikispooks
Jump to navigation Jump to search
m (typo)
m (clarify use)
Line 4: Line 4:
 
It was created by [http://www.mediawikiwidgets.org/User:Yaron_Koren Yaron Koren].
 
It was created by [http://www.mediawikiwidgets.org/User:Yaron_Koren Yaron Koren].
  
 +
== Using this widget ==
 +
 +
Paste the following code <code><nowiki>{{#widget:YouTube|id=xxxxxxxx}}</nowiki></code>
 +
 +
Default height and width are 420 x 350. Change with additional parameters:
 +
*Height=
 +
*width=
 +
For further information see [http://www.mediawikiwidgets.org/YouTube widget description page on MediaWikiWidgets.org].
  
== Using this widget ==
 
For information on how to use this widget, see [http://www.mediawikiwidgets.org/YouTube widget description page on MediaWikiWidgets.org].
 
  
 
</noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:'425'}-->" height="<!--{$height|escape:'html'|default:355}-->" src="https://www.youtube.com/embed/<!--{if isset($playlist)}-->?listType=playlist&list=<!--{$playlist|escape:'urlpathinfo'}--><!--{else}--><!--{$id|escape:'urlpathinfo'}--><!--{/if}-->" frameborder="0" allowfullscreen></iframe></includeonly>
 
</noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:'425'}-->" height="<!--{$height|escape:'html'|default:355}-->" src="https://www.youtube.com/embed/<!--{if isset($playlist)}-->?listType=playlist&list=<!--{$playlist|escape:'urlpathinfo'}--><!--{else}--><!--{$id|escape:'urlpathinfo'}--><!--{/if}-->" frameborder="0" allowfullscreen></iframe></includeonly>

Revision as of 10:00, 5 December 2013

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.