Widget:YouTube: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 11: | Line 11: | ||
: The video ID. This can be found in the YouTube video's URL, for example: <code><nowiki>http://</nowiki>www.youtube.com/watch?v='''''DWef69ItVrU'''''</code> | : The video ID. This can be found in the YouTube video's URL, for example: <code><nowiki>http://</nowiki>www.youtube.com/watch?v='''''DWef69ItVrU'''''</code> | ||
;width | ;width | ||
: Width of the video player in pixels (default | : Width of the video player in pixels (default 640). | ||
;height | ;height | ||
: Height of the video player in pixels (default | : Height of the video player in pixels (default 355). | ||
;start | ;start | ||
: Start position of the video | : Start position of the video | ||
For | For 5:4 video you will get better results by setting the size to 480×385. | ||
== Example == | == Example == |
Latest revision as of 07:25, 6 April 2019
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 640).
- height
- Height of the video player in pixels (default 355).
- start
- Start position of the video
For 5:4 video you will get better results by setting the size to 480×385.
Example