Difference between revisions of "Template:YouTube"

From Nookipedia, the Animal Crossing wiki
(Created page with "<includeonly>{|style="margin: 0.5em; margin-top:0 !important; padding: 3px 0 3px 0 !important; margin-{{#switch:{{{3|}}}|{{Void}}=left|left=left|right=right|center=center|#defaul...")
 
Line 5: Line 5:
 
|}
 
|}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 +
==Purpose==
 +
This template is for conveniently displaying Youtube videos on an article. This template is from WiKirby.
 +
 +
==Usage==
 +
To use this template type:<br/>
 +
<nowiki>{{Youtube|Video Code|Video Size|Alignment|Caption}}</nowiki>
 +
 +
Where:
 +
*'''''Video Code''''' is the unique sequence of letters, numbers, and characters that point to the video.
 +
*'''''Video Size''''' is the desired size of the video. Defaults to 250 pixels.
 +
*'''''Alignment''''' is where to have the video. (i.e. right, left, or center.) Defaults to left if blank.
 +
*'''''Caption''''' is an optional caption to describe the video.
 +
**If ''location'' is neither '''left''', '''right''', nor '''center''', then the it is assumed to be a caption and the video's location is set to "left".
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 13:28, January 16, 2011

Purpose

This template is for conveniently displaying Youtube videos on an article. This template is from WiKirby.

Usage

To use this template type:
{{Youtube|Video Code|Video Size|Alignment|Caption}}

Where:

  • Video Code is the unique sequence of letters, numbers, and characters that point to the video.
  • Video Size is the desired size of the video. Defaults to 250 pixels.
  • Alignment is where to have the video. (i.e. right, left, or center.) Defaults to left if blank.
  • Caption is an optional caption to describe the video.
    • If location is neither left, right, nor center, then the it is assumed to be a caption and the video's location is set to "left".