Youtube – Template
Jump to navigation
Jump to search
(This template requires a plugin not present in this MediaWiki installation. #ev is a parser function used with https://www.mediawiki.org/wiki/Extension:EmbedVideo) |
Lou Montana (talk | contribs) (Refresh this template) |
||
Line 1: | Line 1: | ||
< | <includeonly>{{#if:{{{1|}}} | ||
{{ | | <div class="t{{#ifeq:{{{3|}}}|right|right|left}}" style="clear:none"><div class="thumbinner" style="width: {{{4|300}}}px">{{#ev:youtube|{{{1}}}|{{{4|300}}}}}{{#if:{{{2|}}}|<div class="thumbcaption">{{{2}}}</div>}}</div></div> | ||
</noinclude> | | -Youtube ID not defined-}} | ||
</includeonly><noinclude> | |||
Shows a [https://www.youtube.com YouTube] video. | |||
== Usage == | |||
{{<nowiki/>Youtube|'''''videoID'''''|'''''caption'''''|'''''position'''''|'''''size'''''}} | |||
* videoID: the ID part of the URL. e.g '''a75eG8HG5Fk''' | |||
* caption: (optional) caption below the video | |||
* position: (optional, default left) "left" or "right" | |||
* size: (optional, default 300) width in pixels | |||
< | {| class="wikitable" | ||
|+ Examples | |||
! Code | |||
! style="min-width: 500px" | Result | |||
|- | |||
| <nowiki>{{Youtube}}</nowiki> | |||
| {{Youtube}} | |||
|- | |||
| <nowiki>{{Youtube|a75eG8HG5Fk}}</nowiki> | |||
| {{Youtube|a75eG8HG5Fk}} | |||
|- | |||
| <nowiki>{{Youtube|UgXq6z6-644|{{arma2}} trailer}}</nowiki> | |||
| {{Youtube|UgXq6z6-644|{{arma2}} trailer}} | |||
|- | |||
| <nowiki>{{Youtube|M1YBZUxMX8g|{{arma3}} trailer|right}}</nowiki> | |||
| {{Youtube|M1YBZUxMX8g|{{arma3}} trailer|right}} | |||
|- | |||
| <nowiki>{{Youtube|EwAxJC9AR_A|{{Name|arma3apex}} trailer|right|400}}</nowiki> | |||
| {{Youtube|EwAxJC9AR_A|{{Name|arma3apex}} trailer|right|400}} | |||
|} | |||
[[Category:Templates]]</noinclude> |
Revision as of 21:33, 4 June 2020
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
- position: (optional, default left) "left" or "right"
- size: (optional, default 300) width in pixels
Code | Result |
---|---|
{{Youtube}} | -Youtube ID not defined- |
{{Youtube|a75eG8HG5Fk}} | a75eG8HG5Fk|300}} |
{{Youtube|UgXq6z6-644|{{arma2}} trailer}} | UgXq6z6-644|300}} |
{{Youtube|M1YBZUxMX8g|{{arma3}} trailer|right}} | M1YBZUxMX8g|300}} |
{{Youtube|EwAxJC9AR_A|{{Name|arma3apex}} trailer|right|400}} | EwAxJC9AR_A|400}} |