Jump to content

Template:YouTubeVideo: Difference between revisions

From Swarthmore Knowledge Base
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:youTube|id={{#invoke:YouTube|getVideoId |url={{{url}}}}}|width={{{width|}}}|height={{{height|}}} }}</includeonly>
<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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
urlurl

YouTube video url

URLrequired
widthwidth

The width in pixels of the video player

Numberoptional
heightheight

The height in pixels of the video player

Numberoptional