Difference between revisions of "Widget:YouTubeResponsive"
Jump to navigation
Jump to search
m (→Usage: remove width default) |
Tag: Undo |
||
Line 3: | Line 3: | ||
Embed YouTube videos on wiki pages. Width and height do not need to be specified for this widget. | Embed YouTube videos on wiki pages. Width and height do not need to be specified for this widget. | ||
<syntaxhighlight>{{#widget:YouTube|id=|start=}}</syntaxhighlight><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> | <syntaxhighlight>{{#widget:YouTube|id=|start=}}</syntaxhighlight><includeonly><div class="video-responsive"><iframe width="<!--{$width|escape:'html'|default:'720'}-->" 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 18:12, 16 September 2020
Usage
Embed YouTube videos on wiki pages. Width and height do not need to be specified for this widget.
{{#widget:YouTube|id=|start=}}