Description
This template helps embed a video from YouTube on a page.
Usage
{{YTembed|<id>|<dimensions>|<alignment>|<description>}}
Parameters
id=Required The video ID from the site to be embedded e.g. https://www.youtube.com/watch?v=2mtcL9RuY8g, https://youtu.be/2mtcL9RuY8g or 2mtcL9RuY8g.dimensions=The width and height of the video e.g. 640 for 640px-wide, or 640x400 for 640px-wide, 400px-tall.alignment=Aligns the embed video e.g. left, right or center.description=Optional Provides a brief description of the video.
TemplateData
Embeds a YouTube video on a page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Video ID | id 1 | The video ID from the site.
| Line | required |
| Dimensions | dimensions 2 | The dimensions of the embedded video, calculated by width and height.
| String | suggested |
| Alignment | alignment 3 | Declares the alignment of the embedded video.
| String | suggested |
| Description | description 4 | A brief description of the video. | String | optional |
See also
- Extension:EmbedVideo on MediaWiki