Template:Youtube/doc

Revision as of 17:52, 22 October 2024 by Polavux (talk | contribs) (Created page with "<templatedata> { "params": { "1": { "label": "ID", "description": "The ID of the YouTube video. If a video's URL is \"https://www.youtube.com/watch?v=ju4n5PmjhSM\", then its ID is \"ju4n5PmjhSM\".", "example": "ju4n5PmjhSM", "type": "string", "required": true }, "2": { "label": "Dimensions", "description": "The dimensions of the video.", "example": "1280x720px", "type": "string", "default": "640x360px" }, "align": { "label": "A...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Embeds a YouTube video. Wrapper around the EmbedVideo parser function.

Template parameters

ParameterDescriptionTypeStatus
ID1

The ID of the YouTube video. If a video's URL is "https://www.youtube.com/watch?v=ju4n5PmjhSM", then its ID is "ju4n5PmjhSM".

Example
ju4n5PmjhSM
Stringrequired
Dimensions2

The dimensions of the video.

Default
640x360px
Example
1280x720px
Stringoptional
Alignmentalign

The alignment of the video.

Suggested values
left right center
Default
left
Stringoptional

Example usage

{{youtube|ju4n5PmjhSM|640x360px|align=right}}