Template:Season: Difference between revisions

From Trouble Cube HGS Wiki
Jump to navigation Jump to search
(okay what if we literally just copied the whole thing no changes. would it work THEN???)
Tag: Reverted
(Undo revision 177 by Wingedcatgirl (talk) IT'S LITERALLY BROKEN WHEN IT'S AN EXACT UNMODIFIED COPY PASTE OF THE TVT VERSION WHAT THE HELL ASS BALLS MEDIAWIKI)
Tag: Undo
Line 1: Line 1:
{| class="wikitable"
{| class="wikitable"
|-
|-
!colspan="2"|[{{{link|https://tvtropes.org/pmwiki/posts.php?discussion=15358704370A99240800}}} {{{type|Reboot}}} Season {{{number|}}}]
!colspan="2"|[{{{link|https://troublecube.net/mybb/Thread-Hunger-Games-Simulator-Trouble-Cube-Edition}}} Season {{{number|}}}]
|-
|-
| Season Title || {{{type|Reboot}}} Season {{{number|}}} {{#if:{{{subtitle|}}}|({{{subtitle}}})}}
| Season Title || Season {{{number|}}} {{#if:{{{subtitle|}}}|({{{subtitle}}})}}
|-
|-
| Date Started || {{{startdate|TBD}}}
| Date Started || {{{startdate|TBD}}}
Line 15: Line 15:
{{#if:{{{cohost|}}}|
{{#if:{{{cohost|}}}|
{{!}} Cohost {{!}}{{!}} {{{cohost}}}
{{!}} Cohost {{!}}{{!}} {{{cohost}}}
{{!}}-|}}
{{#if:{{{cohost2|}}}|
{{!}} Cohost {{!}}{{!}} {{{cohost2}}}
{{!}}-|}}
{{!}}-|}}
{{#if:{{{bhost|}}}|
{{#if:{{{bhost|}}}|
{{!}} Secondary Host {{!}}{{!}} {{{bhost}}}
{{!}} Backup Host {{!}}{{!}} {{{bhost}}}
{{!}}-|}}
{{!}}-|}}
| << {{#ifeq: {{{number|1}}} | 1 | {{{prev|None}}} | {{{prev|[[{{{type|Reboot}}} Season {{#expr:{{{number|1}}}-1}}]]}}}}} || {{#if:{{{number|}}}|{{{next|[[{{{type|Reboot}}} Season {{#expr:{{{number|1}}}+1}}]]}}}|None}} >>
{{#if:{{{bhost2|}}}|
{{!}} Backup Host {{!}}{{!}} {{{bhost2}}}
{{!}}-|}}
| << {{#ifeq: {{{number|1}}} | 1 | {{{prev|None}}} | [[Season {{#expr:{{{number|1}}}-1}}]]}} || {{#if:|{{number|}}|{{{next|[[Season {{#expr:{{{number|1}}}+1}}]]}}}|None}} >>
|}
|}
<includeonly>
<includeonly>
{{#ifeq: {{NAMESPACENUMBER}} | 0 |
{{#ifeq: {{NAMESPACENUMBER}} | 0 |
[[Category:Seasons]]
[[Category:Seasons]]
[[Category: {{{type}}} Seasons]]
{{#if:{{#pos:{{{subtitle}}}|Battle Royale}}| [[Category:Battle Royale Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|Battle Royale}}| [[Category:Battle Royale Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|Troper Game}}| [[Category:Troper Games Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|Troubadour Game}}| [[Category:Troubadour Games Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|Death Battle}}| [[Category:Death Battle Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|Death Battle}}| [[Category:Death Battle Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|Valentine's}}| [[Category:Valentine's Day Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|Valentine}}| [[Category:Valentine's Day Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|Christmas}}| [[Category:Christmas Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|Christmas}}| [[Category:Christmas Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|Halloween}}| [[Category:Halloween Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|Halloween}}| [[Category:Halloween Seasons]]}}
 
{{#if:{{#pos:{{{subtitle}}}|Anniversary}}|[[Category:Anniversary Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|Anniversary}}|
{{#if:{{#pos:{{{subtitle}}}|Reboot}}| [[Category:Reboot Anniversary Seasons]]}}
{{#if:{{#pos:{{{subtitle}}}|OG}}| [[Category:OG Anniversary Seasons]]}}
[[Category:Anniversary Seasons]]
}}
{{#if:{{{subtitle|}}}|[[Category: Themed Seasons]]}}
{{#if:{{{subtitle|}}}|[[Category: Themed Seasons]]}}


{{#if: {{#pos:{{{host}}}|REDACTED}}||
{{#ifeq: {{{host|TBD}}} | TBD || [[Category: Seasons hosted by {{{host}}}]]}}
{{#ifeq: {{{host|TBD}}} | TBD || [[Category: Seasons hosted by {{{host}}}]]}}
}}
{{#if: {{#pos:{{{runner}}}|REDACTED}}||
{{#ifeq: {{{runner|TBD}}} | TBD || [[Category: Seasons run by {{{runner}}}]]}}
{{#ifeq: {{{runner|TBD}}} | TBD || [[Category: Seasons run by {{{runner}}}]]}}
}}
{{#if:{{{cohost|}}}|[[Category: Seasons hosted by {{{cohost}}}]]}}
{{#if:{{{cohost|}}}|[[Category: Seasons hosted by {{{cohost}}}]]}}
{{#if:{{{cohost2|}}}|[[Category: Seasons hosted by {{{cohost2}}}]]}}
{{#if:{{{bhost|}}}|[[Category: Seasons hosted by {{{bhost}}}]]}}
{{#if:{{{bhost|}}}|[[Category: Seasons hosted by {{{bhost}}}]]}}
{{#if:{{{bhost2|}}}|[[Category: Seasons hosted by {{{bhost2}}}]]}}
}}
}}
</includeonly>
</includeonly>

Revision as of 17:08, 25 March 2022

Season
Season Title Season
Date Started TBD
Date Ended TBD
Runner TBD
Host TBD
<< None Season 2 >>


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 >>