Difference between revisions of "Template:Youtube"

From Karnataka Open Educational Resources
Jump to: navigation, 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 06:27, 30 September 2019


Example: {{Youtube|DWef69ItVrU}}


Add Youtube video using its id

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
id1id

Insert Youtube video id here

Default
empty
Example
DWef69ItVrU
Auto value
empty
Stringrequired
22height

Height

Default
empty
Example
420
Auto value
empty
Numberoptional
33Width

Width

Default
empty
Example
350
Auto value
empty
Numberoptional