Template:SBE ByLength Row

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(this should help correctly sort any "X.5" indices)
(sort eras chronologically)
 
Line 12: Line 12:
{{!}}-
{{!}}-
{{!}} #{{vcount|emails}} {{-}} {{{era}}}
{{!}} #{{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|}}}  
{{!}} <span style="display:none">{{#if: {{{dvd|}}}|DVD-|}}{{#expr: {{{index}}}+150000}}.000</span>{{#if:{{{record|}}}|'''|}}{{#if: {{{dvd|}}}|{{{dvd}}}|{{{index}}}.}} [[{{{title}}}]]{{#if:{{{record|}}}|'''|}} {{{title_extra|}}}
{{!}} <span style="display:none">{{#if: {{{dvd|}}}|DVD-|}}{{#expr: {{{index}}}+150000}}.000</span>{{#if:{{{record|}}}|'''|}}{{#if: {{{dvd|}}}|{{{dvd}}}|{{{index}}}.}} [[{{{title}}}]]{{#if:{{{record|}}}|'''|}} {{{title_extra|}}}
}}}}
}}}}
Line 39: Line 39:
* footer {{--}} indicates that the current "row" is actually the end 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
* era {{--}} indicates what computer era the email belongs to
-
** Valid era codes are: tandy, compy, lappy, corpy, compe and lappier
+
** Valid era codes are: tandy, compy, lappy, corpy, compe, lappier and dvd
* vtime {{--}} total toon time (in seconds) without Easter Eggs
* vtime {{--}} total toon time (in seconds) without Easter Eggs
** vtime_extra (optional) {{--}} extra text to append after toon time
** vtime_extra (optional) {{--}} extra text to append after toon time

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.-->}}
Personal tools