Template:YoutubeVideo: Difference between revisions
Jump to navigation
Jump to search
m (Protected "Template:YoutubeVideo" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
m (@Core just seeing if it's possible to ping people this way) |
||
Line 2: | Line 2: | ||
<div style="display: inline-block; text-align: left;"> | <div style="display: inline-block; text-align: left;"> | ||
<div style="width: {{#if: {{{width|}}}|{{{width}}}px|640px}}; margin: 20px auto; padding: 10px; border: 1px solid #ccc;"> | <div style="width: {{#if: {{{width|}}}|{{{width}}}px|640px}}; margin: 20px auto; padding: 10px; border: 1px solid #ccc;"> | ||
{{{videoURL|<youtube>https://www.youtube.com/watch?v=izF0hqzC8Gg</youtube>}}} | |||
<div style="text-align: center;"><small>{{{caption|}}}</small></div> | <div style="text-align: center;"><small>{{{caption|}}}</small></div> | ||
</div> | </div> | ||
Line 15: | Line 15: | ||
"type": "url", | "type": "url", | ||
"required": true, | "required": true, | ||
"example": "izF0hqzC8Gg or https://www.youtube.com/watch?v=izF0hqzC8Gg" | "example": "<youtube>izF0hqzC8Gg</youtube> or <youtube>https://www.youtube.com/watch?v=izF0hqzC8Gg</youtube>" | ||
}, | }, | ||
"width": { | "width": { |
Latest revision as of 04:30, 16 January 2024
Stylishly embed youtube videos!
Parameter | Description | Type | Status | |
---|---|---|---|---|
videoURL | videoURL | no description
| URL | required |
alignment | alignment | center is heavily suggested, as aligning it left/right can mess with the formatting of the article
| Unknown | required |
Video Width | width | no description
| Number | suggested |
Video Height | height | no description
| Number | suggested |
caption | caption | no description | Unknown | optional |