Widget:YouTube: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
add start parameter |
||
Line 14: | Line 14: | ||
;height | ;height | ||
: Height of the video player in pixels (default 385). | : Height of the video player in pixels (default 385). | ||
;start | |||
: Start position of the video | |||
For 16:9 video you will get better results by setting the size to 640×385. | For 16:9 video you will get better results by setting the size to 640×385. | ||
Line 21: | Line 22: | ||
[[Category:Help]] | [[Category:Help]] | ||
</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}-->" frameborder="0" allowfullscreen></iframe></includeonly> | </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}--><!--{/if}--><!--{/if}-->" frameborder="0" allowfullscreen></iframe></includeonly> |
Revision as of 16:31, 7 November 2015
This widget allows you to embed a YouTube video player in a wiki page.
Usage
You can insert a video with the following wiki code:
{{#widget:YouTube|id=DWef69ItVrU}}
Parameters
- id
- The video ID. This can be found in the YouTube video's URL, for example:
http://www.youtube.com/watch?v=DWef69ItVrU
- width
- Width of the video player in pixels (default 480).
- height
- Height of the video player in pixels (default 385).
- start
- Start position of the video
For 16:9 video you will get better results by setting the size to 640×385.
Example