Difference between revisions of "Template:Infobox season"
From Golly.Life Wiki
| Line 39: | Line 39: | ||
| header9 = Cold League Seeds | | header9 = Cold League Seeds | ||
| data10 = {{Infobox | subbox = yes | | data10 = {{Infobox | subbox = yes | ||
| − | | label1 = Seed 1 | data1 = {{Main Page Thumbnail|{{{cold_league_seed1_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{cold_league_seed1_abbr}}}}} logo|{{TeamAbbrToName|{{{cold_league_seed1_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{cold_league_seed1_abbr}}}}}]] | + | | label1 = Seed 1 | data1 = {{#if:{{{cold_league_seed1_abbr|}}}|{{Main Page Thumbnail|{{{cold_league_seed1_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{cold_league_seed1_abbr}}}}} logo|{{TeamAbbrToName|{{{cold_league_seed1_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{cold_league_seed1_abbr}}}}}]]| }} |
| − | | label2 = Seed 2 | data2 = {{Main Page Thumbnail|{{{cold_league_seed2_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{cold_league_seed2_abbr}}}}} logo|{{TeamAbbrToName|{{{cold_league_seed2_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{cold_league_seed2_abbr}}}}}]] | + | | label2 = Seed 2 | data2 = {{#if:{{{cold_league_seed2_abbr|}}}|{{Main Page Thumbnail|{{{cold_league_seed2_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{cold_league_seed2_abbr}}}}} logo|{{TeamAbbrToName|{{{cold_league_seed2_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{cold_league_seed2_abbr}}}}}]]| }} |
| − | | label3 = Seed 3 | data3 = {{Main Page Thumbnail|{{{cold_league_seed3_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{cold_league_seed3_abbr}}}}} logo|{{TeamAbbrToName|{{{cold_league_seed3_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{cold_league_seed3_abbr}}}}}]] | + | | label3 = Seed 3 | data3 = {{#if:{{{cold_league_seed3_abbr|}}}|{{Main Page Thumbnail|{{{cold_league_seed3_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{cold_league_seed3_abbr}}}}} logo|{{TeamAbbrToName|{{{cold_league_seed3_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{cold_league_seed3_abbr}}}}}]]| }} |
| − | | label4 = Seed 4 | data4 = {{Main Page Thumbnail|{{{cold_league_seed4_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{cold_league_seed4_abbr}}}}} logo|{{TeamAbbrToName|{{{cold_league_seed4_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{cold_league_seed4_abbr}}}}}]] | + | | label4 = Seed 4 | data4 = {{#if:{{{cold_league_seed4_abbr|}}}|{{Main Page Thumbnail|{{{cold_league_seed4_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{cold_league_seed4_abbr}}}}} logo|{{TeamAbbrToName|{{{cold_league_seed4_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{cold_league_seed4_abbr}}}}}]]| }} |
}} | }} | ||
| Line 48: | Line 48: | ||
| header11 = Hot League Seeds | | header11 = Hot League Seeds | ||
| data12 = {{Infobox | subbox = yes | | data12 = {{Infobox | subbox = yes | ||
| − | | label1 = Seed 1 | data1 = {{Main Page Thumbnail|{{{hot_league_seed1_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{hot_league_seed1_abbr}}}}} logo|{{TeamAbbrToName|{{{hot_league_seed1_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{hot_league_seed1_abbr}}}}}]] | + | | label1 = Seed 1 | data1 = {{#if:{{{hot_league_seed1_abbr|}}}|{{Main Page Thumbnail|{{{hot_league_seed1_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{hot_league_seed1_abbr}}}}} logo|{{TeamAbbrToName|{{{hot_league_seed1_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{hot_league_seed1_abbr}}}}}]]| }} |
| − | | label2 = Seed 2 | data2 = {{Main Page Thumbnail|{{{hot_league_seed2_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{hot_league_seed2_abbr}}}}} logo|{{TeamAbbrToName|{{{hot_league_seed2_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{hot_league_seed2_abbr}}}}}]] | + | | label2 = Seed 2 | data2 = {{#if:{{{hot_league_seed2_abbr|}}}|{{Main Page Thumbnail|{{{hot_league_seed2_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{hot_league_seed2_abbr}}}}} logo|{{TeamAbbrToName|{{{hot_league_seed2_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{hot_league_seed2_abbr}}}}}]]| }} |
| − | | label3 = Seed 3 | data3 = {{Main Page Thumbnail|{{{hot_league_seed3_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{hot_league_seed3_abbr}}}}} logo|{{TeamAbbrToName|{{{hot_league_seed3_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{hot_league_seed3_abbr}}}}}]] | + | | label3 = Seed 3 | data3 = {{#if:{{{hot_league_seed3_abbr}}}|{{Main Page Thumbnail|{{{hot_league_seed3_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{hot_league_seed3_abbr}}}}} logo|{{TeamAbbrToName|{{{hot_league_seed3_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{hot_league_seed3_abbr}}}}}]]| }} |
| − | | label4 = Seed 4 | data4 = {{Main Page Thumbnail|{{{hot_league_seed4_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{hot_league_seed4_abbr}}}}} logo|{{TeamAbbrToName|{{{hot_league_seed4_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{hot_league_seed4_abbr}}}}}]] | + | | label4 = Seed 4 | data4 = {{#if:{{{hot_league_seed4_abbr|}}}|{{Main Page Thumbnail|{{{hot_league_seed4_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{hot_league_seed4_abbr}}}}} logo|{{TeamAbbrToName|{{{hot_league_seed4_abbr}}}}}|size=45}}{{clear}}[[{{TeamAbbrToName|{{{hot_league_seed4_abbr}}}}}]]| }} |
}} | }} | ||
| Line 139: | Line 139: | ||
| end_date = January 1, 2021 | | end_date = January 1, 2021 | ||
| − | | hot_league_seed1_abbr = | + | | hot_league_seed1_abbr = |
| hot_league_seed2_abbr = DET | | hot_league_seed2_abbr = DET | ||
| hot_league_seed3_abbr = DECO | | hot_league_seed3_abbr = DECO | ||
| hot_league_seed4_abbr = SAC | | hot_league_seed4_abbr = SAC | ||
| − | | cold_league_seed1_abbr = | + | | cold_league_seed1_abbr = |
| cold_league_seed2_abbr = SDBA | | cold_league_seed2_abbr = SDBA | ||
| cold_league_seed3_abbr = TB | | cold_league_seed3_abbr = TB | ||
Revision as of 00:23, 2 March 2021
The {{Infobox season}} template is used to define an infobox for a Golly season.
Here is how you use it:
{{Infobox season
| season = 1
| era = Indifference
| start_date = January 1, 2020
| end_date = January 1, 2021
| champion_abbr = LBFB
| hot_league_winner_abbr = SFBS
| cold_league_winner_abbr = LBFB
| hot_league_seed1_abbr = SFBS
| hot_league_seed2_abbr = DET
| hot_league_seed3_abbr = DECO
| hot_league_seed4_abbr = SAC
| cold_league_seed1_abbr = LBFB
| cold_league_seed2_abbr = SDBA
| cold_league_seed3_abbr = TB
| cold_league_seed4_abbr = SS
| arcana = Knight of Cups
| title = Lord of Waves and Waters
}}
The {{Infobox season}} template will pass these arguments to the {{Infobox}} template, inserting the right bits of information in the right places to produce this:
| Golly Season 1 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
|
Season 1 | |||||||||
| Season Dates | |||||||||
| |||||||||
| Timeline | |||||||||
| |||||||||
| Championship | |||||||||
| |||||||||
| Pennants | |||||||||
| |||||||||
| Cold League Seeds | |||||||||
| |||||||||
| Hot League Seeds | |||||||||
| |||||||||
| Divination | |||||||||
| |||||||||
| |||||||||
Now if we leave out some team abbreviations, it should be gracefully handled:
| Golly Season 1 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
|
Season 1 | |||||||||
| Season Dates | |||||||||
| |||||||||
| Timeline | |||||||||
| |||||||||
| Championship | |||||||||
| |||||||||
| Pennants | |||||||||
| |||||||||
| Cold League Seeds | |||||||||
| |||||||||
| Hot League Seeds | |||||||||
| |||||||||
| Divination | |||||||||
| |||||||||
| |||||||||