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
m |
|||
(One intermediate revision by one other user not shown) | |||
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> | ||
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> | ||
Line 13: | Line 13: | ||
**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". | **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 [https://wikirby.com/wiki/Template:Youtube WiKirby] | Original template is from [https://wikirby.com/wiki/Template:Youtube WiKirby] | ||
[[Category:Templates|Y]] | [[Category:Templates|Y]] | ||
</noinclude> | </noinclude> |
Latest revision as of 02:16, 13 August 2022
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