Difference between revisions of "Template:YouTube"
From Akvopedia
(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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Video ID | id | The video identifyer string for the YouTube video.
| String | required |
Video Caption | caption | Descriptive text to be rendered below the video frame.
| String | optional |