Difference between revisions of "Template:YouTube"

From RECESSIM, A Reverse Engineering Community
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 6: 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 22: Line 19:
 
"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 29: Line 26:
 
"example": "400",
 
"example": "400",
 
"type": "number",
 
"type": "number",
"suggested":true
+
"suggested": true
 
}
 
}
 
},
 
},
Line 42: Line 39:
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>
<includeonly><youtube width="{{{width}}}" height="{{{height}}}">{{{id}}}</youtube></includeonly>
+
<includeonly><youtube width={{{width|320}}} height={{{height|240}}}>{{{id}}}</youtube></includeonly>

Latest revision as of 02:11, 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

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