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

-

Historians wanted: Inquire here.

Template:YouTube video: Difference between revisions

Template page
Create template
 
m Add docs and TemplateData
Line 1: Line 1:
[https://youtu.be/{{{1}}} {{{2|YouTube video}}}]
<onlyinclude><includeonly>[https://youtu.be/{{{1}}} {{{2|YouTube video}}}]</includeonly></onlyinclude>
 
Link to a specific video on YouTube. <code><nowiki>{{YouTube video|2GtbY1XWGlQ|click here}}</nowiki></code> &longrightarrow; {{YouTube video|2GtbY1XWGlQ|click here}}
 
{{TemplateData preamble}}<templatedata>
{
"params": {
"1": {
"label": "Video ID",
"example": "2GtbY1XWGlQ",
"type": "url",
"required": true
},
"2": {
"label": "Label text",
"type": "line",
"example": "click here",
"default": "YouTube video"
}
},
"description": "Link to a specific video on YouTube.",
"format": "inline"
}
</templatedata>

Revision as of 14:42, 30 October 2023


Link to a specific video on YouTube. {{YouTube video|2GtbY1XWGlQ|click here}}click here


The below documentation is automatically generated from JSON.

It can be changed by editing this page, but note that it's only the documentation (for the visual editor)—the actual template part must also be edited, manually.

Link to a specific video on YouTube.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Video ID1

no description

Example
2GtbY1XWGlQ
URLrequired
Label text2

no description

Default
YouTube video
Example
click here
Lineoptional