Jump to content

Template:Youtube: Difference between revisions

From Flerf Wiki
Washcarso (talk | contribs)
No edit summary
Washcarso (talk | contribs)
No edit summary
 
Line 3: Line 3:
==Template information==
==Template information==
For links to YouTube videos.
For links to YouTube videos.
===Shortcuts===
<nowiki>{{yt}}</nowiki>


===Parameters===
===Parameters===
  <nowiki>{{yt
  <nowiki>{{youtube
|link= <!--link-->  
|link= <!--link-->  
|title= <!--title-->  
|title= <!--title-->  
Line 32: Line 35:
To set a video to '''1:30''':
To set a video to '''1:30''':


  <nowiki>{{yt|link=link |title=title |min=1 |sec=30}}</nowiki>
  <nowiki>{{yt| ... |min=1 |sec=30}}</nowiki>


To set a video to '''5:00''':
To set a video to '''5:00''':


  <nowiki>{{yt|link=''link''|title=''title''|min=5}}</nowiki>
  <nowiki>{{yt| ... |min=5}}</nowiki>


To set a video to '''3:00:00''':
To set a video to '''3:00:00''':


  <nowiki>{{yt|link=''link''|title=''title''|hr=3}}</nowiki>
  <nowiki>{{yt| ... |hr=3}}</nowiki>


To set a video to '''1:23:45''':
To set a video to '''1:23:45''':


  <nowiki>{{yt|link=''link''|title=''title''|hr=1 |min=23 |sec=45}}</nowiki>
  <nowiki>{{yt| ... |hr=1 |min=23 |sec=45}}</nowiki>
</noinclude>
</noinclude>

Latest revision as of 07:04, 14 October 2026

 [{{{link}}} {{{title}}}]

Template information

For links to YouTube videos.

Shortcuts

{{yt}}

Parameters

{{youtube
|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| ... |min=1 |sec=30}}

To set a video to 5:00:

{{yt| ... |min=5}}

To set a video to 3:00:00:

{{yt| ... |hr=3}}

To set a video to 1:23:45:

{{yt| ... |hr=1 |min=23 |sec=45}}