Difference between revisions of "Template:Infobox season"
From Golly.Life Wiki
| Line 19: | Line 19: | ||
| header3 = Championship | | header3 = Championship | ||
| data4 = {{Infobox | subbox = yes | | data4 = {{Infobox | subbox = yes | ||
| − | | label1 = Golly Champion | data1 = {{Main Page Thumbnail|{{{champion_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{champion_abbr}}}}} logo|{{TeamAbbrToName|{{{champion_abbr}}}}}|size=75}}{{clear}}[[{{TeamAbbrToName|{{{champion_abbr}}}}}]] | + | | label1 = Golly Champion | data1 = {{Main Page Thumbnail|{{{champion_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{champion_abbr}}}}} logo|{{TeamAbbrToName|{{{champion_abbr}}}}}|size=75}}{{clear}}[[{{TeamAbbrToName|{{{champion_abbr|}}}}}]] |
}} | }} | ||
| header5 = Pennants | | header5 = Pennants | ||
| data6 = {{Infobox | subbox = yes | | data6 = {{Infobox | subbox = yes | ||
| − | | label1 = Cold League | data1 = {{Main Page Thumbnail|{{{cold_league_winner_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{cold_league_winner_abbr}}}}} logo|{{TeamAbbrToName|{{{cold_league_winner_abbr}}}}}|size=75}}{{clear}}[[{{TeamAbbrToName|{{{cold_league_winner_abbr}}}}}]] | + | | label1 = Cold League | data1 = {{Main Page Thumbnail|{{{cold_league_winner_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{cold_league_winner_abbr}}}}} logo|{{TeamAbbrToName|{{{cold_league_winner_abbr}}}}}|size=75}}{{clear}}[[{{TeamAbbrToName|{{{cold_league_winner_abbr|}}}}}]] |
| − | | label2 = Hot League | data2 = {{Main Page Thumbnail|{{{hot_league_winner_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{hot_league_winner_abbr}}}}} logo|{{TeamAbbrToName|{{{hot_league_winner_abbr}}}}}|size=75}}{{clear}}[[{{TeamAbbrToName|{{{hot_league_winner_abbr}}}}}]] | + | | label2 = Hot League | data2 = {{Main Page Thumbnail|{{{hot_league_winner_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{hot_league_winner_abbr}}}}} logo|{{TeamAbbrToName|{{{hot_league_winner_abbr}}}}}|size=75}}{{clear}}[[{{TeamAbbrToName|{{{hot_league_winner_abbr|}}}}}]] |
}} | }} | ||
Revision as of 09:23, 6 February 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 | |||||||||
| |||||||||
| Championship | |||||||||
| |||||||||
| Pennants | |||||||||
| |||||||||
| Cold League Seeds | |||||||||
| |||||||||
| Hot League Seeds | |||||||||
| |||||||||
| Timeline | |||||||||
| |||||||||
| Divination | |||||||||
| |||||||||
| |||||||||
Now if we leave out some team abbreviations, it should be gracefully handled:
| Golly Season 1 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
|
Season 1 | |||||||||
| Season Dates | |||||||||
| |||||||||
| Championship | |||||||||
| |||||||||
| Pennants | |||||||||
| |||||||||
| Cold League Seeds | |||||||||
| |||||||||
| Hot League Seeds | |||||||||
| |||||||||
| Timeline | |||||||||
| |||||||||
| Divination | |||||||||
| |||||||||
| |||||||||