Template:Youtube: Difference between revisions

From the Garry's Mod Factions Wiki
Jump to navigation Jump to search
m Change width
mNo edit summary
Line 11: Line 11:
{{Youtube|video-id=3W45IAbdMyc|caption=A video of a set of red and blue rectangles}}
{{Youtube|video-id=3W45IAbdMyc|caption=A video of a set of red and blue rectangles}}
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"video-id": {
"video-id": {
Line 45: Line 45:
"type": "content",
"type": "content",
"suggested": true
"suggested": true
},
"width": {
"aliases": [
"w"
],
"label": "Width",
"description": "The width of the video on the page in pixels.",
"type": "number",
"default": "300"
}
}
}
}

Revision as of 18:33, 22 October 2025



A video of a set of red and blue rectangles


No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Video IDvideo-id v

The id of the youtube video (normally the thing after the ?v=

Default
XI7Cxdj2pAQ
Example
XI7Cxdj2pAQ
Stringrequired
Alignmentalignment a

The side of the page the template sits on.

Suggested values
right left
Default
right
Stringoptional
Captioncaption c

The caption displayed below the video.

Contentsuggested
Widthwidth w

The width of the video on the page in pixels.

Default
300
Numberoptional