Widget:YouTube: Difference between revisions

From The Portal Wiki
No edit summary
No edit summary
Line 4: Line 4:


<syntaxhighlight lang="html+handlebars">{{#widget:YouTube|id=|start=}}</syntaxhighlight>
<syntaxhighlight lang="html+handlebars">{{#widget:YouTube|id=|start=}}</syntaxhighlight>
</noinclude><includeonly><div class="video-responsive"><iframe loading="lazy" 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><iframe loading="lazy" 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></includeonly>

Revision as of 19:43, 22 October 2020

Usage

Embed YouTube videos on wiki pages.

{{#widget:YouTube|id=|start=}}