Template:Youtube: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
[[File:Youtube logo.png|15px]] {{#if:{{{min|}}}{{{sec|}}}|[{{{link}}}&t={{#expr: ({{{min|0}}} * 60) + {{{sec|0}}} }} |[{{{link}}} }} <q>{{{title}}}</q>]{{#if:{{{min|}}}{{{sec|}}}| @{{{min}}}:{{{sec}}}}}{{#if:{{{by|}}}| by {{{by}}}}}{{#if:{{{date|}}}| ({{{date}}})}}<noinclude> | [[File:Youtube logo.png|15px]] {{#if:{{{hr|}}}{{{min|}}}{{{sec|}}}|[{{{link}}}&t={{#expr: ({{{hr|0}}} * 60 * 60) + ({{{min|0}}} * 60) + {{{sec|0}}} }} |[{{{link}}} }} <q>{{{title}}}</q>]{{#if:{{{hr|}}}{{{min|}}}{{{sec|}}}| @{{#if:{{{hr|}}}|{{{hr}}}:}}{{{min|0}}}:{{{sec|00}}}}}{{#if:{{{by|}}}| by {{{by}}}}}{{#if:{{{date|}}}| ({{{date}}})}}<noinclude> | ||
==Template information== | ==Template information== | ||
For links to YouTube videos. | For links to YouTube videos. | ||
<nowiki>{{yt|link= <!--link--> |title= <!--title--> |by= <!-- | <nowiki>{{yt | ||
|link= <!--link--> | |||
|title= <!--title--> | |||
|by= <!-- YouTube channel (optional)--> | |||
|date= <!--date uploaded (optional)--> | |||
<!-- timestamp (optional; input numbers only) --> | |||
|hr= | |||
|min= | |||
|sec= | |||
}}</nowiki> | |||
===All parameters=== | ===All parameters=== | ||
<nowiki>{{yt|link= |title= |by= |date= |min= |sec= }}</nowiki> | <nowiki>{{yt|link= |title= |by= |date= |hour= |min= |sec= }}</nowiki> | ||
===Minimum parameters=== | ===Minimum parameters=== | ||
Revision as of 06:07, 14 October 2026
Template information
For links to YouTube videos.
{{yt
|link= <!--link-->
|title= <!--title-->
|by= <!-- YouTube channel (optional)-->
|date= <!--date uploaded (optional)-->
<!-- timestamp (optional; input numbers only) -->
|hr=
|min=
|sec=
}}
All parameters
{{yt|link= |title= |by= |date= |hour= |min= |sec= }}
Minimum parameters
{{yt|link= |title= }}
Creator only
{{yt|link= |title= |by= }}
Date only
{{yt|link= |title= |date= }}