Difference between revisions of "Template:YouTube"

From RECESSIM, A Reverse Engineering Community
Jump to navigation Jump to search
Line 1: Line 1:
<youtube width="{{{Width}}}" height="{{{Height}}}">{{{YouTube ID}}}</youtube>
+
 
 +
<noinclude>
 +
<templatedata>
 +
{
 +
"params": {
 +
"id": {
 +
"label": "YouTube id",
 +
"description": "add the YouTube id here",
 +
                        "default": "",
 +
 
 +
"example": "DWef69ItVrU",
 +
"type": "unknown",
 +
"suggested": true,
 +
  "aliases": []
 +
},
 +
"playlist": {
 +
"label": "Playlist id ",
 +
"description": "If you are embedding YouTube playlist instead of a video, add the id here. ",
 +
"type": "string"
 +
},
 +
"width": {
 +
"label": "Width",
 +
"description": "add the width of the YouTube video here",
 +
"type": "number",
 +
"suggested":true
 +
},
 +
"height": {
 +
"label": "Height",
 +
"description": "add the height of the YouTube video here",
 +
"example": "400",
 +
"type": "number",
 +
"suggested":true
 +
}
 +
},
 +
"description": "Fill in the info below to add a YouTube video to the Wiki. ",
 +
"paramOrder": [
 +
"id",
 +
"playlist",
 +
"width",
 +
"height"
 +
]
 +
}
 +
</templatedata>
 +
</noinclude><includeonly>
 +
{{#widget:YouTube|{{#if:{{{playlist|}}}||id={{{id}}}}}{{#if:{{{id|}}}||playlist={{{playlist}}}}}|width={{{width|560}}}|height={{{height|315}}}}}</includeonly>

Revision as of 00:27, 8 June 2020


Fill in the info below to add a YouTube video to the Wiki.

Template parameters

ParameterDescriptionTypeStatus
YouTube idid

add the YouTube id here

Default
Example
DWef69ItVrU
Unknownsuggested
Playlist id playlist

If you are embedding YouTube playlist instead of a video, add the id here.

Stringoptional
Widthwidth

add the width of the YouTube video here

Numbersuggested
Heightheight

add the height of the YouTube video here

Example
400
Numbersuggested