Template:Tournament data: Difference between revisions
Template page
More actions
m Build reusable tournament data and rendering system |
m Build reusable tournament data and rendering system |
||
| Line 43: | Line 43: | ||
}} | }} | ||
|card={{Tournament card | |card={{Tournament card | ||
|name={{{name|{{PAGENAME}}}}} | |||
|date={{{date|}}} | |||
|image={{{image|}}} | |||
|type={{{type|Player Run Festival}}} | |||
|upcoming={{{upcoming|}}} | |||
|format={{{format|}}} | |||
|mode={{{mode|}}} | |||
|host={{{host|}}} | |||
|continent={{{continent|}}} | |||
|runner1={{{runner1|}}} | |||
|runner2={{{runner2|}}} | |||
|runner3={{{runner3|}}} | |||
|runner4={{{runner4|}}} | |||
|runner5={{{runner5|}}} | |||
|runner6={{{runner6|}}} | |||
|post={{{post|}}} | |||
|challonge={{{challonge|}}} | |||
|winner={{{winner|}}} | |||
|second={{{second|}}} | |||
|third={{{third|}}} | |||
|winnerteam={{{winnerteam|}}} | |||
|secondteam={{{secondteam|}}} | |||
|thirdteam={{{thirdteam|}}} | |||
|winner1={{{winner1|}}} | |||
|winner2={{{winner2|}}} | |||
|winner3={{{winner3|}}} | |||
|second1={{{second1|}}} | |||
|second2={{{second2|}}} | |||
|second3={{{second3|}}} | |||
|third1={{{third1|}}} | |||
|third2={{{third2|}}} | |||
|third3={{{third3|}}} | |||
|previous={{{previous|}}} | |||
|previousmonth={{{previousmonth|}}} | |||
|next={{{next|}}} | |||
|nextmonth={{{nextmonth|}}} | |||
|townprevious={{{townprevious|}}} | |||
|townpreviousmonth={{{townpreviousmonth|}}} | |||
|townnext={{{townnext|}}} | |||
|townnextmonth={{{townnextmonth|}}} | |||
}} | |||
|row={{Tournament row | |||
|name={{{name|{{PAGENAME}}}}} | |name={{{name|{{PAGENAME}}}}} | ||
|date={{{date|}}} | |date={{{date|}}} | ||
| Line 129: | Line 171: | ||
|townnextmonth={{{townnextmonth|}}} | |townnextmonth={{{townnextmonth|}}} | ||
}} | }} | ||
}}</includeonly><noinclude> | |||
== Workflow == | == 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 | 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. | ||
# Create <code>Template:Tournament data/Tournament Name</code> using the skeleton below | # Create <code>Template:Tournament data/Tournament Name</code> using the skeleton below | ||
# 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= | # Add <code><nowiki>{{Tournament data/Tournament Name|render=row}}</nowiki></code> to [[Template:Tournament list]] | ||
Only the record contains facts. The article and list contain references to it. | Only the record contains facts. The article and list contain references to it. | ||
| Line 206: | Line 248: | ||
* <code>article</code> — full article infobox and generated prose (default) | * <code>article</code> — full article infobox and generated prose (default) | ||
* <code>card</code> — compact card for tournament lists | * <code>card</code> — compact card for tournament lists | ||
* <code>row</code> — one row in the chronological tournament list | |||
* <code>month</code> — month and year derived from <code>date</code> | * <code>month</code> — month and year derived from <code>date</code> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 21:55, 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 row.
- Create
Template:Tournament data/Tournament Nameusing the skeleton below - Put
{{Tournament data/Tournament Name}}on the article - Add
{{Tournament data/Tournament Name|render=row}}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 listsrow— one row in the chronological tournament listmonth— month and year derived fromdate