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
m Build reusable tournament data and rendering system
m Build reusable tournament data and rendering system
Line 17: Line 17:
|post={{{post|}}}
|post={{{post|}}}
|challonge={{{challonge|}}}
|challonge={{{challonge|}}}
|youtube={{{youtube|}}}
|youtubelabel={{{youtubelabel|}}}
|youtubeexplicit={{{youtubeexplicit|}}}
|youtube2={{{youtube2|}}}
|youtube2label={{{youtube2label|}}}
|youtube2explicit={{{youtube2explicit|}}}
|youtube3={{{youtube3|}}}
|youtube3label={{{youtube3label|}}}
|youtube3explicit={{{youtube3explicit|}}}
|winner={{{winner|}}}
|winner={{{winner|}}}
|second={{{second|}}}
|second={{{second|}}}
Line 57: Line 66:
|post={{{post|}}}
|post={{{post|}}}
|challonge={{{challonge|}}}
|challonge={{{challonge|}}}
|youtube={{{youtube|}}}
|youtubelabel={{{youtubelabel|}}}
|youtubeexplicit={{{youtubeexplicit|}}}
|youtube2={{{youtube2|}}}
|youtube2label={{{youtube2label|}}}
|youtube2explicit={{{youtube2explicit|}}}
|youtube3={{{youtube3|}}}
|youtube3label={{{youtube3label|}}}
|youtube3explicit={{{youtube3explicit|}}}
|winner={{{winner|}}}
|winner={{{winner|}}}
|second={{{second|}}}
|second={{{second|}}}
Line 97: Line 115:
|post={{{post|}}}
|post={{{post|}}}
|challonge={{{challonge|}}}
|challonge={{{challonge|}}}
|youtube={{{youtube|}}}
|youtubelabel={{{youtubelabel|}}}
|youtubeexplicit={{{youtubeexplicit|}}}
|youtube2={{{youtube2|}}}
|youtube2label={{{youtube2label|}}}
|youtube2explicit={{{youtube2explicit|}}}
|youtube3={{{youtube3|}}}
|youtube3label={{{youtube3label|}}}
|youtube3explicit={{{youtube3explicit|}}}
|winner={{{winner|}}}
|winner={{{winner|}}}
|second={{{second|}}}
|second={{{second|}}}
Line 141: Line 168:
|post={{{post|}}}
|post={{{post|}}}
|challonge={{{challonge|}}}
|challonge={{{challonge|}}}
|youtube={{{youtube|}}}
|youtubelabel={{{youtubelabel|}}}
|youtubeexplicit={{{youtubeexplicit|}}}
|youtube2={{{youtube2|}}}
|youtube2label={{{youtube2label|}}}
|youtube2explicit={{{youtube2explicit|}}}
|youtube3={{{youtube3|}}}
|youtube3label={{{youtube3label|}}}
|youtube3explicit={{{youtube3explicit|}}}
|winner={{{winner|}}}
|winner={{{winner|}}}
|second={{{second|}}}
|second={{{second|}}}
Line 165: Line 201:
}}
}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
== Workflow ==
== Editing 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 row.
Each tournament has one data record, such as [[Template:Tournament data/Riverside I]]. Its article, overview row, chronology, prose and categories all read from that record


# Create <code>Template:Tournament data/Tournament Name</code> using the skeleton below
# Create <code>Template:Tournament data/Tournament Name</code> from the skeleton
# Put <code><nowiki>{{Tournament data/Tournament Name}}</nowiki></code> on the article
# Put <code><nowiki>{{Tournament data/Tournament Name}}</nowiki></code> on the article
# Add <code><nowiki>{{Tournament data/Tournament Name|render=row}}</nowiki></code> to [[Template:Tournament list]]
# Register the record once in [[Template:Tournament list]]
 
Only the record contains facts. The article and list contain references to it.


== Record skeleton ==
== Record skeleton ==
Line 189: Line 223:
|post=
|post=
|challonge=
|challonge=
|youtube=
|youtubeexplicit=
|reigningchampion=
|reigningchampion=
|championoutcome=
|championoutcome=
Line 203: Line 239:
|third2=
|third2=
|third3=
|third3=
|previous=
|next=
|townprevious=
|townnext=
|render={{{render|article}}}
|render={{{render|article}}}
}}</includeonly>
}}</includeonly>
</pre>
</pre>


