Template:SBE ByLength Row
From Homestar Runner Wiki
(Difference between revisions)
(new formatting template for Strong Bad Email By Length) |
(sort eras chronologically) |
||
(includes 4 intermediate revisions) | |||
Line 2: | Line 2: | ||
{{#if:{{{header|}}} | {{#if:{{{header|}}} | ||
| <!-- header --> | | <!-- header --> | ||
- | {{{!}} class="wikitable sortable" | + | {{{!}} class="wikitable sortable" style="width:75% |
{{!}}- bgcolor=#eeeeee | {{!}}- bgcolor=#eeeeee | ||
- | ! Rank !! Runtime<br><small>(sort by Era)</small>!! with Easter Eggs<br><small>(sort by Era)</small>!! Email | + | ! Rank {{-}} Era !! Runtime<br><small>(sort by Era)</small>!! with Easter Eggs<br><small>(sort by Era)</small>!! Email |
| <!-- else --> | | <!-- else --> | ||
{{#if:{{{footer|}}} | {{#if:{{{footer|}}} | ||
Line 11: | Line 11: | ||
| <!-- else --> | | <!-- else --> | ||
{{!}}- | {{!}}- | ||
- | {{!}} #{{vcount|emails}} | + | {{!}} #{{vcount|emails}} {{-}} {{{era}}} |
- | {{!}} <span style="display:none">{{{era}}-</span>{{tally time|{{{era}}}|{{{vtime}}}}} {{{vtime_extra|}}} | + | {{!}} <span style="display:none">{{#switch:{{{era}}}|tandy=01|compy=02|lappy=03|corpy=04|compe=05|lappier=06|dvd=07|#default=99}}-</span>{{tally time|{{{era}}}|{{{vtime}}}}} {{{vtime_extra|}}} |
- | {{!}} <span style="display:none">{{{era}}-</span>{{tally time|{{{era}}}-ee|{{{eetime}}}}} {{{eetime_extra|}}} | + | {{!}} <span style="display:none">{{#switch:{{{era}}}|tandy=01|compy=02|lappy=03|corpy=04|compe=05|lappier=06|dvd=07|#default=99}}-</span>{{tally time|{{{era}}}-ee|{{{eetime}}}}} {{{eetime_extra|}}} |
- | {{!}} {{#if: {{{dvd|}}}|DVD|}} | + | {{!}} <span style="display:none">{{#if: {{{dvd|}}}|DVD-|}}{{#expr: {{{index}}}+150000}}.000</span>{{#if:{{{record|}}}|'''|}}{{#if: {{{dvd|}}}|{{{dvd}}}|{{{index}}}.}} [[{{{title}}}]]{{#if:{{{record|}}}|'''|}} {{{title_extra|}}} |
}}}} | }}}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
+ | ; Purpose | ||
* This template is used ''exclusively'' in the [[Strong Bad Email By Length]] page. | * This template is used ''exclusively'' in the [[Strong Bad Email By Length]] page. | ||
+ | * It facilitates the following: | ||
+ | ** era-based sorting of both regular and w/Easter Egg times | ||
+ | ** correct sorting of DVD items (w/ minor update to the source) | ||
+ | ** Easy updating of headers and columns | ||
+ | |||
+ | ; Usage | ||
<pre> | <pre> | ||
+ | {{SBE ByLength Row|header=1}} | ||
+ | |||
+ | {{SBE ByLength Row|era=compe|vtime=...}} | ||
+ | {{SBE ByLength Row|era=compe|vtime=...}} | ||
+ | |||
+ | {{SBE ByLength Row|footer=1}} | ||
+ | </pre> | ||
+ | |||
+ | ; Parameters | ||
+ | * header {{--}} indicates that the current "row" is actually the start of the table. | ||
+ | * footer {{--}} indicates that the current "row" is actually the end of the table. | ||
+ | * era {{--}} indicates what computer era the email belongs to | ||
+ | ** Valid era codes are: tandy, compy, lappy, corpy, compe, lappier and dvd | ||
+ | * vtime {{--}} total toon time (in seconds) without Easter Eggs | ||
+ | ** vtime_extra (optional) {{--}} extra text to append after toon time | ||
+ | * eetime {{--}} total toon time (in seconds) with Easter Eggs | ||
+ | ** eetime_extra (optional) {{--}} extra text to append after easter egg toon time | ||
+ | * index {{--}} email number (or DVD email number) | ||
+ | * title {{--}} email title (used to link to wiki page) | ||
+ | ** title_extra (optional) {{--}} extra text to append after title | ||
+ | * record (optional) {{--}} if set, the title is highlighted to indicate a record of some kind | ||
+ | * dvd (optional) {{--}} this indicates that the toon is a DVD toon | ||
+ | |||
+ | |||
+ | ; Row Example | ||
+ | |||
+ | Our original source row: | ||
+ | <pre style="white-space: pre-wrap; word-break: normal; overflow: scroll;"> | ||
| #{{vcount|emails}} || {{tally time|compe|{{hmss|5|20}}}} (Flash)<br>4:38 (YouTube)<!-- NOTE: the YT version is not auto-tallied to keep things simple.--> || {{tally time|compe-ee|{{hmss|5|48}}}} || <span style="display:none">203</span>203. [[independent]] | | #{{vcount|emails}} || {{tally time|compe|{{hmss|5|20}}}} (Flash)<br>4:38 (YouTube)<!-- NOTE: the YT version is not auto-tallied to keep things simple.--> || {{tally time|compe-ee|{{hmss|5|48}}}} || <span style="display:none">203</span>203. [[independent]] | ||
</pre> | </pre> | ||
Would turn into: | Would turn into: | ||
- | <pre> | + | <pre style="white-space: pre-wrap; word-break: normal; overflow: scroll;"> |
{{SBE ByLength Row|era=compe|vtime={{hmss|5|20}}|eetime={{hmss|5|48}}|index=203|title=independent|title_extra=|record=|vtime_extra=(Flash)<br>4:38 (YouTube)<!-- NOTE: the YT version is not auto-tallied to keep things simple.-->}} | {{SBE ByLength Row|era=compe|vtime={{hmss|5|20}}|eetime={{hmss|5|48}}|index=203|title=independent|title_extra=|record=|vtime_extra=(Flash)<br>4:38 (YouTube)<!-- NOTE: the YT version is not auto-tallied to keep things simple.-->}} | ||
</pre> | </pre> |
Current revision as of 15:52, 21 April 2025
- Purpose
- This template is used exclusively in the Strong Bad Email By Length page.
- It facilitates the following:
- era-based sorting of both regular and w/Easter Egg times
- correct sorting of DVD items (w/ minor update to the source)
- Easy updating of headers and columns
- Usage
{{SBE ByLength Row|header=1}} {{SBE ByLength Row|era=compe|vtime=...}} {{SBE ByLength Row|era=compe|vtime=...}} {{SBE ByLength Row|footer=1}}
- Parameters
- header — indicates that the current "row" is actually the start of the table.
- footer — indicates that the current "row" is actually the end of the table.
- era — indicates what computer era the email belongs to
- Valid era codes are: tandy, compy, lappy, corpy, compe, lappier and dvd
- vtime — total toon time (in seconds) without Easter Eggs
- vtime_extra (optional) — extra text to append after toon time
- eetime — total toon time (in seconds) with Easter Eggs
- eetime_extra (optional) — extra text to append after easter egg toon time
- index — email number (or DVD email number)
- title — email title (used to link to wiki page)
- title_extra (optional) — extra text to append after title
- record (optional) — if set, the title is highlighted to indicate a record of some kind
- dvd (optional) — this indicates that the toon is a DVD toon
- Row Example
Our original source row:
| #{{vcount|emails}} || {{tally time|compe|{{hmss|5|20}}}} (Flash)<br>4:38 (YouTube)<!-- NOTE: the YT version is not auto-tallied to keep things simple.--> || {{tally time|compe-ee|{{hmss|5|48}}}} || <span style="display:none">203</span>203. [[independent]]
Would turn into:
{{SBE ByLength Row|era=compe|vtime={{hmss|5|20}}|eetime={{hmss|5|48}}|index=203|title=independent|title_extra=|record=|vtime_extra=(Flash)<br>4:38 (YouTube)<!-- NOTE: the YT version is not auto-tallied to keep things simple.-->}}
- Uses:
- {{tally time}}
- {{vcount}}