More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="floatright" style="max-width: | <div class="floatright" style="max-width:{{{width}}}px; display:flex; flex-direction:column; gap:5px; justify-content:center; text-align:center;"> | ||
{{#tag:html| <iframe style="width:auto; height:auto; aspect-ratio:16/9;" width=" | {{#tag:html| <iframe style="width:auto; height:auto; aspect-ratio:16/9;" width="{{{width}}}" height="200" src="https://www.youtube.com/embed/{{{ytVideoId}}}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>}} | ||
[https://youtu.be/{{{ytVideoId}}} {{{videoName}}}] | [https://youtu.be/{{{ytVideoId}}} {{{videoName}}}] | ||
</div> | </div> | ||
Line 9: | Line 9: | ||
|videoName = IZ*ONE Panorama | |videoName = IZ*ONE Panorama | ||
|ytVideoId = G8GaQdW2wHc | |ytVideoId = G8GaQdW2wHc | ||
|width = 1000 | |||
}} | }} | ||
YouTube video embeds | YouTube video embeds | ||
Line 42: | Line 43: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | |||
"width": { | |||
"label": "Video width", | |||
"description": "Width of video in pixels", | |||
"example": "200", | |||
"type": "number", | |||
"default": "256", | |||
"autovalue": "256" | |||
} | } | ||
}, | }, | ||
Line 47: | Line 56: | ||
"paramOrder": [ | "paramOrder": [ | ||
"videoName", | "videoName", | ||
"ytVideoId" | "ytVideoId", | ||
"width" | |||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 10:39, 7 April 2025
YouTube video embeds
{{Video |videoName = IZ*ONE Panorama |ytVideoId = G8GaQdW2wHc }}
YouTube video embed (fixed to the right of page)
Parameter | Description | Type | Status | |
---|---|---|---|---|
Video Name | videoName Video Name | The name of the video that will appear below the embed
| String | required |
YouTube Video ID | ytVideoId YouTube Video ID | The ID of the video you want to embed
| String | required |
Video width | width | Width of video in pixels
| Number | optional |