Template:YouTubeVideo: Difference between revisions
Created page with "<includeonly>{{#widget:youTube|id={{#invoke:YouTube|getVideoId |url={{{url}}}}}|width={{{width|}}}|height={{{height|}}} }}</includeonly> <noinclude>== Usage == <nowiki>{{YouTubeVideo|https://www.youtube.com/watch?v=VIDEO_ID?}</nowiki> <templatedata> { "params": { "url": { "description": "YouTube video url", "type": "url", "required": true }, "width": { "description": "The width in pixels of the video player", "type": "number" }, "height": {..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#widget: | <includeonly>{{#widget:YouTube|id={{#invoke:YouTube|getVideoId |url={{{url}}}}}|width={{{width|}}}|height={{{height|}}} }}</includeonly> | ||
<noinclude>== Usage == | <noinclude>== Usage == | ||
Latest revision as of 16:35, 12 May 2026
Usage
{{YouTubeVideo|https://www.youtube.com/watch?v=VIDEO_ID?}
Embeds a YouTube video given its URL
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| url | url | YouTube video url | URL | required |
| width | width | The width in pixels of the video player | Number | optional |
| height | height | The height in pixels of the video player | Number | optional |