Widget:YouTube: Difference between revisions
(→Usage) |
(→Usage) |
||
Line 3: | Line 3: | ||
Embed YouTube videos on wiki pages. | Embed YouTube videos on wiki pages. | ||
<syntaxhighlight>{{#widget:YouTube|id=|start | <syntaxhighlight>{{#widget:YouTube|id=|start=}}</syntaxhighlight> | ||
</noinclude><includeonly><div class="video-responsive"><iframe src="https://www.youtube.com/embed/<!--{if isset($playlist)}-->?listType=playlist&list=<!--{$playlist|escape:'urlpathinfo'}--><!--{else}--><!--{$id|escape:'urlpathinfo'}--><!--{if isset($start)}-->?start=<!--{$start|escape:'urlpathinfo'}--><!--{/if}--><!--{/if}-->" style="border: none" allowfullscreen></iframe></div></includeonly> | </noinclude><includeonly><div class="video-responsive"><iframe src="https://www.youtube.com/embed/<!--{if isset($playlist)}-->?listType=playlist&list=<!--{$playlist|escape:'urlpathinfo'}--><!--{else}--><!--{$id|escape:'urlpathinfo'}--><!--{if isset($start)}-->?start=<!--{$start|escape:'urlpathinfo'}--><!--{/if}--><!--{/if}-->" style="border: none" allowfullscreen></iframe></div></includeonly> |
Revision as of 20:14, 16 September 2020
Usage
Embed YouTube videos on wiki pages.
{{#widget:YouTube|id=|start=}}