Template:Youtube: Difference between revisions

Want an adless experience? Log in or Create an account.
m
no edit summary
(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|#def...")
 
mNo edit summary
Line 1: Line 1:
<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|#default=left}}:0 !important; background-color:#{{ZWheader}}; border: 2px solid #{{ZWborder}};width:100px;float:{{#switch:{{{3|}}}|{{Void}}=left|left=left|right=right|center=center|#default=left}}"
<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|#default=left}}:0 !important; background-color:#F2F2F2; border: 2px solid #AAA;width:100px;float:{{#switch:{{{3|}}}|{{Void}}=left|left=left|right=right|center=center|#default=left}}"
|<div>
|<div>
|{{#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|}}}}}}}
Line 11: Line 11:
==Usage==
==Usage==
To use this template type:<br>
To use this template type:<br>
{{NoWikiTemp|Normal|Video Code|Video Size|Location|Caption}}
{{Desc|Normal|Video Code|Video Size|Location|Caption}}


Where:
Where:
Line 20: Line 20:
**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".


[[Category:Formatting Templates|Y]]
{{Cat|Formatting Templates}}
</noinclude>
</noinclude>