Widget:YouTube: Difference between revisions
Rewrote instructional text |
→Using this widget: Finished listing parameters |
||
Line 12: | Line 12: | ||
* <code>aspect = W/H</code> (replace <code>W/H</code> with a fractional aspect ratio) | * <code>aspect = W/H</code> (replace <code>W/H</code> with a fractional aspect ratio) | ||
* <code>float</code> (places the video along the right side of the page, also changes the default width) | * <code>float</code> (places the video along the right side of the page, also changes the default width) | ||
* <code>start = S</code> (replace <code>S</code> with the start time in seconds) | |||
* <code>playlist = example</code> (replace <code>example</code> with the playlist ID found in the URL) | |||
</noinclude><includeonly><iframe width="<!--{if isset($float)}--><!--{$width|escape:'html'|default:'400'}--><!--{else}--><!--{$width|escape:'html'|default:'600'}--><!--{/if}-->" style="aspect-ratio: <!--{$aspect|escape:'html'|default:16/9}-->;<!--{if isset($float)}--> float: right; margin-bottom: 0.5em; margin-left: 1em;<!--{/if}-->" 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><includeonly><iframe width="<!--{if isset($float)}--><!--{$width|escape:'html'|default:'400'}--><!--{else}--><!--{$width|escape:'html'|default:'600'}--><!--{/if}-->" style="aspect-ratio: <!--{$aspect|escape:'html'|default:16/9}-->;<!--{if isset($float)}--> float: right; margin-bottom: 0.5em; margin-left: 1em;<!--{/if}-->" 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> |