Difference between revisions of "Widget:YouTube"

From The Portal Wiki
Jump to navigation Jump to search
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div class="video-responsive"><iframe width="<!--{$width|escape:'html'|default:'425'}-->" height="<!--{$height|escape:'html'|default:355}-->" 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>
== Usage ==
Embed YouTube videos on wiki pages.
 
<syntaxhighlight lang="html+handlebars">{{#widget:YouTube|id=|start=}}</syntaxhighlight>
</noinclude><includeonly><div class="fivefifty"><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></div></includeonly>

Latest revision as of 20:55, 22 October 2020

Usage

Embed YouTube videos on wiki pages.

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