Difference between revisions of "Widget:YouTube"

From HaloRuns Wiki
Jump to: navigation, search
 
(6 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
<div class="thumbinner" style="width: 302px;">
 
<div class="thumbinner" style="width: 302px;">
 
 
<div class="thumbimage">
+
<iframe width="300px" 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>
+
 
 
<!--{if isset($caption)}-->
 
<!--{if isset($caption)}-->
 
<div class="thumbcaption">
 
<div class="thumbcaption">
 
<!--{$caption|escape:'html'}-->
 
<!--{$caption|escape:'html'}-->
 +
</div>
 
<!--{/if}-->
 
<!--{/if}-->
</div>
 
 
</div>
 
</div>
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Latest revision as of 09:03, 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.