Difference between revisions of "Template:Youtube-box"

From MK8
Jump to navigation Jump to search
(Created page with "<includeonly> {| class="youtube textbox video {{{1|}}}" |+ {{{3|Video}}} | style="padding:0 1pt" | {{#widget:YouTube|id={{{2}}}|width=480|height=270}} |}</includeonly><noinclu...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{|class=""
{| class="youtube textbox video {{{1|}}}"
+
{{#ev:youtube|{{{2}}}|||{{{3}}}||start={{{4|0}}}&end={{{5|3600}}}}}
|+ {{{3|Video}}}
+
|}<!--
| style="padding:0 1pt" | {{#widget:YouTube|id={{{2}}}|width=480|height=270}}
+
--></includeonly><noinclude>
|}</includeonly><noinclude>[[category:Template/Include]]
+
 
  Usage: <nowiki>{{youtube-box|textbox_attributes|youtube_id|title text}}</nowiki>
+
== Usage ==
* '''textbox_attributes''' : attributes for [[template:textbox]], one of:
+
  <nowiki>{{youtube-box|textbox_attributes|youtube_id|title text|start time|end time}}</nowiki>
** '''bug''': videos about bugs and glitches
+
* '''legacy''' textbox_attributes:''' attributes for [[Template:Textbox]], one of:
** '''original''': videos of original tracks.
+
** '''legacy''' bug: videos about bugs and glitches
** '''tutorial''': tutorial videos.
+
** '''legacy''' original: videos of original tracks.
** empty for all other kinds of videos (standard video)
+
** '''legacy''' tutorial: tutorial videos.
* '''youtube_id''' : ID of youtube video
+
** '''unused''' for all videos
* '''title text''' : text of header line
+
* '''youtube_id:''' ID of YouTube video
 +
* '''description text:''' text of description line
 +
* '''start time:''' time in seconds of when the video should start
 +
* '''end time:''' time in seconds of when the video should end
  
 
== Examples ==
 
== Examples ==
 
<pre><nowiki>
 
<pre><nowiki>
{{youtube-box||3T7ieq27WMc|[[N64 Yoshi Valley]]}}
+
{{youtube-box||3T7ieq27WMc|[[N64 Yoshi Valley]]|160|170}}
{{youtube-box|bug|3T7ieq27WMc|bug}}
+
{{youtube-box|bug|3T7ieq27WMc|bug}}
{{youtube-box|original|3T7ieq27WMc|original}}
+
{{youtube-box|original|3T7ieq27WMc|original}}
{{youtube-box|tutorial|3T7ieq27WMc|tutorial]}}
+
{{youtube-box|tutorial|3T7ieq27WMc|tutorial|76}}
 
</nowiki></pre>
 
</nowiki></pre>
  
{{youtube-box||3T7ieq27WMc|[[N64 Yoshi Valley]]}}
+
{{youtube-box||3T7ieq27WMc|[[N64 Yoshi Valley]]|160|170}}
 
{{youtube-box|bug|3T7ieq27WMc|bug}}
 
{{youtube-box|bug|3T7ieq27WMc|bug}}
 
{{youtube-box|original|3T7ieq27WMc|original}}
 
{{youtube-box|original|3T7ieq27WMc|original}}
{{youtube-box|tutorial|3T7ieq27WMc|tutorial}}
+
{{youtube-box|tutorial|3T7ieq27WMc|tutorial|76}}
</noinclude>
+
{{#evt:service=youtubelazy|id=3T7ieq27WMc|alignment=center|urlargs=showinfo=1&vq=highres&border=0&autoplay=0&fs=1&hd=1&version=3&rel=0|autoresize=1}}
 +
[[Category:Template/Include]]</noinclude>

Latest revision as of 16:48, 2 May 2022


Usage

{{youtube-box|textbox_attributes|youtube_id|title text|start time|end time}}
  • legacy textbox_attributes: attributes for Template:Textbox, one of:
    • legacy bug: videos about bugs and glitches
    • legacy original: videos of original tracks.
    • legacy tutorial: tutorial videos.
    • unused for all videos
  • youtube_id: ID of YouTube video
  • description text: text of description line
  • start time: time in seconds of when the video should start
  • end time: time in seconds of when the video should end

Examples

{{youtube-box||3T7ieq27WMc|[[N64 Yoshi Valley]]|160|170}}
{{youtube-box|bug|3T7ieq27WMc|bug}}
{{youtube-box|original|3T7ieq27WMc|original}}
{{youtube-box|tutorial|3T7ieq27WMc|tutorial|76}}
bug
original
tutorial
EmbedVideo does not recognize the video service "youtubelazy".