Template:YoutubeVideo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Got around to fixin this (I think this is a fix...)) |
||
Line 3: | Line 3: | ||
<div style="width: {{{width|640}}}px; margin: 20px auto; padding: 10px; border: 1px solid #ccc;"> | <div style="width: {{{width|640}}}px; margin: 20px auto; padding: 10px; border: 1px solid #ccc;"> | ||
<youtube>{{{videoURL}}}</youtube> | <youtube>{{{videoURL}}}</youtube> | ||
< | <iframe width="{{#if: {{{width|}}}|{{{width}}}|640}}" height="{{#expr: ({{{width|}}} * 0.5625) round 0}}" src="https://www.youtube.com/embed/{{{videoURL}}}" frameborder="0" allowfullscreen></iframe> | ||
</div> | </div> | ||
</div> | </div> |
Revision as of 00:25, 27 December 2023
Provided ID could not be validated. <iframe width="640" height="Expression error: Unexpected * operator." 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 |