Template:Infobox season: Difference between revisions
From Golly.Life Wiki
(Created page with "<includeonly>{{Infobox | name = Golly Season {{{season}}} | abovestyle = background:#bbb; color:#272B30; | above = Golly Season {{{season}}} | image...") |
No edit summary |
||
| (40 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
| name = Golly Season {{{season}}} | | name = Golly Season {{{season}}} | ||
| abovestyle = background:# | | abovestyle = background:#aaa; color:#272B30; | ||
| above = Golly Season {{{season}}} | | above = Golly Season {{{season}}} | ||
| Line 7: | Line 7: | ||
| caption = Season {{{season}}} | | caption = Season {{{season}}} | ||
|headerstyle = background:# | |headerstyle = background:#aaa; color:#272B30; | ||
|labelstyle = background:#272B30; color:# | |labelstyle = background:#272B30; color:#aaa; | ||
|datastyle = background:#272B30; color:# | |datastyle = background:#272B30; color:#aaa; | ||
| header1 = Season Dates | | header1 = Season Dates | ||
| 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 = 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 = | | 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 = {{#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 = {{#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 = {{#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 = Hot League Seeds | |||
| 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}}}}}]]| }} | |||
| 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 58: | Line 73: | ||
| start_date = January 1, 2020 | | start_date = January 1, 2020 | ||
| end_date = January 1, 2021 | | end_date = January 1, 2021 | ||
| champion_abbr = LBFB | | 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 | |||
}} | }} | ||
</nowiki> | </nowiki> | ||
| Line 77: | Line 99: | ||
| start_date = January 1, 2020 | | start_date = January 1, 2020 | ||
| end_date = January 1, 2021 | | end_date = January 1, 2021 | ||
| champion_abbr = LBFB | | 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 | |||
}} | |||
-------------------------- | |||
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 | |||||||||
| |||||||||
| |||||||||