Widget:YouTubeResponsive: Difference between revisions

From The Portal Wiki
(Created page with "<includeonly><div class="video-responsive"><iframe width="<!--{$width|escape:'html'|default:'425'}-->" height="<!--{$height|escape:'html'|default:355}-->" src="https://www.you...")
 
No edit summary
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. Width and height do not need to be specified for this version.
 
<syntaxhighlight>{{#widget:YouTube|id=}}</syntaxhighlight><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>

Revision as of 07:19, 15 September 2020

Usage

Embed YouTube videos on wiki pages. Width and height do not need to be specified for this version.

{{#widget:YouTube|id=}}