Template:YouTube: Difference between revisions

From SPCodex, The Smashing Pumpkins wiki
(Undo revision 8989 by MusikAnimal (talk))
No edit summary
Line 1: Line 1:
<templatestyles src="Template:YouTube/styles.css" /><span style="float:{{{float|right}}}; width:{{{width|400}}}px" class="video {{#if:{{{2|}}}|video-with-caption}}">{{#tag:youtube|{{{1|Do3tSdZucyA}}}|width="{{{width|400}}}"|height="{{{height|240}}}"}}{{#if:{{{2|}}}|<div class="thumbcaption">{{{2}}}</div>}}</span><noinclude>
<noinclude>{{#cargo_declare:
_table = live_show_videos
}}</noinclude><includeonly>{{#cargo_store:
_table = live_show_videos
}}</includeonly><templatestyles src="Template:YouTube/styles.css" /><span style="float:{{{float|right}}}; width:{{{width|400}}}px" class="video {{#if:{{{2|}}}|video-with-caption}}">{{#tag:youtube|{{{1|Do3tSdZucyA}}}|width="{{{width|400}}}"|height="{{{height|240}}}"}}{{#if:{{{2|}}}|<div class="thumbcaption">{{{2}}}</div>}}</span><noinclude>
<templatedata>
<templatedata>
{
{

Revision as of 19:54, 16 December 2020

This template defines the table "live_show_videos". View table.

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

Contentsuggested
Positionfloat position

Either 'left', 'right' or 'none'

Auto value
right
Stringsuggested
Widthwidth

Width of the embedded video. Does not automatically scale with the height.

Auto value
400
Unknownoptional
heightheight

Height of embedded video. Does not automatically scale with the width.

Auto value
240
Unknownoptional