m (Improve documentation w.r.t. querystring) |
(Add channel-name param) |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>[https://youtu.be/{{{1}}} {{{2|YouTube video}}}]</includeonly></onlyinclude> | <onlyinclude><includeonly>[https://youtu.be/{{{1}}} {{{2|{{#if:{{{channel-name|}}}|{{{channel-name}}} (YouTube)|YouTube video}}}}}]</includeonly></onlyinclude> | ||
Link to a specific video on YouTube. <code><nowiki>{{YouTube video|2GtbY1XWGlQ|click here}}</nowiki></code> ⟶ {{YouTube video|2GtbY1XWGlQ|click here}} | Link to a specific video on YouTube. <code><nowiki>{{YouTube video|2GtbY1XWGlQ|click here}}</nowiki></code> ⟶ {{YouTube video|2GtbY1XWGlQ|click here}} | ||
Line 5: | Line 5: | ||
You can add query parameters such as <code>?t=1m10s</code>, but it requires that you explicitly number both parameters:<br/> | You can add query parameters such as <code>?t=1m10s</code>, but it requires that you explicitly number both parameters:<br/> | ||
<code><nowiki>{{YouTube video|1=2GtbY1XWGlQ?t=1m10s|2=click here}}</nowiki></code> ⟶ {{YouTube video|1=2GtbY1XWGlQ?t=1m10s|2=click here}} | <code><nowiki>{{YouTube video|1=2GtbY1XWGlQ?t=1m10s|2=click here}}</nowiki></code> ⟶ {{YouTube video|1=2GtbY1XWGlQ?t=1m10s|2=click here}} | ||
Passing e.g. `channel-name=dwangoAC` ''instead of a label'' will generate something like {{YouTube video|2GtbY1XWGlQ|channel-name=dwangoAC}}. | |||
{{TemplateData preamble}}<templatedata> | {{TemplateData preamble}}<templatedata> |
Revision as of 13:13, 3 August 2024
Link to a specific video on YouTube. {{YouTube video|2GtbY1XWGlQ|click here}}
⟶ click here
You can add query parameters such as ?t=1m10s
, but it requires that you explicitly number both parameters:
{{YouTube video|1=2GtbY1XWGlQ?t=1m10s|2=click here}}
⟶ click here
Passing e.g. `channel-name=dwangoAC` instead of a label will generate something like dwangoAC (YouTube).
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Video ID | 1 | no description
| URL | required |
Label text | 2 | no description
| Line | optional |