Difference between revisions of "Template:Winner"

From Rigged Wiki
Jump to navigation Jump to search
m (1 revision)
m (This should prevent the template from appearing on the categories for Champions.)
 
Line 4: Line 4:
! width="34%" style="border-left: 1px solid #CCC; border-right: 1px solid #CCC;" | [[{{{year|2011}}} 4chan {{{season|Summer}}}{{#switch: {{{babby|}}}|y=_Babby|}} Cup|{{{year|2011}}} {{{season|Summer}}} Cup Champions]]<br>({{{number|1st}}} title)
! width="34%" style="border-left: 1px solid #CCC; border-right: 1px solid #CCC;" | [[{{{year|2011}}} 4chan {{{season|Summer}}}{{#switch: {{{babby|}}}|y=_Babby|}} Cup|{{{year|2011}}} {{{season|Summer}}} Cup Champions]]<br>({{{number|1st}}} title)
| width="33%" style="border-left: 1px solid #CCC;" align="center" | Succeeded by<br>'''{{#if: {{{next|}}}|[[{{{next_year|}}} 4chan {{{next_season|}}}{{#switch: {{{next_babby|}}}|y=_Babby|}} Cup|{{{next_year|}}} {{{next_season|}}} Cup Champions]]|-}}'''{{#if: {{{next|}}}|<br>{{team home|{{{next|a}}}}}|}}
| width="33%" style="border-left: 1px solid #CCC;" align="center" | Succeeded by<br>'''{{#if: {{{next|}}}|[[{{{next_year|}}} 4chan {{{next_season|}}}{{#switch: {{{next_babby|}}}|y=_Babby|}} Cup|{{{next_year|}}} {{{next_season|}}} Cup Champions]]|-}}'''{{#if: {{{next|}}}|<br>{{team home|{{{next|a}}}}}|}}
|}{{#if: {{{season|}}}|[[Category:{{{season|}}}{{#if: {{{babby|}}}|_Babby|}} Cup Champions]]|}}
|}<includeonly>{{#if: {{{season|}}}|[[Category:{{{season|}}}{{#if: {{{babby|}}}|_Babby|}} Cup Champions]]|}}</includeonly>
<br><noinclude>
<br><noinclude>
==Usage==
==Usage==

Latest revision as of 23:36, 7 January 2024

Preceded by
Inaugural Champions
2011 Summer Cup Champions
(1st title)
Succeeded by
-


Usage

{{Winner
|prev_year= Year of previous tournament.
|prev_season= Season of previous tournament.
|prev_babby= (Only use 'y' if it was a Babby Cup)
|prev=Winner of previous tournament.
|year= Year of tournament won.
|season= Season of tournament won.
|babby= (Only use 'y' if it was a Babby Cup)
|number= (Ordinal number format)
|next_year= Year of next tournament.
|next_season= Year of next tournament.
|next babby= (Only use 'y' if it was a Babby Cup)
|next= Winner of next tournament.
}}

If the team is the inaugural winner, don't add ANY of the parameters with prev as the prefix (prev_year, prev_season...). If the team is the current winner, don't add ANY of the parameters with next as the prefix (next_year, next_season...). A category will be automagically added to list all known Champions (of a given season). Please note that this template will only be used with official tournaments, unofficial ones will not count. This template will ideally be used for three purposes:

  • To list all consecutive winners (2012 Spring Babby Cup > 2012 Summer Cup > 2012 Autumn Babby Cup...).
  • To list all consecutive winners within a season (2011 Summer Cup > 2012 Summer Cup > 2013 Summer Cup...).
  • To list all consecutive winners within a cup format (2012 Winter Cup > 2012 Summer Cup > 2013 Winter Cup...).

Example (/sp/)

Code:

{{Winner
|prev_year=2012
|prev_season=Spring
|prev_babby=y
|prev=m
|year=2012
|season=Summer
|number=1st
|next_year=2012
|next_season=Autumn
|next babby=y
|next=wg
}}

Result:

Preceded by
2012 Spring Cup Champions
M icon.png /m/
2012 Summer Cup Champions
(1st title)
Succeeded by
2012 Autumn Cup Champions
/wg/ Wg icon.png