Template:Infobox season: Difference between revisions
From Golly.Life Wiki
No edit summary |
No edit summary |
||
| (14 intermediate revisions by the same user not shown) | |||
| Line 17: | Line 17: | ||
}} | }} | ||
| header3 = | | header3 = Timeline | ||
| | | data4 = {{Infobox | subbox = yes | ||
| label1 = | | labelstyle = width:50%; | ||
| label1 = Previous Season | |||
| data1 = {{#ifexpr:{{{season}}} > 1 |[[Season {{#expr:{{{season}}} - 1}}|◀◀ Season {{#expr:{{{season}}} - 1}}]]|}} | |||
| label2 = Next Season | |||
| data2 = [[Season {{#expr:{{{season}}} + 1}}|▶▶ Season {{#expr:{{{season}}} + 1}}]] | |||
}} | }} | ||
| header5 = | | header5 = Championship | ||
| data6 = {{Infobox | subbox = yes | | data6 = {{Infobox | subbox = yes | ||
| label1 = | | label1 = Golly Champion | data1 = {{#if:{{{champion_abbr|}}}|{{Main Page Thumbnail|{{{champion_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{champion_abbr}}}}} logo|{{TeamAbbrToName|{{{champion_abbr}}}}}|size=85}}{{clear}}[[{{TeamAbbrToName|{{{champion_abbr|}}}}}]]| }} | ||
}} | }} | ||
| header7 = | | header7 = Pennants | ||
| data8 = {{Infobox | subbox = yes | | data8 = {{Infobox | subbox = yes | ||
| label1 = | | label1 = Cold League | data1 = {{#if:{{{cold_league_winner_abbr|}}}|{{Main Page Thumbnail|{{{cold_league_winner_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{cold_league_winner_abbr}}}}} logo|{{TeamAbbrToName|{{{cold_league_winner_abbr}}}}}|size=60}}{{clear}}[[{{TeamAbbrToName|{{{cold_league_winner_abbr|}}}}}]]| }} | ||
| label2 = Hot League | data2 = {{#if:{{{hot_league_winner_abbr|}}}|{{Main Page Thumbnail|{{{hot_league_winner_abbr|GollyLogoTransparent}}}.png|{{TeamAbbrToName|{{{hot_league_winner_abbr}}}}} logo|{{TeamAbbrToName|{{{hot_league_winner_abbr}}}}}|size=60}}{{clear}}[[{{TeamAbbrToName|{{{hot_league_winner_abbr|}}}}}]]| }} | |||
| | |||
}} | }} | ||
| header9 = | | header9 = Cold League Seeds | ||
| data10 = {{Infobox | subbox = yes | | data10 = {{Infobox | subbox = yes | ||
| label1 = Seed 1 | data1 = {{Main Page Thumbnail|{{{ | | 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|{{{ | | 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|{{{ | | 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|{{{ | | 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}}}}}]]| }} | ||
}} | }} | ||
| header11 = | | header11 = Hot League Seeds | ||
| data12 = {{Infobox | subbox = yes | | data12 = {{Infobox | subbox = yes | ||
| 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}}}}}]]| }} | |||
| label1 = | | 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 = {{#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 = {{#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 | ||
}} | |||
-------------------------- | |||
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 = | ||
| | | hot_league_seed2_abbr = DET | ||
| hot_league_seed3_abbr = DECO | |||
| hot_league_seed4_abbr = SAC | |||
| cold_league_seed1_abbr = | |||
| cold_league_seed2_abbr = SDBA | |||
| cold_league_seed3_abbr = TB | |||
| 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 | |||||||||
| |||||||||
| |||||||||