Difference between revisions of "Template:Infobox season"
From Golly.Life Wiki
| (One intermediate revision by the same user not shown) | |||
| Line 53: | Line 53: | ||
| 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}}}}}]]| }} | | 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 94: | Line 88: | ||
| cold_league_seed3_abbr = TB | | cold_league_seed3_abbr = TB | ||
| cold_league_seed4_abbr = SS | | cold_league_seed4_abbr = SS | ||
| − | |||
| − | |||
| − | |||
}} | }} | ||
</nowiki> | </nowiki> | ||
| Line 123: | Line 114: | ||
| cold_league_seed3_abbr = TB | | cold_league_seed3_abbr = TB | ||
| cold_league_seed4_abbr = SS | | cold_league_seed4_abbr = SS | ||
| − | |||
| − | |||
| − | |||
}} | }} | ||
| Line 148: | Line 136: | ||
| cold_league_seed3_abbr = TB | | cold_league_seed3_abbr = TB | ||
| cold_league_seed4_abbr = SS | | cold_league_seed4_abbr = SS | ||
| − | |||
| − | |||
| − | |||
}} | }} | ||
Latest revision as of 02:27, 28 December 2022
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
}}
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 | |||||||||
| |||||||||
| |||||||||
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 | |||||||||
| |||||||||
| |||||||||