Template:Youtube: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
For links to YouTube videos. | For links to YouTube videos. | ||
===Parameters=== | |||
<nowiki>{{yt | <nowiki>{{yt | ||
|link= <!--link--> | |link= <!--link--> | ||
| Line 15: | Line 16: | ||
}}</nowiki> | }}</nowiki> | ||
===All parameters=== | ====All parameters==== | ||
<nowiki>{{yt|link= |title= |by= |date= |hour= |min= |sec= }}</nowiki> | <nowiki>{{yt|link= |title= |by= |date= |hour= |min= |sec= }}</nowiki> | ||
===Minimum parameters=== | ====Minimum parameters==== | ||
<nowiki>{{yt|link= |title= }}</nowiki> | <nowiki>{{yt|link= |title= }}</nowiki> | ||
===Creator only=== | ====Creator only==== | ||
<nowiki>{{yt|link= |title= |by= }}</nowiki> | <nowiki>{{yt|link= |title= |by= }}</nowiki> | ||
===Date only=== | ====Date only==== | ||
<nowiki>{{yt|link= |title= |date= }}</nowiki></noinclude> | <nowiki>{{yt|link= |title= |date= }}</nowiki> | ||
===Timestamp=== | |||
You can set the link to a particular timestamp using the <code>|hr=</code>, <code>|min=</code>, and <code>|sec=</code> 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''': | |||
<nowiki>{{yt|link=link |title=title |min=1 |sec=30}}</nowiki> | |||
To set a video to '''5:00''': | |||
<nowiki>{{yt|link=''link''|title=''title''|min=5}}</nowiki> | |||
To set a video to '''3:00:00''': | |||
<nowiki>{{yt|link=''link''|title=''title''|hr=3}}</nowiki> | |||
To set a video to '''1:23:45''': | |||
<nowiki>{{yt|link=''link''|title=''title''|hr=1 |min=23 |sec=45}}</nowiki> | |||
</noinclude> | |||
Revision as of 06:26, 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}}