Template:YoutubeVideo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
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;"> | ||
<iframe width="{{#if: {{{width|}}}|{{{width}}}|640 | <iframe width="{{#if: {{{width|}}}|{{{width}}}|640}}" src="https://www.youtube.com/embed/{{{videoURL}}}" frameborder="0" allowfullscreen></iframe> | ||
<div style="text-align: center;"><small>{{{caption|}}}</small></div> | <div style="text-align: center;"><small>{{{caption|}}}</small></div> | ||
</div> | </div> |
Revision as of 00:31, 27 December 2023
<iframe width="640" src="https://www.youtube.com/embed/{{{videoURL}}}" frameborder="0" allowfullscreen></iframe>
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 |