For 1v1, use <code>winner</code>, <code>second</code>, and <code>third</code> instead of team names and member fields. Set <code>championoutcome</code> to <code>retained</code>, <code>transferred</code>, or <code>no-show</code>. The prior champion and 1v1 event are read from the registry automatically; use <code>champion</code> or <code>reigningchampion</code> only for incomplete historical records.
For 1v1, use <code>winner</code>, <code>second</code> and <code>third</code> instead of team fields. Set <code>championoutcome</code> to <code>retained</code>, <code>transferred</code> or <code>no-show</code>. Prior champions and chronology are read automatically; overrides are only for incomplete historical data
 
Upcoming status and displayed chronology months are derived automatically from <code>date</code>; leave result fields blank until the event has taken place.


Overall <code>previous</code> and <code>next</code> links come from [[Template:Tournament chronology]], generated from the newest-first registry. Use record-level values only to override an incomplete chronology. Town-specific chronology remains explicit.
Upcoming status, chronology dates and format/continent categories are derived automatically


== Parameters ==
== Parameters ==
Line 222: Line 252:
! Group !! Parameters !! Use
! Group !! Parameters !! Use
|-
|-
| Basic || <code>name</code>, <code>date</code>, <code>image</code>, <code>type</code> || Identity and date-derived status; <code>type</code> defaults to Player Run Festival
| Basic || <code>name</code>, <code>date</code>, <code>image</code>, <code>type</code> || Identity; <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
| 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
| Links || <code>post</code>, <code>challonge</code> || Forums thread number and Challonge ID
|-
| Videos || <code>youtube</code>, <code>youtube2</code>, <code>youtube3</code> || YouTube video IDs; matching <code>label</code> and <code>explicit</code> suffixes are optional
|-
|-
| Runners || <code>runner1</code>-<code>runner6</code> || Up to six organizers
| Runners || <code>runner1</code>-<code>runner6</code> || Up to six organizers
Line 238: Line 270:
| 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
| 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
| Overrides || <code>previous</code>, <code>next</code>, <code>townprevious</code>, <code>townnext</code> || Use only when known history is not yet in the registry
|-
| Town chronology || <code>townprevious</code>, <code>townnext</code> || Adjacent festivals hosted by the same town
|}
|}


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


* <code>article</code> — full article infobox and generated prose (default)
* <code>article</code> — article view (default)
* <code>card</code> — compact card for tournament lists
* <code>card</code> — compact card
* <code>row</code> — one row in the chronological tournament list
* <code>row</code> — overview row
* <code>date</code> — stored date for chronology and other compact views
* <code>date</code> — stored date
* <code>champion</code> — resulting champion derived from the 1v1 title outcome
* <code>champion</code> — resulting 1v1 champion


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 00:48, 19 August 2026

Editing workflow

Each tournament has one data record, such as Template:Tournament data/Riverside I. Its article, overview row, chronology, prose and categories all read from that record

  1. Create Template:Tournament data/Tournament Name from the skeleton
  2. Put {{Tournament data/Tournament Name}} on the article
  3. Register the record once in Template:Tournament list

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=
|youtube=
|youtubeexplicit=
|reigningchampion=
|championoutcome=
|winnerteam=
|winner1=
|winner2=
|winner3=
|secondteam=
|second1=
|second2=
|second3=
|thirdteam=
|third1=
|third2=
|third3=
|render={{{render|article}}}
}}</includeonly>

For 1v1, use winner, second and third instead of team fields. Set championoutcome to retained, transferred or no-show. Prior champions and chronology are read automatically; overrides are only for incomplete historical data

Upcoming status, chronology dates and format/continent categories are derived automatically

Parameters

Group Parameters Use
Basic name, date, image, type Identity; 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 Forums thread number and Challonge ID
Videos youtube, youtube2, youtube3 YouTube video IDs; matching label and explicit suffixes are optional
Runners runner1-runner6 Up to six organizers
1v1 results winner, second, third Placed players
1v1 championship championoutcome, champion, reigningchampion Outcome uses retained, transferred, or no-show; the other fields are temporary historical overrides
Team results winnerteam, secondteam, thirdteam Team names for 2v2 or 3v3
Team members winner1-3, second1-3, third1-3 Players in each placed team
Overrides previous, next, townprevious, townnext Use only when known history is not yet in the registry

Render modes

  • article — article view (default)
  • card — compact card
  • row — overview row
  • date — stored date
  • champion — resulting 1v1 champion