Difference between revisions of "Widget:YouTube"
Line 19: | Line 19: | ||
<div class="thumbinner" style="width: 302px;"> | <div class="thumbinner" style="width: 302px;"> | ||
− | + | <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> | |
− | + | ||
− | |||
− | |||
<!--{if isset($caption)}--> | <!--{if isset($caption)}--> | ||
<div class="thumbcaption"> | <div class="thumbcaption"> |
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.