Difference between revisions of "Template:YouTube"

From Akvopedia
Jump to: navigation, search
(Created page with "<includeonly>{{#tag:widget||widgetname=YouTube|id={{{id|}}}}}</includeonly> <noinclude> <templatedata> { "params": { "id": { "label": "Video ID", "description": "The...")
 
 
Line 1: Line 1:
<includeonly>{{#tag:widget||widgetname=YouTube|id={{{id|}}}}}</includeonly>
+
<includeonly><div style="width: {{#if:{{{width|}}}|{{{width}}}|200}}px;"><div class="thumbinner" style="padding: 3px;width: {{#if:{{{width|}}}|{{{width}}}|200}}px;">{{#tag:widget||widgetname=YouTube|id={{{id|}}}|width={{#if:{{{width|}}}|{{{width}}}|200}}|height={{#if:{{{height|}}}|{{{height}}}|200}}}}{{#if:{{{caption|}}}|<div class="thumbcaption" style="text-align:center;">{{{caption}}}</div>}}</div></div></includeonly>
 
<noinclude>
 
<noinclude>
 
<templatedata>
 
<templatedata>
Line 10: Line 10:
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
 +
},
 +
"caption": {
 +
"label": "Video Caption",
 +
"description": "Descriptive text to be rendered below the video frame.",
 +
"type": "string",
 +
"required": false
 
}
 
}
 
},
 
},

Latest revision as of 20:53, 23 August 2016


Embed a youtube video.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Video IDid

The video identifyer string for the YouTube video.

Default
empty
Example
mVhnDGVBDrU
Auto value
empty
Stringrequired
Video Captioncaption

Descriptive text to be rendered below the video frame.

Default
empty
Example
empty
Auto value
empty
Stringoptional