Difference between revisions of "Template:yt"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(It didn't catch fire!)
m
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>style="background-color: #ffc7c7;"|{{#if: {{{6|}}}|'''{{#ifexpr:{{{1|0}}}<10|0}}{{#switch: {{{1|}}}|1=1<sup>st</sup>|2=2<sup>nd</sup>|3=3<sup>rd</sup>|#default={{{1}}}<sup>th</sup>}}''' video, on {{{2|}}}&#8209;{{{3|}}}&#8209;{{{4|}}}: <span class="plainlinks">'''[https://www.youtube.com/watch?v={{{5|}}} {{{6|}}}]'''</span>|<span class="plainlinks">[https://www.youtube.com/watch?v={{{5|}}} '''{{#ifexpr:{{{1|0}}}<10|0}}{{#switch: {{{1|}}}|1=1<sup>st</sup>|2=2<sup>nd</sup>|3=3<sup>rd</sup>|#default={{{1}}}<sup>th</sup>}}''' video, on {{{2|}}}&#8209;{{{3|}}}&#8209;{{{4|}}}]</span>}}</includeonly><noinclude><!--
+
<includeonly>{{notice2|'''This template has been retired and is no longer in use. Use {{template|book}} instead.'''}}</includeonly><noinclude><!--
  
THIS CODE IS BARELY HELD TOGETHER. I DON'T KNOW WHY IT WORKS.
 
  
 +
OLD TEMPLATE COMMENTED OUT, USE {{BOOK}}
 +
This is needed so that people don't accidentally use the old, out-of-date version.
  
EDITORS:
+
<includeonly> data-sort-value="{{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}" style="background-color: #ffc7c7;"|{{#if: {{{6|}}}|'''{{ordinal|{{{1|}}}}}''' video, on {{#time:Y&#8209;m&#8209;d|{{{2|}}}-{{{3|}}}-{{{4|}}}}}: <span class="plainlinks">'''[https://www.youtube.com/watch?v={{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{5|dQw4w9WgXcQ}}}|youtu.be/}}|youtube.com/watch?v=}}|www.}}|http://}}|https://}} {{{6|}}}]'''</span>|<span class="plainlinks">[https://www.youtube.com/watch?v={{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{5|dQw4w9WgXcQ}}}|youtu.be/}}|youtube.com/watch?v=}}|www.}}|http://}}|https://}} '''{{ordinal|{{{1|}}}}}''' video, on {{#time:Y&#8209;m&#8209;d|{{{2|}}}-{{{3|}}}-{{{4|}}}}}]</span>}}</includeonly><noinclude>
WHEN THERE ARE MORE THAN 99 VIDEOS, REPLACE THIS:
 
{{#ifexpr:{{{1|0}}}<10|0}}{{{1|}}}
 
  
WITH THIS:
+
-->{{notice|'''This template has been retired''' and is no longer in use. Use {{template|book}} instead.|image=warning!!.png}}
{{#ifexpr:{{{1|0}}}<10|00{{{1}}}|{{#ifexpr:{{{1|0}}}<100|0{{{1}}}|{{{1}}}}}}}
 
  
TO FIX THE SORTING ISSUE. This adds a third leading zero.
+
Previously used for [https://www.youtube.com/@xkcd_whatif/videos ''what if?'' YouTube videos] in the ''what if?'' index. The title of the video is always required and recommended.
 
 
 
 
 
 
 
 
-->Used for [https://www.youtube.com/@xkcd_whatif/videos ''what if?'' YouTube videos] in the ''what if?'' index. The title of the video is always required and recommended.
 
  
 
===Usage===
 
===Usage===
Line 26: Line 19:
  
 
  <span class="plainlinks">https://www.youtube.com/watch?v=<font color="SeaGreen">'''''3EI08o-IGYk'''''</font>
 
  <span class="plainlinks">https://www.youtube.com/watch?v=<font color="SeaGreen">'''''3EI08o-IGYk'''''</font>
  <span class="plainlinks">https://youtu.be/<font color="SeaGreen">'''''3EI08o-IGYk'''''</font>?si=gdSF3nIlctPPFbd2</span>
+
  <span class="plainlinks">https://youtu.be/<font color="SeaGreen">'''''3EI08o-IGYk'''''</font></span>
 
  <span class="plainlinks">https://youtu.be/<font color="SeaGreen">'''''3EI08o-IGYk'''''</font>?si=gdSF3nIlctPPFbd2</span>
 
  <span class="plainlinks">https://youtu.be/<font color="SeaGreen">'''''3EI08o-IGYk'''''</font>?si=gdSF3nIlctPPFbd2</span>
  
Line 39: Line 32:
  
 
===Example===
 
===Example===
  <nowiki>{{yt|2|2022|12|31|JqFSGkFPipM}}</nowiki>
+
  <nowiki>{{yt|12|2019|2|22|JqFSGkFPipM}}</nowiki>
  
 
Produces:
 
Produces:
  
  {{yt|3|2023|12|31|JqFSGkFPipM}}
+
  {{yt|12|2019|2|22|JqFSGkFPipM}}
  
  
Line 62: Line 55:
 
|-
 
|-
 
!3
 
!3
| 2012‑07‑17<br>1w later || [[File:Yoda.png|100px]] || '''{{what if|3|Yoda}}''' || ''"How much Force power can Yoda output?"'' || First regular release. From here on standard release day was Tuesday. It's about 19.2 kilowatts, or 25 horsepower. ||  {{yt|66|2022|12|31|2LSyizrk8-0|What if everyone exploded?}}
+
| 2012‑07‑17<br>1w later || [[File:Yoda.png|100px]] || '''{{what if|3|Yoda}}''' || ''"How much Force power can Yoda output?"'' || First regular release. From here on standard release day was Tuesday. It's about 19.2 kilowatts, or 25 horsepower. ||  {{yt|63|2022|1|31|2LSyizrk8-0|What if everyone exploded?}}
  
[[Category:Templates]]
+
[[Category:Templates]][[Category: Pages to delete]]</noinclude>
</noinclude>
 

Latest revision as of 17:43, 24 February 2025

warning!!.png This template has been retired and is no longer in use. Use {{book}} instead.

Previously used for what if? YouTube videos in the what if? index. The title of the video is always required and recommended.

Usage[edit]

{{yt|YT-NUMBER|YYYY|MM|DD|VIDEO-ID|VIDEO-TITLE}}

HOW TO GET THE VIDEO-ID:

1. Open the YouTube video and look at the link. it will look something like this:

https://www.youtube.com/watch?v=3EI08o-IGYk
https://youtu.be/3EI08o-IGYk
https://youtu.be/3EI08o-IGYk?si=gdSF3nIlctPPFbd2

2. The green part is the VIDEO-ID you need to use.

Example[edit]

{{yt|2|2022|12|31|2LSyNhb5Y|What if everyone pointed a laser at the moon?}}

Produces:

warning!!.png This template has been retired and is no longer in use. Use {{book}} instead.

Example[edit]

{{yt|12|2019|2|22|JqFSGkFPipM}}

Produces:

warning!!.png This template has been retired and is no longer in use. Use {{book}} instead.


N Date Thumbnail Title Reader's question Randall's answer
1 2012‑07‑10 Relativistic Baseball.png Relativistic Baseball "What would happen if you tried to hit a baseball pitched at 90% the speed of light?" The result would be some kind of nuclear explosion, and possibly a ruling of "hit by pitch".
warning!!.png This template has been retired and is no longer in use. Use {{book}} instead.
2 2012‑07‑10
0w later
SAT Guessing.png SAT Guessing "What if everyone who took the SAT guessed on every multiple‑choice question? How many perfect scores would there be?" No one would get a perfect score. No one would get a perfect score. No one would get a perfect score. No one would get a perfect score. No one would get a perfect score.
warning!!.png This template has been retired and is no longer in use. Use {{book}} instead.
3 2012‑07‑17
1w later
Yoda.png Yoda "How much Force power can Yoda output?" First regular release. From here on standard release day was Tuesday. It's about 19.2 kilowatts, or 25 horsepower.
warning!!.png This template has been retired and is no longer in use. Use {{book}} instead.