Difference between revisions of "Template:blog"
(Another example tweak, just to make (more) obvious that the 0th's zero doesn't somehow come from the URL end-number) |
(Thank you IP! This was even more than i wanted! Since the deletion of an article is extremely rare, i wanted to type anything in the template without the cell becoming blue. This should work. Also, removed examples of how it shouldn't be used.) |
||
| Line 1: | Line 1: | ||
| − | <includeonly> data-sort-value="{{#expr:{{formatnum:{{{1|0}}}|R}}}}" {{#if:{{{ | + | <includeonly> data-sort-value="{{#expr:{{formatnum:{{{1|0}}}|R}}}}" {{#if:{{{notAvailable|}}}||style="background-color:#cceeff;"}}<!--Featured in the [[what if? (blog)|''what if?'' blog]], |
Start -->|'''{{ordinal|{{{1|0}}}}}''' blog article{{#if:{{{2|}}}|<!-- | Start -->|'''{{ordinal|{{{1|0}}}}}''' blog article{{#if:{{{2|}}}|<!-- | ||
| Line 7: | Line 7: | ||
If late or early: -->{{#if:{{{5|}}}|<br>''({{{5|}}})''}}<!-- | If late or early: -->{{#if:{{{5|}}}|<br>''({{{5|}}})''}}<!-- | ||
| − | + | Not available anymore: -->{{#if:{{{notAvailable|}}}|<br>({{{notAvailable}}})</includeonly><noinclude><!-- | |
-->Used in the [[What If? chapters|''what if?'' index]], to mark the article number, date of release, and how late/early the article was. It also colors the cell blue. For the books and the YouTube videos, use {{template|book}} instead. The number is required, and the date is always needed if known. | -->Used in the [[What If? chapters|''what if?'' index]], to mark the article number, date of release, and how late/early the article was. It also colors the cell blue. For the books and the YouTube videos, use {{template|book}} instead. The number is required, and the date is always needed if known. | ||
| Line 15: | Line 15: | ||
*If there is no valid ARTICLE-NUMBER, for some reason, it becomes the 'zeroth' blog article. | *If there is no valid ARTICLE-NUMBER, for some reason, it becomes the 'zeroth' blog article. | ||
*Date details are optional, but require ''at least'' a prior blank ARTICLE-NUMBER field | *Date details are optional, but require ''at least'' a prior blank ARTICLE-NUMBER field | ||
| − | *LATE-OR-EARLY is optional ( | + | *</nowiki><font color="SeaGreen">'''''LATE-OR-EARLY'''''</font> is optional (not needed if the article came out exactly 7d after the previous one) but requires all prior fields (which can be left blank) |
| − | If the blog | + | If the blog article is not available from the official website, append a note to the named <code>notAvailable=</code> parameter. This will prevent the cell from becoming blue. This does not depend upon any other details. |
| − | <nowiki>{{blog|ARTICLE-NUMBER|YYYY|MM|DD|</nowiki> | + | <nowiki>{{blog|ARTICLE-NUMBER|YYYY|MM|DD|</nowiki>LATE-OR-EARLY|<font color="SeaGreen">notAvailable='''''URL'''''</font>}} |
===Examples=== | ===Examples=== | ||
| − | <nowiki>{{blog|69| | + | <nowiki>{{blog|69|2019|12|31|1m 19d late}}</nowiki> |
'''''Produces:''''' | '''''Produces:''''' | ||
| − | {{blog|69| | + | {{blog|69|2019|12|31|1m 19d late}} |
and | and | ||
| − | <nowiki>{{blog|69| | + | <nowiki>{{blog|69|2011|11|24}}</nowiki> |
'''''Produces:''''' | '''''Produces:''''' | ||
| − | {{blog|69| | + | {{blog|69|2011|11|24}} |
and | and | ||
| Line 43: | Line 43: | ||
{{blog|69}} | {{blog|69}} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
and | and | ||
| Line 62: | Line 54: | ||
and | and | ||
| − | <nowiki>{{blog|69|YYYY|MM|DD|1m 19d late| | + | <nowiki>{{blog|69|YYYY|MM|DD|1m 19d late|notAvailable=Article published by accident and deleted. [[what if? (blog)#top|Learn more]]}}</nowiki> |
'''''Produces:''''' | '''''Produces:''''' | ||
| − | {{blog|69|YYYY|MM|DD|1m 19d late| | + | {{blog|69|YYYY|MM|DD|1m 19d late|notAvailable=Article published by accident and deleted. [[what if? (blog)#top|Learn more]]}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
{| class="sortable wikitable" | {| class="sortable wikitable" | ||
| Line 105: | Line 90: | ||
|''"How much Force power can Yoda output?"'' | |''"How much Force power can Yoda output?"'' | ||
|Yoda can output about 19.2 kilowatts, or 25 horsepower. "Yoda power" would cost about $2/hour. | |Yoda can output about 19.2 kilowatts, or 25 horsepower. "Yoda power" would cost about $2/hour. | ||
| − | |{{blog| | + | |{{blog|4207}} |
| | | | ||
| | | | ||
| Line 137: | Line 122: | ||
|''"What if an article was, for some reason, deleted?"'' | |''"What if an article was, for some reason, deleted?"'' | ||
|If the vacuum were on the bottom half, it would explode, but if it were on the top half, the air rushes in and it becomes normal water. | |If the vacuum were on the bottom half, it would explode, but if it were on the top half, the air rushes in and it becomes normal water. | ||
| − | |{{blog|9876|2061|07|28| | + | |{{blog|9876|2061|07|28|notAvailable=Article published by accident and deleted. [[what if? (blog)#top|Learn more]]}}}} |
| | | | ||
| | | | ||
|} | |} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> | ||
Revision as of 12:08, 1 February 2025
Used in the what if? index, to mark the article number, date of release, and how late/early the article was. It also colors the cell blue. For the books and the YouTube videos, use {{book}} instead. The number is required, and the date is always needed if known.
Usage
{{blog|ARTICLE-NUMBER|YYYY|MM|DD|LATE-OR-EARLY}}
- If there is no valid ARTICLE-NUMBER, for some reason, it becomes the 'zeroth' blog article.
- Date details are optional, but require at least a prior blank ARTICLE-NUMBER field
- </nowiki>LATE-OR-EARLY is optional (not needed if the article came out exactly 7d after the previous one) but requires all prior fields (which can be left blank)
If the blog article is not available from the official website, append a note to the named notAvailable= parameter. This will prevent the cell from becoming blue. This does not depend upon any other details.
{{blog|ARTICLE-NUMBER|YYYY|MM|DD|LATE-OR-EARLY|notAvailable=URL}}
Examples
{{blog|69|2019|12|31|1m 19d late}}
Produces:
data-sort-value="69" style="background-color:#cceeff;"|
69th blog article, on 2019‑12‑31
(1m 19d late)
and
{{blog|69|2011|11|24}}
Produces:
data-sort-value="69" style="background-color:#cceeff;"|
69th blog article, on 2011‑11‑24
and
{{blog|69}}
Produces:
data-sort-value="69" style="background-color:#cceeff;"|
69th blog article
and
{{blog|||||Very late!}}
Produces:
data-sort-value="" style="background-color:#cceeff;"|
0th blog article
(Very late!)
and
{{blog|69|YYYY|MM|DD|1m 19d late|notAvailable=Article published by accident and deleted. [[what if? (blog)#top|Learn more]]}}
Produces:
data-sort-value="69" |
69th blog article, on YYYY‑MM‑DD
(1m 19d late)
(Article published by accident and deleted. Learn more)
| Thumbnail | Title | Reader's question | Randall's answer | Blog | Books | YouTube |
|---|---|---|---|---|---|---|
| Relativistic Baseball | "What would happen if you tried to hit a baseball pitched at 90% the speed of light?" | The ball would create plasma and reach home plate by about 70 nanoseconds. The result would be some kind of nuclear explosion, destroying everything about a mile from the field. A ruling of "hit by pitch" could be interpreted in this situation. |
8th blog article, on 2012‑07‑10 |
What If?, Chapter 2 |
5th video, on 2024‑02‑06: What if you threw a baseball at nearly light speed? | |
| 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. The odds of guessing correctly on every question would be less than the odds of every ex-living president at that time and the main cast of Firefly getting struck by lightning on the same day. |
69th blog article, on YYYY‑MM‑DD |
|||
| Yoda | "How much Force power can Yoda output?" | Yoda can output about 19.2 kilowatts, or 25 horsepower. "Yoda power" would cost about $2/hour. |
4,207th blog article |
|||
| A Mole of Moles | "What would happen if you were to gather a mole (unit of measurement) of moles (the small furry critter) in one place?" | As a mole is such a high number this would be tricky. They would condense into a pressurized sphere of meat that would freeze and occasionally explode from gases. |
4th blog article, on 2025‑07‑24 |
|||
| Robot Apocalypse | "What if there was a robot apocalypse? How long would humanity last?" | Humanity would survive if the robots cared about keeping themselves alive as well. If not, then we would all die. |
56th blog article, on 2012‑07‑31 |
|||
| Glass Half Empty | "What if a glass of water was, all of a sudden, literally half empty?" | If the vacuum were on the bottom half, it would explode, but if it were on the top half, the air rushes in and it becomes normal water. |
100th blog article, on 2012‑08‑07 |
|||
| Test 'removed' article (#9876) | "What if an article was, for some reason, deleted?" | If the vacuum were on the bottom half, it would explode, but if it were on the top half, the air rushes in and it becomes normal water. |
9,876th blog article, on 2061‑07‑28 |
