User:Wildgoosespeeder/YouTube/sandbox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{delete|It's not working as expected. Hold off deleting until proposal reaches resolve ([[Help talk:YouTube#Make an Exception to Embed YouTube Videos on Glitch Pages?|Discuss]])}}</noinclude>
<noinclude>{{DISPLAYTITLE:Template:YouTube}}</noinclude>
{{#switch:{{{align}}}|left=<div class="thumb tleft">|none=<div class="thumb tnone">|center=<center><div class="thumb tnone">|#default=<div class="thumb tright">}}
{{#switch:{{{align}}}|left=<div class="thumb tleft">|none=<div class="thumb tnone">|center=<center><div class="thumb tnone">|#default=<div class="thumb tright">}}
<div class="thumbinner" style="<noinclude>width:182px</noinclude>{{#if:{{{size|}}}|width:{{#expr:{{{size}}}+2}}px}}">{{#if:{{{id|}}}|<youtube width="{{#if:{{{size|}}}|{{{size}}}}}">{{{id}}}</youtube>|<youtube width="180">0123456789A</youtube>}}
<div class="thumbinner" style="width:{{#expr:{{{size|180}}}+2}}px">{{#tag:youtube|{{{id|0123456789A}}}|width="{{{size|180}}}"}}<div class="thumbcaption" clear=all>{{{text|No text supplied}}} <sup>[http://www.youtube.com/watch?v={{{id|0123456789A}}}]</sup></div>
<div class="thumbcaption" clear=all>{{#if:{{{text|}}}|{{{text}}}|No text supplied}} <sup>[http://www.youtube.com/watch?v={{#if:{{{id|}}}|{{{id}}}|0123456789A}}]</sup></div>
</div></div>{{#ifeq:{{{align}}}|center|</center>}}
</div></div>{{#ifeq:{{{align}}}|center|</center>}}
<noinclude>
<noinclude>
{{br|left}}
{{br|left}}
Default is a video ID of ''0123456789A'', right-aligned, width of 180, and caption of ''No text supplied''.
==Usage==
==Usage==
<nowiki>
<kbd><nowiki>
{{YouTube
{{</nowiki>YouTube<br>
|id=
|id=<br>
|align=
|align=<br>
|size=
|size=<br>
|text=
|text=<br>
}}
<nowiki>}}
</nowiki>
</nowiki></kbd>
 
==Test==
==Test==
===Left===
===Left 150===
{{User:Wildgoosespeeder/YouTube/sandbox
{{User:Wildgoosespeeder/YouTube/sandbox
|id=p0iev5ReOKQ
|id=p0iev5ReOKQ
|align=left
|align=left
|size=200
|size=150
|text=A glitch in [[Paper Mario]].
|text=A glitch in [[Paper Mario]].
}}
}}
{{br}}
{{br}}
===Center===
===Center 200===
{{User:Wildgoosespeeder/YouTube/sandbox
{{User:Wildgoosespeeder/YouTube/sandbox
|id=p0iev5ReOKQ
|id=p0iev5ReOKQ
Line 31: Line 32:
|text=A glitch in [[Paper Mario]].
|text=A glitch in [[Paper Mario]].
}}
}}
===Right===
===Right 250===
{{User:Wildgoosespeeder/YouTube/sandbox
{{User:Wildgoosespeeder/YouTube/sandbox
|id=p0iev5ReOKQ
|id=p0iev5ReOKQ
|align=right
|align=right
|size=200
|size=250
|text=A glitch in [[Paper Mario]].
|text=A glitch in [[Paper Mario]].
}}
}}
{{br}}
{{br}}
</noinclude>
</noinclude>

Latest revision as of 22:26, April 27, 2016

<youtube width="180">0123456789A</youtube>
No text supplied [1]

Default is a video ID of 0123456789A, right-aligned, width of 180, and caption of No text supplied.

Usage

{{YouTube
|id=
|align=
|size=
|text=
}}

Test

Left 150

<youtube width="150">p0iev5ReOKQ</youtube>
A glitch in Paper Mario. [2]

Center 200

<youtube width="200">p0iev5ReOKQ</youtube>
A glitch in Paper Mario. [3]

Right 250

<youtube width="250">p0iev5ReOKQ</youtube>
A glitch in Paper Mario. [4]