Difference between revisions of "Template:Youtube"

From Karnataka Open Educational Resources
m (1 revision imported: templates)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#widget:YouTube|id={{{1}}}}}
+
{{#widget:YouTube|id={{{1}}}|height={{{2}}}|width={{{3}}}}}
  
 
<noinclude>
 
<noinclude>
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
id1 id

Insert Youtube video id here

Example
DWef69ItVrU
Stringrequired
22 height

Height

Example
420
Numberoptional
33 Width

Width

Example
350
Numberoptional