Difference between revisions of "Widget:YouTube"

From HaloRuns Wiki
Jump to: navigation, search
Line 20: Line 20:
 
 
 
<div class="thumbimage">
 
<div class="thumbimage">
<iframe
+
<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>
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>
Line 38: Line 27:
 
<div class="thumbcaption">
 
<div class="thumbcaption">
 
<!--{$caption|escape:'html'}-->
 
<!--{$caption|escape:'html'}-->
 +
</div>
 
<!--{/if}-->
 
<!--{/if}-->
</div>
 
 
</div>
 
</div>
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Revision as of 08:45, 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.