Template:YouTube

From VRChat Wiki
Revision as of 17:49, 9 April 2025 by Hackebein (talk | contribs) (Add more description for parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation

Embeds a YouTube video.

{{Youtube|id|width|ratio|styles}}

Example Usage

{{YouTube|PWLPw4RE9Ig}}

{{YouTube|PWLPw4RE9Ig|200px}}

{{YouTube|PWLPw4RE9Ig|100%}}

{{YouTube|qivRiGWcowI|360px|9 / 16}}

{{YouTube|qivRiGWcowI|20%|9 / 16}}

Template parameters

Name Variable Description
id 1 ID of the video
width 2 Width in CSS units (e.g. 200px, 100%), Default: 560px, Recommended for 9 / 16 Ratio: 360px
ratio 3 Ratio (e.g. 16 / 9, 9 / 16, 1 / 1), Default: 16 / 9
style 4 Custom CSS styles