Difference between revisions of "Template:YouTube"

From Tech4Biowaste
Jump to navigation Jump to search
[checked revision][checked revision]
(Created page with "<youtube {{#if {{{widht|}}} | width="200"}}>{{{videocode}}</youtube>")
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<youtube {{#if {{{widht|}}} | width="200"}}>{{{videocode}}</youtube>
<div style="float:{{{direction|right}}};">{{#tag:youtube | {{{videocode}}} | | |}} </div>
<noinclude>
<templatedata>
{
"params": {
"videocode": {
"aliases": [
"1"
],
"label": "Code of the video",
"description": "Code of the video",
"example": "l3Yh1H7UVO4",
"type": "string",
"required": true,
"suggested": true
},
"width": {
"label": "Width of the video",
"description": "Width of the video",
"example": "200",
"type": "number"
},
"height": {
"label": "Height of the video",
"description": "Height of the video",
"example": "200",
"type": "number"
},
"direction": {
"label": "Direction",
"description": "Direction of the video",
"type": "string",
"default": "right"
}
},
"description": "Embed a YouTube video",
"format": "inline"
}
</templatedata>
</noinclude>

Latest revision as of 08:38, 9 June 2021

Embed a YouTube video

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Code of the videovideocode 1

Code of the video

Example
l3Yh1H7UVO4
Stringrequired
Width of the videowidth

Width of the video

Example
200
Numberoptional
Height of the videoheight

Height of the video

Example
200
Numberoptional
Directiondirection

Direction of the video

Default
right
Stringoptional