Template:Youtube: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
[[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}}}: | [[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}}}:{{#ifexpr: {{{min|0}}} < 10 |0|}}}}{{{min|0}}}:{{#ifexpr: {{{sec|0}}} < 10 |0|}}{{{sec|0}}}}}{{#if:{{{by|}}}| by {{{by}}}}}{{#if:{{{date|}}}| ({{{date}}})}}<noinclude> | ||
==Template information== | ==Template information== | ||
Revision as of 07:01, 14 October 2026
Template information
For links to YouTube videos.
Parameters
{{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= }}
Timestamp
You can set the link to a particular timestamp using the |hr=, |min=, and |sec= parameters. You don't need to use all of these, only the ones that are necessary. For example:
To set a video to 1:30:
{{yt|link=link |title=title |min=1 |sec=30}}
To set a video to 5:00:
{{yt|link=''link''|title=''title''|min=5}}
To set a video to 3:00:00:
{{yt|link=''link''|title=''title''|hr=3}}
To set a video to 1:23:45:
{{yt|link=''link''|title=''title''|hr=1 |min=23 |sec=45}}