Template:Infobox season: Difference between revisions
From Golly.Life Wiki
No edit summary |
No edit summary |
||
| 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 = {{#if: {{#var:champion_abbr}}|{{Main Page Thumbnail|{{{champion_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{champion_abbr}}}}} logo|{{TeamAbbrToName|{{{champion_abbr}}}}}|size=75}}{{clear}}[[{{TeamAbbrToName|{{{champion_abbr}}}}}]]|}} | ||
}} | }} | ||
| Line 113: | Line 113: | ||
| hot_league_winner_abbr = SFBS | | hot_league_winner_abbr = SFBS | ||
| cold_league_winner_abbr = LBFB | | 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 | |||
}} | |||
-------------------------- | |||
Now if we leave out some team abbreviations, it should be gracefully handled: | |||
{{Infobox season | |||
| season = 1 | |||
| era = Indifference | |||
| start_date = January 1, 2020 | |||
| end_date = January 1, 2021 | |||
| hot_league_seed1_abbr = SFBS | | hot_league_seed1_abbr = SFBS | ||
Revision as of 08:54, 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 | |||||||||
| |||||||||
| |||||||||