Template:YouTube

From VRChat Wiki
Revision as of 17:42, 9 April 2025 by Hackebein (talk | contribs) (remove height parameter, add ratio parameter)

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%)
ratio 3 Ratio (e.g. 16 / 9, 9 / 16, 1 / 1)
style 4 Custom CSS styles