Wiki: YouTube Directive

Improved by
Updated over one hour ago
⋮

The {{YouTube}} directive embeds a responsive, privacy-preserving video player.

Syntax

{{YouTube VIDEO_REF |#| Title=Descriptive title |#| StartSeconds=45 |#| Caption=Optional caption}}

				

Parameters

Parameter Required Description
Video Reference Yes 11-character YouTube video ID or accepted YouTube URL.
Title= Yes Plain text title used for the video banner and accessibility label.
StartSeconds= No Playback start offset in seconds (e.g. 90).
Caption= No Optional caption rendered in a <figcaption> beneath the player.

Accepted URL Formats

Privacy & Performance Design

Example

{{YouTube https://youtu.be/M7lc1UVf-VE |#| Title=Byte Magazine Retrospective |#| StartSeconds=30 |#| Caption=A documentary retrospective on early computing periodicals.}}

				

Return to the Formatting Guide.