Template:YouTube: Difference between revisions

No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 7: Line 6:
"label": "YouTube id",
"label": "YouTube id",
"description": "add the YouTube id here",
"description": "add the YouTube id here",
                        "default": "",
"example": "DWef69ItVrU",
"example": "DWef69ItVrU",
"type": "unknown",
"type": "unknown",
"suggested": true,
"suggested": true
  "aliases": []
},
},
"playlist": {
"playlist": {
Line 20: Line 16:
},
},
"width": {
"width": {
"label": "Width",
"label": "Width",
"description": "add the width of the YouTube video here",
"description": "add the width of the YouTube video here",
"type": "number",
"type": "number",
"suggested":true
"suggested": true
},
},
"height": {
"height": {
Line 30: Line 26:
"example": "400",
"example": "400",
"type": "number",
"type": "number",
"suggested":true
"suggested": true
}
}
},
},
Line 42: Line 38:
}
}
</templatedata>
</templatedata>
</noinclude><includeonly>
</noinclude>
{{#widget:YouTube|{{#if:{{{playlist|}}}||id={{{id}}}}}{{#if:{{{id|}}}||playlist={{{playlist}}}}}|width={{{width|560}}}|height={{{height|315}}}}}</includeonly>
<includeonly><youtube width={{{width|320}}} height={{{height|240}}}>{{{id}}}</youtube></includeonly>