Template:Season/doc: Difference between revisions
(creat doc) |
(doc updoot) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Description == | == Description == | ||
To use this template, add the {{T|{{BASEPAGENAME}}}} template and fill in the appropriate fields. | To use this template, add the {{T|{{BASEPAGENAME}}}} template and fill in the appropriate fields. If a field's information is yet unknown, you can either fill it in with TBD or delete the equals sign. (Leaving in the equals sign causes it to treat the value as present but null, because Wikimedia syntax is very picky. Yes, this is different from how PortableInfoboxes does it. No, we haven't figured out how to change that yet.) | ||
In addition to a nicely-formatted data table, this template autocats seasons to [[:Category:Seasons]] and categories for the runner and host. | In addition to a nicely-formatted data table, this template autocats seasons to [[:Category:Seasons]] and categories for the runner and host. | ||
| Line 6: | Line 6: | ||
The optional "prev" and "next" parameters should only be used if the previous or next seasons do not follow expected patterns (different type, non-consecutive numbers, etc). | The optional "prev" and "next" parameters should only be used if the previous or next seasons do not follow expected patterns (different type, non-consecutive numbers, etc). | ||
The optional "cohost" and " | The optional "cohost", "cohost2", "bhost", and "bhost2" parameters specify cohosts and backup hosts, if applicable. | ||
The optional "subtitle" parameter specifies a subtitle, such as (Battle Royale) or (Ghost Season), as well as autocat'ing it into [[:Category:Themed Seasons]]. Certain special recurring seasons such as [[:Category:Battle Royale Seasons|Battle Royales]] are also autocat'd into a subcategory for their theme. | The optional "subtitle" parameter specifies a subtitle, such as (Battle Royale) or (Ghost Season), as well as autocat'ing it into [[:Category:Themed Seasons]]. Certain special recurring seasons such as [[:Category:Battle Royale Seasons|Battle Royales]] are also autocat'd into a subcategory for their theme. | ||
| Line 30: | Line 30: | ||
| runner=A Zombie | | runner=A Zombie | ||
| host=A Ghoast | | host=A Ghoast | ||
| bhost=A | | cohost=A Different Ghoast | ||
| cohost2=Still Another Ghoast | |||
| bhost=A Zombie | |||
| bhost2=A Phantom | |||
| startdate=January 1, 2021 | | startdate=January 1, 2021 | ||
| enddate=January 13, 42069 | | enddate=January 13, 42069 | ||
}} | }} | ||
</pre> | </pre> | ||
{{Season | {{Season | ||
| Line 43: | Line 45: | ||
| runner=A Zombie | | runner=A Zombie | ||
| host=A Ghoast | | host=A Ghoast | ||
| bhost=A | | cohost=A Different Ghoast | ||
| cohost2=Still Another Ghoast | |||
| bhost=A Zombie | |||
| bhost2=A Phantom | |||
| startdate=January 1, 2021 | | startdate=January 1, 2021 | ||
| enddate=January 13, 42069 | | enddate=January 13, 42069 | ||
}} | }} | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
Latest revision as of 21:46, 9 March 2022
Description
To use this template, add the {{Season}} template and fill in the appropriate fields. If a field's information is yet unknown, you can either fill it in with TBD or delete the equals sign. (Leaving in the equals sign causes it to treat the value as present but null, because Wikimedia syntax is very picky. Yes, this is different from how PortableInfoboxes does it. No, we haven't figured out how to change that yet.)
In addition to a nicely-formatted data table, this template autocats seasons to Category:Seasons and categories for the runner and host.
The optional "prev" and "next" parameters should only be used if the previous or next seasons do not follow expected patterns (different type, non-consecutive numbers, etc).
The optional "cohost", "cohost2", "bhost", and "bhost2" parameters specify cohosts and backup hosts, if applicable.
The optional "subtitle" parameter specifies a subtitle, such as (Battle Royale) or (Ghost Season), as well as autocat'ing it into Category:Themed Seasons. Certain special recurring seasons such as Battle Royales are also autocat'd into a subcategory for their theme.
Syntax
{{Season
| link=
| number=
| runner=
| host=
| startdate=
| enddate=
}}
Sample Output
{{Season
| link=https://example.com
| number=1
| subtitle=Super Special Awesome Season
| runner=A Zombie
| host=A Ghoast
| cohost=A Different Ghoast
| cohost2=Still Another Ghoast
| bhost=A Zombie
| bhost2=A Phantom
| startdate=January 1, 2021
| enddate=January 13, 42069
}}
| Season 1 | |
|---|---|
| Season Title | Season 1 (Super Special Awesome Season) |
| Date Started | January 1, 2021 |
| Date Ended | January 13, 42069 |
| Runner | A Zombie |
| Host | A Ghoast |
| Cohost | A Different Ghoast |
| Cohost | Still Another Ghoast |
| Backup Host | A Zombie |
| Backup Host | A Phantom |
| << None | Season 2 >> |