Difference between revisions of "Template:YouTubeVideo"

From Wikispooks
Jump to navigation Jump to search
m (tweek)
(Trim whitespace and add to category:templates)
Line 1: Line 1:
<noinclude>'''This template is for placing a YouTube video and caption in a right-floating box.'''<br/>  
+
<noinclude>[[category:templates]]'''This template is for placing a YouTube video and caption in a right-floating box.'''<br/>  
 
The caption text will wrap within the box border and the borders will expand to accommodate whatever width & height are specified for the video  
 
The caption text will wrap within the box border and the borders will expand to accommodate whatever width & height are specified for the video  
  
Line 10: Line 10:
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
 
{| class="wikitable" width="20%" style="float:right; margin: 1.0em 0.0em 0.8em 1.0em;"
 
{| class="wikitable" width="20%" style="float:right; margin: 1.0em 0.0em 0.8em 1.0em;"
 
|-
 
|-
Line 16: Line 15:
 
|-
 
|-
 
|style="text-align:center; padding: 0.5em;" |{{{caption|}}}
 
|style="text-align:center; padding: 0.5em;" |{{{caption|}}}
|}
+
|}</includeonly>

Revision as of 17:06, 21 December 2014

This template is for placing a YouTube video and caption in a right-floating box.
The caption text will wrap within the box border and the borders will expand to accommodate whatever width & height are specified for the video

Usage:
{{YouTubeVideo
|code= Mandatory. YouTube video code
|caption= Optional. video caption - standard wikitext including links
|width= Optional. video width - whole number only - ie no 'px' (default 360)
|height= Optional. video height - whole number only - ie no 'px' (default 300)
}}