Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:YouTube/doc: Difference between revisions

Template page
(Created page with " <templatedata> { "params": { "align": { "label": "Video alignment", "description": "How the video should be aligned on the page. This value likely does nothing.", "suggestedvalues": [ "left", "right", "center" ], "default": "center" }, "width": { "label": "Width", "description": "The initial width of the video. Do not include \"px\"", "example": "800", "type": "number", "default": "800" }, "height": { "label": "Hei...")
Tag: 2017 source edit
 
No edit summary
Tag: 2017 source edit
Line 15: Line 15:
"width": {
"width": {
"label": "Width",
"label": "Width",
"description": "The initial width of the video. Do not include \"px\"",
"description": "The initial width of the video. Do not include \"px\". This value is not necessarily required since the width is dynamic.",
"example": "800",
"example": "800",
"type": "number",
"type": "number",
Line 22: Line 22:
"height": {
"height": {
"label": "Height",
"label": "Height",
"description": "The initial height of the video. Do not include \"px\".",
"description": "The height of the video. Do not include \"px\".",
"type": "number",
"type": "number",
"default": "500"
"default": "500",
"suggested": true
},
},
"video": {
"video": {

Revision as of 18:46, 3 September 2024

Embeds a YouTube video into an article.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Video URLvideo

The YouTube video's URL to embed

Example
https://youtu.be/dQw4w9WgXcQ
URLrequired
Video alignmentalign

How the video should be aligned on the page. This value likely does nothing.

Suggested values
left right center
Default
center
Unknownoptional
Widthwidth

The initial width of the video. Do not include "px". This value is not necessarily required since the width is dynamic.

Default
800
Example
800
Numberoptional
Heightheight

The height of the video. Do not include "px".

Default
500
Numbersuggested