Template:Youtube: Difference between revisions

From the Garry's Mod Factions Wiki
Jump to navigation Jump to search
Create youtube template
 
mNo edit summary
Line 1: Line 1:
{|style="color:black; background-color: #f8f9fa; border-color: #a2a9b1; margin: auto; float: {{{alignment|right}}};"
<includeonly>
|<youtube>{{{video-id|XI7Cxdj2pAQ}}}</youtube>
{|style="color: var(--color-base); background-color:var(--background-color-interactive, #fff); border-color: var(--border-color-base, #a2a9b1); border: solid; margin: auto; float: {{{alignment|right}}};"
|- {{#if: {{{caption|}}} | | style="display: none;" }}
|{{#ev: youtube|{{{video-id}}}}}
|- {{#if: {{{caption}}} | | style="display: none;" }}
|{{{caption|}}}
|{{{caption|}}}
|}
|}
</includeonly>
<noinclude>
<noinclude>
<br/>
<br/>
{{Youtube|video-id=3W45IAbdMyc|caption=A video of a set of red and blue rectangles}}
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"video-id": {
"video-id": {
Line 39: Line 42:
"label": "Caption",
"label": "Caption",
"description": "The caption displayed below the video.",
"description": "The caption displayed below the video.",
"example": "A [[wikipedia:video| video]] of red and blue rectangles",
"type": "content",
"type": "content",
"suggested": true
"suggested": true

Revision as of 18:09, 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