Template:YouTube: Difference between revisions

From SPCodex, The Smashing Pumpkins wiki
No edit summary
No edit summary
Line 1: Line 1:
<templatestyles src="Template:YouTube/styles.css" /><span style="float:{{{float|right}}}" class="video {{#if:{{{2|}}}|video-with-caption}}"><youtube width="{{{width|400}}}" height="{{{height|240}}}">{{#if:{{{1|}}}|{{{1}}}|Do3tSdZucyA}}</youtube>{{#if:{{{2|}}}|<div class="thumbcaption">{{{2}}}</div>}}</span>
<templatestyles src="Template:YouTube/styles.css" /><span style="float:{{{float|right}}}" class="video {{#if:{{{2|}}}|video-with-caption}}"><youtube width="{{{width|400}}}" height="{{{height|240}}}">{{{1}}}</youtube>{{#if:{{{2|}}}|<div class="thumbcaption">{{{2}}}</div>}}</span>
<noinclude>
<noinclude>
<templatedata>
<templatedata>

Revision as of 04:31, 9 April 2020

Embed a YouTube video

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
YouTube video ID1

This is the alphanumeric code that follows the v= in the URL of the YouTube video.

Stringrequired
Description2

Optional description to show below the video

Contentoptional
floatfloat

no description

Unknownoptional
widthwidth

no description

Unknownoptional
heightheight

no description

Unknownoptional