Difference between revisions of "Template:YouTube"

From Nookipedia, the Animal Crossing wiki
Line 3: Line 3:
 
|{{#ev:youtube|{{{1}}}|{{#ifeq:{{{2|}}}|{{Void}}|250|{{{2|}}}}}}}{{#switch:{{{3|}}}|{{Void}}={{#ifeq:{{{4|}}}|{{Void}}|{{Void}}|<br>{{{4|}}}}}|left={{#ifeq:{{{4|}}}|{{Void}}|{{Void}}|<br>{{{4|}}}}}|right={{#ifeq:{{{4|}}}|{{Void}}|{{Void}}|<br>{{{4|}}}}}|center={{#ifeq:{{{4|}}}|{{Void}}|{{Void}}|<br>{{{4|}}}}}|#default={{#ifeq:{{{3|}}}|{{Void}}|{{Void}}|<br>{{{3|}}}}}}}
 
|{{#ev:youtube|{{{1}}}|{{#ifeq:{{{2|}}}|{{Void}}|250|{{{2|}}}}}}}{{#switch:{{{3|}}}|{{Void}}={{#ifeq:{{{4|}}}|{{Void}}|{{Void}}|<br>{{{4|}}}}}|left={{#ifeq:{{{4|}}}|{{Void}}|{{Void}}|<br>{{{4|}}}}}|right={{#ifeq:{{{4|}}}|{{Void}}|{{Void}}|<br>{{{4|}}}}}|center={{#ifeq:{{{4|}}}|{{Void}}|{{Void}}|<br>{{{4|}}}}}|#default={{#ifeq:{{{3|}}}|{{Void}}|{{Void}}|<br>{{{3|}}}}}}}
 
|</div>
 
|</div>
|}</includeonly><noinclude>[[Category:Templates]]</noinclude>
+
|}</includeonly><noinclude>{{t|Youtube|Video Code|Video Size|Location|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.
 +
*'''''Location''''' 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]]</noinclude>

Revision as of 05:45, June 18, 2011

{{Youtube|<Video Code>|<Video Size>|<Location>|<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.
  • Location 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".