Jump to content

Template:YouTubeVideo

From Swarthmore Knowledge Base
Revision as of 13:32, 6 May 2026 by Admin (talk | contribs) (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": {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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