Difference between revisions of "Widget:YouTube"

From HaloRuns Wiki
Jump to: navigation, search
Line 20: Line 20:
 
 
 
<div class="thumbimage">
 
<div class="thumbimage">
<iframe width="300" height="auto" src="//www.youtube.com/embed/<!--{if isset($playlist)}-->?listType=playlist&list=<!--{$playlist|escape:'urlpathinfo'}--><!--{else}--><!--{$id|escape:'urlpathinfo'}--><!--{/if}-->" frameborder="0" allowfullscreen>
+
<iframe width="300" height="auto" src="//www.youtube.com/embed/<!--{if isset($playlist)}-->?listType=playlist&list=<!--{$playlist|escape:'urlpathinfo'}--><!--{else}--><!--{$id|escape:'urlpathinfo'}--><!--{/if}-->" frameborder="0" allowfullscreen>
</iframe>
+
</iframe>
 
</div>
 
</div>
 
 

Revision as of 08:52, 21 April 2017

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

Using this widget

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

Copy to your site

To use this widget on your site, just install the MediaWiki Widgets extension and the copy full source code of this page to your wiki, as an article called Widget:YouTube.