Difference between revisions of "Template:yt"
Firestar233 (talk | contribs) m (making format more consistent in docs) |
Firestar233 (talk | contribs) m (protected the url parameter from misinputs) |
||
| Line 1: | Line 1: | ||
| − | <includeonly> data-sort-value="{{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}" style="background-color: #ffc7c7;"|{{#if: {{{6|}}}|'''{{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}}}{{#ifexpr:10<=abs({{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}) mod 100 and abs({{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}) mod 100<=20|<sup>th</sup>|{{#switch:{{#expr:abs({{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}) mod 10}}|1=<sup>st</sup>|2=<sup>nd</sup>|3=<sup>rd</sup>|<sup>th</sup>}}}}''' video, on {{#time:Y‑m‑d|{{{2|}}}-{{{3|}}}-{{{4|}}}}}: <span class="plainlinks">'''[https://www.youtube.com/watch?v={{{5|}}} {{{6|}}}]'''</span>|<span class="plainlinks">[https://www.youtube.com/watch?v={{{5|}}} '''{{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}}}{{#ifexpr:10<=abs({{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}) mod 100 and abs({{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}) mod 100<=20|<sup>th</sup>|{{#switch:{{#expr:abs({{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}) mod 10}}|1=<sup>st</sup>|2=<sup>nd</sup>|3=<sup>rd</sup>|<sup>th</sup>}}}}''' video, on {{#time:Y‑m‑d|{{{2|}}}-{{{3|}}}-{{{4|}}}}}]</span>}}</includeonly><noinclude><!-- | + | <includeonly> data-sort-value="{{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}" style="background-color: #ffc7c7;"|{{#if: {{{6|}}}|'''{{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}}}{{#ifexpr:10<=abs({{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}) mod 100 and abs({{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}) mod 100<=20|<sup>th</sup>|{{#switch:{{#expr:abs({{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}) mod 10}}|1=<sup>st</sup>|2=<sup>nd</sup>|3=<sup>rd</sup>|<sup>th</sup>}}}}''' video, on {{#time:Y‑m‑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://}} '''{{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}}}{{#ifexpr:10<=abs({{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}) mod 100 and abs({{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}) mod 100<=20|<sup>th</sup>|{{#switch:{{#expr:abs({{formatnum:{{#if:{{{1|}}}|{{{1|}}}|0}}|R}}) mod 10}}|1=<sup>st</sup>|2=<sup>nd</sup>|3=<sup>rd</sup>|<sup>th</sup>}}}}''' video, on {{#time:Y‑m‑d|{{{2|}}}-{{{3|}}}-{{{4|}}}}}]</span>}}</includeonly><noinclude><!-- |
-->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. | ||
Revision as of 03:26, 30 January 2025
Used for what if? YouTube videos in the what if? index. The title of the video is always required and recommended.
Usage
{{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
{{yt|2|2022|12|31|2LSyNhb5Y|What if everyone pointed a laser at the moon?}}
Produces:
| This template has been retired and is no longer in use. Use {{book}} instead. |
Example
{{yt|12|2019|2|22|JqFSGkFPipM}}
Produces:
| 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 | "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". |
| ||
| 2 | 2012‑07‑10 0w later |
|
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. |
| ||
| 3 | 2012‑07‑17 1w later |
|
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. |
|
