Difference between revisions of "Template:YouTubeVideo"
Jump to navigation
Jump to search
(create page) |
m (fix) |
||
Line 12: | Line 12: | ||
{| class="wikitable" width="20%" style="float:right; margin: 0em 0em 0.8em 1.0em;" | {| class="wikitable" width="20%" style="float:right; margin: 0em 0em 0.8em 1.0em;" | ||
|- | |- | ||
− | |{{#widget:YouTube|#if:{{{width|}}}|width={{{width|}}}px}}|#if:{{{height|}}}|height={{{height|}}}px}}|id={{{code|}}}}} | + | |{{#widget:YouTube|{{#if:{{{width|}}}|width={{{width|}}}px}}|{{#if:{{{height|}}}|height={{{height|}}}px}}|id={{{code|}}}}} |
|- | |- | ||
|style="text-align:center; padding: 0.5em;" |{{{caption|}}} | |style="text-align:center; padding: 0.5em;" |{{{caption|}}} | ||
|} | |} |
Revision as of 15:35, 7 September 2014
This template is for placing a You Yube video and caption in a right-floating box
Usage:
{{YouTubeVideo
|code= Mandatory. YouTube video code
|caption= Optional. video caption - standard wikitext including links
|width= Optional. video width - whole number only - no'px' (default 360)
|height= Optional. video height - whole number only - no'px' (default 300)
}}