Youtube – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Use YouTube extension (<youtube>) instead of EmbedVideo (obsolete & fork requires PHP 8.0) - default ratio 16/9) |
Lou Montana (talk | contribs) m (Fix description) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
| -Youtube ID not defined- | | -Youtube ID not defined- | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Shows a | Shows a {{Link|https://www.youtube.com|YouTube}} video. | ||
== Usage == | == Usage == | ||
Line 13: | Line 13: | ||
* videoID: the ID part of the URL. e.g '''a75eG8HG5Fk''' | * videoID: the ID part of the URL. e.g '''a75eG8HG5Fk''' | ||
* caption: (optional) caption below the video | * caption: (optional) caption below the video | ||
* | * textAlign: (optional, default left) "left", "right" or "center" - does '''not''' use the {{Link|https://developer.mozilla.org/en-US/docs/Web/CSS/float|float}} property | ||
* size: (optional, default 300) width in pixels | * size: (optional, default 300) width in pixels | ||
Latest revision as of 12:36, 24 April 2024
Shows a YouTube video.
Usage
{{Youtube|videoID|caption|position|size}}
- videoID: the ID part of the URL. e.g a75eG8HG5Fk
- caption: (optional) caption below the video
- textAlign: (optional, default left) "left", "right" or "center" - does not use the float property
- size: (optional, default 300) width in pixels
Code | Result |
---|---|
{{Youtube}} | -Youtube ID not defined- |
{{Youtube|a75eG8HG5Fk}} | |
{{Youtube|UgXq6z6-644|{{arma2}} trailer}} | |
{{Youtube|M1YBZUxMX8g|{{arma3}} trailer|right}} | |
{{Youtube|EwAxJC9AR_A|{{Name|arma3apex}} trailer|center|400}} |