The forum pages are fully operational! See this link for the latest forum topics, where users can collaborate or discuss certain topics in one place!

Difference between revisions of "Template:Youtube"

From Arthur Wiki
Jump to navigationJump to search
(fix this color)
m
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>
|}{{clr}}</includeonly><noinclude>
To use this template type: <code><nowiki>{{Youtube|Video code|Video size|Alignment|Caption}}</nowiki></code>
To use this template type: <code><nowiki>{{Youtube|Video code|Video size|Alignment|Caption}}</nowiki></code>



Revision as of 04:35, 20 July 2020

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".

Original template is from WiKirby.