Difference between revisions of "Template:Youtube"

From Karnataka Open Educational Resources
Jump to navigation Jump to search
 
Line 18: Line 18:
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
 +
},
 +
"2": {
 +
"aliases": [
 +
"height"
 +
],
 +
"description": "Height",
 +
"example": "420",
 +
"type": "number"
 +
},
 +
"3": {
 +
"aliases": [
 +
"Width"
 +
],
 +
"description": "Width",
 +
"example": "350",
 +
"type": "number"
 
}
 
}
 
},
 
},
"description": "Add Youtube video using its id"
+
"description": "Add Youtube video using its id",
 +
"format": "block"
 
}
 
}
 
</templatedata>
 
</templatedata>
 
[[Category:TROER templates]]
 
 
 
<noinclude/>
 
<noinclude/>

Latest revision as of 11:57, 30 September 2019


Example: {{Youtube|DWef69ItVrU}}


Add Youtube video using its id

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
id1 id

Insert Youtube video id here

Example
DWef69ItVrU
Stringrequired
22 height

Height

Example
420
Numberoptional
33 Width

Width

Example
350
Numberoptional