Template:YouTube: Difference between revisions
From VRChat Wiki
m (fix: layout shift) |
m (Fix broken tag closing) |
||
Line 8: | Line 8: | ||
Embeds a YouTube video. | Embeds a YouTube video. | ||
<nowiki>{{Youtube|id|width|height|styles}}/nowiki> | <nowiki>{{Youtube|id|width|height|styles}}</nowiki> | ||
=== Example Usage === | === Example Usage === | ||
{{YouTube|PWLPw4RE9Ig}} <nowiki>{{YouTube|PWLPw4RE9Ig}}</nowiki> | {{YouTube|PWLPw4RE9Ig}} <nowiki>{{YouTube|PWLPw4RE9Ig}}</nowiki> |
Latest revision as of 21:42, 31 March 2025
Documentation
Embeds a YouTube video.
{{Youtube|id|width|height|styles}}
Example Usage
{{YouTube|PWLPw4RE9Ig}}
{{YouTube|PWLPw4RE9Ig|200px}}
{{YouTube|PWLPw4RE9Ig|300px|300px}}
{{YouTube|PWLPw4RE9Ig|100%}}
Template parameters
Name | Variable | Description |
---|---|---|
id | 1 |
ID of the video |
width | 2 |
Width in CSS units (e.g. 200px, 100%) |
height | 3 |
Height in CSS units (e.g. 200px, 100%) |
style | 4 |
Custom CSS styles |