Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tournament data: Difference between revisions

Template page
Build reusable tournament data and rendering system
 
m Build reusable tournament data and rendering system
Line 130: Line 130:
}}
}}
}}}</includeonly><noinclude>
}}}</includeonly><noinclude>
== Purpose ==
== Workflow ==


This is the shared tournament record template. Tournament facts are stored in a named subtemplate such as [[Template:Tournament data/Riverside I]], then reused by the article infobox and tournament cards.
Tournament facts are stored once in a named record such as [[Template:Tournament data/Riverside I]]. That record supplies the article infobox, generated prose, chronology dates, and overview card.


Editors should normally edit the named data subtemplate rather than call this template directly.
# Create <code>Template:Tournament data/Tournament Name</code> using the skeleton below
# Put <code><nowiki>{{Tournament data/Tournament Name}}</nowiki></code> on the article
# Add <code><nowiki>{{Tournament data/Tournament Name|render=card}}</nowiki></code> to [[Template:Tournament list]]
 
Only the record contains facts. The article and list contain references to it.
 
== Record skeleton ==
 
<pre>
<includeonly>{{Tournament data
|name=Tournament Name
|date=July 19, 2026
|image=
|format=3v3
|mode=Potion
|host=Town Name
|continent=Ascalon
|runner1=
|post=
|challonge=
|winnerteam=
|winner1=
|winner2=
|winner3=
|secondteam=
|second1=
|second2=
|second3=
|thirdteam=
|third1=
|third2=
|third3=
|previous=
|next=
|townprevious=
|townnext=
|render={{{render|article}}}
}}</includeonly>
</pre>
 
For 1v1, use <code>winner</code>, <code>second</code>, and <code>third</code> instead of team names and member fields. Set <code>upcoming=yes</code> before an event takes place and leave result fields blank.
 
Chronology months are read from linked tournament records. The legacy <code>previousmonth</code>, <code>nextmonth</code>, and town equivalents are only fallbacks while older records are missing.
 
== Parameters ==
 
{| class="wikitable"
! Group !! Parameters !! Use
|-
| Basic || <code>name</code>, <code>date</code>, <code>image</code>, <code>type</code>, <code>upcoming</code> || Identity and status; <code>type</code> defaults to Player Run Festival
|-
| Details || <code>format</code>, <code>mode</code>, <code>host</code>, <code>continent</code> || Format uses 1v1, 2v2, or 3v3; mode uses Potion or Barebones
|-
| Links || <code>post</code>, <code>challonge</code> || Numeric forums thread ID and Challonge ID
|-
| Runners || <code>runner1</code>-<code>runner6</code> || Up to six organizers
|-
| 1v1 results || <code>winner</code>, <code>second</code>, <code>third</code> || Placed players
|-
| Team results || <code>winnerteam</code>, <code>secondteam</code>, <code>thirdteam</code> || Team names for 2v2 or 3v3
|-
| Team members || <code>winner1</code>-<code>3</code>, <code>second1</code>-<code>3</code>, <code>third1</code>-<code>3</code> || Players in each placed team
|-
| Overall chronology || <code>previous</code>, <code>next</code> || Adjacent festivals overall
|-
| Town chronology || <code>townprevious</code>, <code>townnext</code> || Adjacent festivals hosted by the same town
|}


== Render modes ==
== Render modes ==

Revision as of 21:42, 18 August 2026

Workflow

Tournament facts are stored once in a named record such as Template:Tournament data/Riverside I. That record supplies the article infobox, generated prose, chronology dates, and overview card.

  1. Create Template:Tournament data/Tournament Name using the skeleton below
  2. Put {{Tournament data/Tournament Name}} on the article
  3. Add {{Tournament data/Tournament Name|render=card}} to Template:Tournament list

Only the record contains facts. The article and list contain references to it.

Record skeleton

<includeonly>{{Tournament data
|name=Tournament Name
|date=July 19, 2026
|image=
|format=3v3
|mode=Potion
|host=Town Name
|continent=Ascalon
|runner1=
|post=
|challonge=
|winnerteam=
|winner1=
|winner2=
|winner3=
|secondteam=
|second1=
|second2=
|second3=
|thirdteam=
|third1=
|third2=
|third3=
|previous=
|next=
|townprevious=
|townnext=
|render={{{render|article}}}
}}</includeonly>

For 1v1, use winner, second, and third instead of team names and member fields. Set upcoming=yes before an event takes place and leave result fields blank.

Chronology months are read from linked tournament records. The legacy previousmonth, nextmonth, and town equivalents are only fallbacks while older records are missing.

Parameters

Group Parameters Use
Basic name, date, image, type, upcoming Identity and status; type defaults to Player Run Festival
Details format, mode, host, continent Format uses 1v1, 2v2, or 3v3; mode uses Potion or Barebones
Links post, challonge Numeric forums thread ID and Challonge ID
Runners runner1-runner6 Up to six organizers
1v1 results winner, second, third Placed players
Team results winnerteam, secondteam, thirdteam Team names for 2v2 or 3v3
Team members winner1-3, second1-3, third1-3 Players in each placed team
Overall chronology previous, next Adjacent festivals overall
Town chronology townprevious, townnext Adjacent festivals hosted by the same town

Render modes

  • article — full article infobox and generated prose (default)
  • card — compact card for tournament lists
  • month — month and year derived from date