Widget:YouTube: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
This widget allows you to add YouTube video player to your wiki page.
This widget allows you to add YouTube video player to your wiki page, using [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension]


It was created by [http://www.mediawikiwidgets.org/User:Yaron_Koren Yaron Koren].
Extension and Widget was created by [http://www.mediawikiwidgets.org/User:Yaron_Koren Yaron Koren].


== Using this widget ==
== Using this widget ==
Line 8: Line 8:
To insert this widget, use the following code:
To insert this widget, use the following code:


   <nowiki>{{#widget:YouTube|id=DWef69ItVrU}}</nowiki>
   <nowiki>{{youtube|videoID}}</nowiki>




Line 14: Line 14:


For more information on how to use this widget, see [http://www.mediawikiwidgets.org/YouTube widget description page on MediaWikiWidgets.org].
For more information on how to use this widget, see [http://www.mediawikiwidgets.org/YouTube widget description page on MediaWikiWidgets.org].
</noinclude>


== Copy to your site ==
<includeonly><iframe width="420" height="315" src="https://www.youtube.com/embed/<!--{$id|escape:'urlpathinfo'}-->" frameborder="0" allowfullscreen></iframe></includeonly>
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
</noinclude><includeonly><iframe width="420" height="315" src="https://www.youtube.com/embed/<!--{$id|escape:'urlpathinfo'}-->" frameborder="0" allowfullscreen></iframe></includeonly>

Revision as of 14:50, 1 August 2015

This widget allows you to add YouTube video player to your wiki page, using MediaWiki Widgets extension

Extension and Widget was created by Yaron Koren.

Using this widget

To insert this widget, use the following code:

 {{youtube|videoID}}


For more information on how to use this widget, see widget description page on MediaWikiWidgets.org.