Difference between revisions of "Widget:YouTube"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly><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></includeonly> | <noinclude> | ||
== Usage == | |||
Embed YouTube videos on wiki pages. | |||
<syntaxhighlight>{{#widget:YouTube|id=|width=|height=}}</syntaxhighlight> | |||
</noinclude><includeonly><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></includeonly> |
Revision as of 07:18, 15 September 2020
Usage
Embed YouTube videos on wiki pages.
{{#widget:YouTube|id=|width=|height=}}