Difference between revisions of "Template:Infobox season"
From Golly.Life Wiki
| Line 40: | Line 40: | ||
| data1 = {{#ifexpr:{{{season}}} > 1 |[[Season {{#expr:{{{season}}} - 1}}|◀◀ Season {{#expr:{{{season}}} - 1}}]]|}} | | data1 = {{#ifexpr:{{{season}}} > 1 |[[Season {{#expr:{{{season}}} - 1}}|◀◀ Season {{#expr:{{{season}}} - 1}}]]|}} | ||
| label2 = Next Season | | label2 = Next Season | ||
| − | | data2 = | + | | data2 = [[Season {{#expr:{{{season}}} + 1}}|▶▶ Season {{#expr:{{{season}}} + 1}}]] |
}} | }} | ||
Revision as of 05:51, 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 = [[Long Beach Flightless Birds]]
| champion_abbr = LBFB
| hot_league_winner = [[San Francisco Boat Shoes]]
| cold_league_winner = [[Long Beach Flightless Birds]]
| most_wins = [[San Francisco Boat Shoes]]
| most_losses = [[Alewife Arsonists]], [[Elko Astronauts]], [[Orlando Business Majors]]
| 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 | |||||||
| |||||||
| Records | |||||||
| |||||||
| Timeline | |||||||
| |||||||
| Divination | |||||||
| |||||||
| |||||||