Template:YouTube: Difference between revisions
From VRChat Wiki
Add more description for parameters |
m fix: swap to embedvideo over custom impl |
||
| Line 1: | Line 1: | ||
{{#ev:youtube|id={{{id|{{{1|PWLPw4RE9Ig}}}}}}|width={{{width|{{{2|560px}}}}}}|poster={{{thumb|{{{3|PWLPw4RE9Ig}}}}}}}} | |||
<noinclude> | <noinclude> | ||
== Documentation == | == Documentation == | ||
Embeds a YouTube video. | Embeds a YouTube video. | ||
<nowiki>{{Youtube|id|width| | <nowiki>{{Youtube|id|width|thumb}}</nowiki> | ||
=== Example Usage === | === Example Usage === | ||
{{YouTube|PWLPw4RE9Ig}} <nowiki>{{YouTube|PWLPw4RE9Ig}}</nowiki> | {{YouTube|PWLPw4RE9Ig}} <nowiki>{{YouTube|PWLPw4RE9Ig}}</nowiki> | ||
| Line 16: | Line 12: | ||
{{YouTube|PWLPw4RE9Ig|100%}} <nowiki>{{YouTube|PWLPw4RE9Ig|100%}}</nowiki> | {{YouTube|PWLPw4RE9Ig|100%}} <nowiki>{{YouTube|PWLPw4RE9Ig|100%}}</nowiki> | ||
<hr> | <hr> | ||
{{YouTube| | {{YouTube|PWLPw4RE9Ig|thumb=File:VRChat - Create, Share, Play Thumbnail.webp}} <nowiki>{{YouTube|PWLPw4RE9Ig|thumb=File:VRChat - Create, Share, Play Thumbnail.webp}}</nowiki> | ||
=== Template parameters === | === Template parameters === | ||
| Line 30: | Line 24: | ||
| width || <code>2</code>|| Width in CSS units (e.g. 200px, 100%), Default: 560px, Recommended for 9 / 16 Ratio: 360px | | width || <code>2</code>|| Width in CSS units (e.g. 200px, 100%), Default: 560px, Recommended for 9 / 16 Ratio: 360px | ||
|- | |- | ||
| | | thumb || <code>3</code>|| Local file to use as thumbnail. | ||
|} | |} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 08:50, 10 January 2026
Documentation
Embeds a YouTube video.
{{Youtube|id|width|thumb}}
Example Usage
{{YouTube|PWLPw4RE9Ig}}
{{YouTube|PWLPw4RE9Ig|200px}}
{{YouTube|PWLPw4RE9Ig|100%}}
{{YouTube|PWLPw4RE9Ig|thumb=File:VRChat - Create, Share, Play Thumbnail.webp}}
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 |
| thumb | 3 |
Local file to use as thumbnail. |