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:Infobox tournament: Difference between revisions

Template page
m Infobox tournament: auto-generate a lead paragraph from the same infobox parameters
Tag: Manual revert
m Build reusable tournament data and rendering system
Line 3: Line 3:
|image=
|image=
|type={{#if:{{{upcoming|}}}|Upcoming {{{type|Player Run Festival}}}|{{{type|Player Run Festival}}}}}
|type={{#if:{{{upcoming|}}}|Upcoming {{{type|Player Run Festival}}}|{{{type|Player Run Festival}}}}}
|content=<div class="loka-tournament-columns"><div class="loka-tournament-details"><div class="loka-tournament-col-heading">Tournament Details</div><div class="loka-tournament-details-grid">{{#if:{{{date|}}}|<div class="loka-tournament-detail"><span class="loka-tournament-detail-label">Date</span><span class="loka-tournament-detail-value">{{{date|}}}</span></div>}}{{#if:{{{format|}}}{{{mode|}}}|<div class="loka-tournament-detail"><span class="loka-tournament-detail-label">Format</span><span class="loka-tournament-detail-value">{{#switch:{{lc:{{{mode|}}}}}|potion=[[File:Splash Potion of Healing.png|14px|link=]]&#32;|barebones=[[File:Wooden Sword.png|14px|link=]]&#32;|#default=}}{{#if:{{{format|}}}|{{{format|}}}{{#if:{{{mode|}}}|&#32;{{{mode|}}}}}|{{{mode|}}}}}</span></div>}}{{#if:{{{host|}}}|<div class="loka-tournament-detail"><span class="loka-tournament-detail-label">Host town</span><span class="loka-tournament-detail-value">{{#if:{{{continent|}}}|[[File:Shield {{lc:{{{continent|}}}}}.png|14px|link=]]&#32;}}[[{{{host|}}}]]</span></div>}}{{#if:{{{post|}}}|<div class="loka-tournament-detail"><span class="loka-tournament-detail-label">Forums Post</span><span class="loka-tournament-detail-value">[https://forums.lokamc.com/threads/{{{post|}}}/ Thread]</span></div>}}{{#if:{{{challonge|}}}|<div class="loka-tournament-detail"><span class="loka-tournament-detail-label">Bracket</span><span class="loka-tournament-detail-value">[[File:Challonge logo.svg|14px|link=https://challonge.com/{{{challonge|}}}]] [https://challonge.com/{{{challonge|}}} Challonge]</span></div>}}</div>{{#if:{{{runner1|}}}|<div class="loka-tournament-detail loka-tournament-runners-tile"><span class="loka-tournament-detail-label">Tournament Runners</span><span class="loka-tournament-detail-value"><ul class="loka-hlist loka-hlist--stacked">{{#if:{{{runner1|}}}|<li>{{{runner1|}}}</li>}}{{#if:{{{runner2|}}}|<li>{{{runner2|}}}</li>}}{{#if:{{{runner3|}}}|<li>{{{runner3|}}}</li>}}{{#if:{{{runner4|}}}|<li>{{{runner4|}}}</li>}}{{#if:{{{runner5|}}}|<li>{{{runner5|}}}</li>}}{{#if:{{{runner6|}}}|<li>{{{runner6|}}}</li>}}</ul></span></div>}}</div><div class="loka-tournament-results">{{#if:{{{winnerteam|}}}|<div class="loka-podium-row">[[File:Medal Gold.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">Winning Team</div><div class="loka-podium-team">{{{winnerteam|}}}</div><ul class="loka-hlist loka-hlist--stacked">{{#if:{{{winner1|}}}|<li>{{{winner1|}}}</li>}}{{#if:{{{winner2|}}}|<li>{{{winner2|}}}</li>}}{{#if:{{{winner3|}}}|<li>{{{winner3|}}}</li>}}</ul></div></div>|{{#if:{{{winner|}}}|<div class="loka-podium-row">[[File:Medal Gold.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">Winner</div><div class="loka-podium-single">{{{winner|}}}</div></div></div>}}}}{{#if:{{{secondteam|}}}|<div class="loka-podium-row">[[File:Medal Silver.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">2nd Place</div><div class="loka-podium-team">{{{secondteam|}}}</div><ul class="loka-hlist loka-hlist--stacked">{{#if:{{{second1|}}}|<li>{{{second1|}}}</li>}}{{#if:{{{second2|}}}|<li>{{{second2|}}}</li>}}{{#if:{{{second3|}}}|<li>{{{second3|}}}</li>}}</ul></div></div>|{{#if:{{{second|}}}|<div class="loka-podium-row">[[File:Medal Silver.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">2nd Place</div><div class="loka-podium-single">{{{second|}}}</div></div></div>}}}}{{#if:{{{thirdteam|}}}|<div class="loka-podium-row">[[File:Medal Bronze.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">3rd Place</div><div class="loka-podium-team">{{{thirdteam|}}}</div><ul class="loka-hlist loka-hlist--stacked">{{#if:{{{third1|}}}|<li>{{{third1|}}}</li>}}{{#if:{{{third2|}}}|<li>{{{third2|}}}</li>}}{{#if:{{{third3|}}}|<li>{{{third3|}}}</li>}}</ul></div></div>|{{#if:{{{third|}}}|<div class="loka-podium-row">[[File:Medal Bronze.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">3rd Place</div><div class="loka-podium-single">{{{third|}}}</div></div></div>}}}}</div></div>{{#if:{{{winner|}}}{{{winnerteam|}}}{{{second|}}}{{{secondteam|}}}{{{third|}}}{{{thirdteam|}}}|<div class="loka-podium-disclaimer">IGNs correct at the time of tournament</div>}}{{#if:{{{previous|}}}{{{next|}}}|<div class="loka-chrono-box"><div class="loka-chrono-header"><span class="loka-chrono-header-side loka-chrono-header-side--prev"><span class="loka-chrono-header-side-text">Previous</span></span><span class="loka-chrono-header-title">Festival Chronology</span><span class="loka-chrono-header-side loka-chrono-header-side--next"><span class="loka-chrono-header-side-text">Next</span></span></div><div class="loka-chrono-grid">{{#if:{{{previous|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">[[{{{previous|}}}]]</div>{{#if:{{{previousmonth|}}}|<div class="loka-chrono-year">({{{previousmonth|}}})</div>}}</div>|<div class="loka-chrono-pane loka-chrono-pane--empty"><div class="loka-chrono-empty">&mdash;</div></div>}}<div class="loka-chrono-pane loka-chrono-pane--current"><div class="loka-chrono-title loka-chrono-title--current">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{date|}}}|<div class="loka-chrono-year">({{#time:F Y|{{{date|}}}}})</div>}}</div>{{#if:{{{next|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">[[{{{next|}}}]]</div>{{#if:{{{nextmonth|}}}|<div class="loka-chrono-year">({{{nextmonth|}}})</div>}}</div>|<div class="loka-chrono-pane loka-chrono-pane--tba"><div class="loka-chrono-tba">TBA</div></div>}}</div></div>}}{{#if:{{{townprevious|}}}{{{townnext|}}}|<div class="loka-chrono-box"><div class="loka-chrono-header"><span class="loka-chrono-header-side loka-chrono-header-side--prev"><span class="loka-chrono-header-side-text">Previous</span></span><span class="loka-chrono-header-title">{{{host|}}} Chronology</span>{{#if:{{{townnext|}}}|<span class="loka-chrono-header-side loka-chrono-header-side--next"><span class="loka-chrono-header-side-text">Next</span></span>}}</div><div class="loka-chrono-grid">{{#if:{{{townprevious|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">[[{{{townprevious|}}}]]</div>{{#if:{{{townpreviousmonth|}}}|<div class="loka-chrono-year">({{{townpreviousmonth|}}})</div>}}</div>|<div class="loka-chrono-pane loka-chrono-pane--empty"><div class="loka-chrono-empty">&mdash;</div></div>}}<div class="loka-chrono-pane loka-chrono-pane--current"><div class="loka-chrono-title loka-chrono-title--current">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{date|}}}|<div class="loka-chrono-year">({{#time:F Y|{{{date|}}}}})</div>}}</div>{{#if:{{{townnext|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">[[{{{townnext|}}}]]</div>{{#if:{{{townnextmonth|}}}|<div class="loka-chrono-year">({{{townnextmonth|}}})</div>}}</div>}}</div></div>}}
|content=<div class="loka-tournament-columns"><div class="loka-tournament-details"><div class="loka-tournament-col-heading">Tournament Details</div><div class="loka-tournament-details-grid">{{#if:{{{date|}}}|<div class="loka-tournament-detail"><span class="loka-tournament-detail-label">Date</span><span class="loka-tournament-detail-value">{{{date|}}}</span></div>}}{{#if:{{{format|}}}{{{mode|}}}|<div class="loka-tournament-detail"><span class="loka-tournament-detail-label">Format</span><span class="loka-tournament-detail-value">{{#switch:{{lc:{{{mode|}}}}}|potion=[[File:Splash Potion of Healing.png|14px|link=]]&#32;|barebones=[[File:Wooden Sword.png|14px|link=]]&#32;|#default=}}{{#if:{{{format|}}}|{{{format|}}}{{#if:{{{mode|}}}|&#32;{{{mode|}}}}}|{{{mode|}}}}}</span></div>}}{{#if:{{{host|}}}|<div class="loka-tournament-detail"><span class="loka-tournament-detail-label">Host town</span><span class="loka-tournament-detail-value">{{#if:{{{continent|}}}|[[File:Shield {{lc:{{{continent|}}}}}.png|14px|link=]]&#32;}}[[{{{host|}}}]]</span></div>}}{{#if:{{{post|}}}|<div class="loka-tournament-detail"><span class="loka-tournament-detail-label">Forums Post</span><span class="loka-tournament-detail-value">[https://forums.lokamc.com/threads/{{{post|}}}/ Thread]</span></div>}}{{#if:{{{challonge|}}}|<div class="loka-tournament-detail"><span class="loka-tournament-detail-label">Bracket</span><span class="loka-tournament-detail-value">[[File:Challonge logo.svg|14px|link=https://challonge.com/{{{challonge|}}}]] [https://challonge.com/{{{challonge|}}} Challonge]</span></div>}}</div>{{#if:{{{runner1|}}}|<div class="loka-tournament-detail loka-tournament-runners-tile"><span class="loka-tournament-detail-label">Tournament Runners</span><span class="loka-tournament-detail-value"><ul class="loka-hlist loka-hlist--stacked">{{#if:{{{runner1|}}}|<li>{{{runner1|}}}</li>}}{{#if:{{{runner2|}}}|<li>{{{runner2|}}}</li>}}{{#if:{{{runner3|}}}|<li>{{{runner3|}}}</li>}}{{#if:{{{runner4|}}}|<li>{{{runner4|}}}</li>}}{{#if:{{{runner5|}}}|<li>{{{runner5|}}}</li>}}{{#if:{{{runner6|}}}|<li>{{{runner6|}}}</li>}}</ul></span></div>}}</div><div class="loka-tournament-results">{{#if:{{{winnerteam|}}}|<div class="loka-podium-row">[[File:Medal Gold.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">Winning Team</div><div class="loka-podium-team">{{{winnerteam|}}}</div><ul class="loka-hlist loka-hlist--stacked">{{#if:{{{winner1|}}}|<li>{{{winner1|}}}</li>}}{{#if:{{{winner2|}}}|<li>{{{winner2|}}}</li>}}{{#if:{{{winner3|}}}|<li>{{{winner3|}}}</li>}}</ul></div></div>|{{#if:{{{winner|}}}|<div class="loka-podium-row">[[File:Medal Gold.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">Winner</div><div class="loka-podium-single">{{{winner|}}}</div></div></div>}}}}{{#if:{{{secondteam|}}}|<div class="loka-podium-row">[[File:Medal Silver.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">2nd Place</div><div class="loka-podium-team">{{{secondteam|}}}</div><ul class="loka-hlist loka-hlist--stacked">{{#if:{{{second1|}}}|<li>{{{second1|}}}</li>}}{{#if:{{{second2|}}}|<li>{{{second2|}}}</li>}}{{#if:{{{second3|}}}|<li>{{{second3|}}}</li>}}</ul></div></div>|{{#if:{{{second|}}}|<div class="loka-podium-row">[[File:Medal Silver.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">2nd Place</div><div class="loka-podium-single">{{{second|}}}</div></div></div>}}}}{{#if:{{{thirdteam|}}}|<div class="loka-podium-row">[[File:Medal Bronze.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">3rd Place</div><div class="loka-podium-team">{{{thirdteam|}}}</div><ul class="loka-hlist loka-hlist--stacked">{{#if:{{{third1|}}}|<li>{{{third1|}}}</li>}}{{#if:{{{third2|}}}|<li>{{{third2|}}}</li>}}{{#if:{{{third3|}}}|<li>{{{third3|}}}</li>}}</ul></div></div>|{{#if:{{{third|}}}|<div class="loka-podium-row">[[File:Medal Bronze.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">3rd Place</div><div class="loka-podium-single">{{{third|}}}</div></div></div>}}}}</div></div>{{#if:{{{winner|}}}{{{winnerteam|}}}{{{second|}}}{{{secondteam|}}}{{{third|}}}{{{thirdteam|}}}|<div class="loka-podium-disclaimer">IGNs correct at the time of tournament</div>}}{{#if:{{{previous|}}}{{{next|}}}|<div class="loka-chrono-box"><div class="loka-chrono-header"><span class="loka-chrono-header-side loka-chrono-header-side--prev"><span class="loka-chrono-header-side-text">Previous</span></span><span class="loka-chrono-header-title">Festival Chronology</span><span class="loka-chrono-header-side loka-chrono-header-side--next"><span class="loka-chrono-header-side-text">Next</span></span></div><div class="loka-chrono-grid">{{#if:{{{previous|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">[[{{{previous|}}}]]</div>{{#if:{{#if:{{{previousmonth|}}}|{{{previousmonth|}}}|{{#ifexist:Template:Tournament data/{{{previous|}}}|{{Tournament data/{{{previous|}}}|render=month}}}}}|<div class="loka-chrono-year">({{#if:{{{previousmonth|}}}|{{{previousmonth|}}}|{{#ifexist:Template:Tournament data/{{{previous|}}}|{{Tournament data/{{{previous|}}}|render=month}}}}})</div>}}</div>|<div class="loka-chrono-pane loka-chrono-pane--empty"><div class="loka-chrono-empty">&mdash;</div></div>}}<div class="loka-chrono-pane loka-chrono-pane--current"><div class="loka-chrono-title loka-chrono-title--current">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{date|}}}|<div class="loka-chrono-year">({{#time:F Y|{{{date|}}}}})</div>}}</div>{{#if:{{{next|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">[[{{{next|}}}]]</div>{{#if:{{#if:{{{nextmonth|}}}|{{{nextmonth|}}}|{{#ifexist:Template:Tournament data/{{{next|}}}|{{Tournament data/{{{next|}}}|render=month}}}}}|<div class="loka-chrono-year">({{#if:{{{nextmonth|}}}|{{{nextmonth|}}}|{{#ifexist:Template:Tournament data/{{{next|}}}|{{Tournament data/{{{next|}}}|render=month}}}}})</div>}}</div>|<div class="loka-chrono-pane loka-chrono-pane--tba"><div class="loka-chrono-tba">TBA</div></div>}}</div></div>}}{{#if:{{{townprevious|}}}{{{townnext|}}}|<div class="loka-chrono-box"><div class="loka-chrono-header"><span class="loka-chrono-header-side loka-chrono-header-side--prev"><span class="loka-chrono-header-side-text">Previous</span></span><span class="loka-chrono-header-title">{{{host|}}} Chronology</span>{{#if:{{{townnext|}}}|<span class="loka-chrono-header-side loka-chrono-header-side--next"><span class="loka-chrono-header-side-text">Next</span></span>}}</div><div class="loka-chrono-grid">{{#if:{{{townprevious|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">[[{{{townprevious|}}}]]</div>{{#if:{{#if:{{{townpreviousmonth|}}}|{{{townpreviousmonth|}}}|{{#ifexist:Template:Tournament data/{{{townprevious|}}}|{{Tournament data/{{{townprevious|}}}|render=month}}}}}|<div class="loka-chrono-year">({{#if:{{{townpreviousmonth|}}}|{{{townpreviousmonth|}}}|{{#ifexist:Template:Tournament data/{{{townprevious|}}}|{{Tournament data/{{{townprevious|}}}|render=month}}}}})</div>}}</div>|<div class="loka-chrono-pane loka-chrono-pane--empty"><div class="loka-chrono-empty">&mdash;</div></div>}}<div class="loka-chrono-pane loka-chrono-pane--current"><div class="loka-chrono-title loka-chrono-title--current">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{date|}}}|<div class="loka-chrono-year">({{#time:F Y|{{{date|}}}}})</div>}}</div>{{#if:{{{townnext|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">[[{{{townnext|}}}]]</div>{{#if:{{#if:{{{townnextmonth|}}}|{{{townnextmonth|}}}|{{#ifexist:Template:Tournament data/{{{townnext|}}}|{{Tournament data/{{{townnext|}}}|render=month}}}}}|<div class="loka-chrono-year">({{#if:{{{townnextmonth|}}}|{{{townnextmonth|}}}|{{#ifexist:Template:Tournament data/{{{townnext|}}}|{{Tournament data/{{{townnext|}}}|render=month}}}}})</div>}}</div>}}</div></div>}}
|wide=1
|wide=1
|headerimage={{{image|}}}
|headerimage={{{image|}}}
Line 12: Line 12:
{{#if:{{{winner|}}}{{{winnerteam|}}}{{{second|}}}{{{secondteam|}}}{{{third|}}}{{{thirdteam|}}}|{{#if:{{{winner|}}}{{{winnerteam|}}}|The tournament was won by {{#if:{{{winnerteam|}}}|{{{winnerteam|}}} ({{#if:{{{winner1|}}}|{{{winner1|}}}}}{{#if:{{{winner2|}}}|{{#if:{{{winner1|}}}|{{#if:{{{winner3|}}}|,&#32;|&#32;and&#32;}}}}{{{winner2|}}}}}{{#if:{{{winner3|}}}|{{#if:{{{winner1|}}}{{{winner2|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}{{{winner3|}}}}})|{{{winner|}}}}}.}} {{#if:{{{second|}}}{{{secondteam|}}}|{{#if:{{{third|}}}{{{thirdteam|}}}|{{#if:{{{secondteam|}}}|{{{secondteam|}}} ({{#if:{{{second1|}}}|{{{second1|}}}}}{{#if:{{{second2|}}}|{{#if:{{{second1|}}}|{{#if:{{{second3|}}}|,&#32;|&#32;and&#32;}}}}{{{second2|}}}}}{{#if:{{{second3|}}}|{{#if:{{{second1|}}}{{{second2|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}{{{second3|}}}}})|{{{second|}}}}} placed second, and {{#if:{{{thirdteam|}}}|{{{thirdteam|}}} ({{#if:{{{third1|}}}|{{{third1|}}}}}{{#if:{{{third2|}}}|{{#if:{{{third1|}}}|{{#if:{{{third3|}}}|,&#32;|&#32;and&#32;}}}}{{{third2|}}}}}{{#if:{{{third3|}}}|{{#if:{{{third1|}}}{{{third2|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}{{{third3|}}}}})|{{{third|}}}}} placed third.|{{#if:{{{secondteam|}}}|{{{secondteam|}}} ({{#if:{{{second1|}}}|{{{second1|}}}}}{{#if:{{{second2|}}}|{{#if:{{{second1|}}}|{{#if:{{{second3|}}}|,&#32;|&#32;and&#32;}}}}{{{second2|}}}}}{{#if:{{{second3|}}}|{{#if:{{{second1|}}}{{{second2|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}{{{second3|}}}}})|{{{second|}}}}} placed second.}}|{{#if:{{{third|}}}{{{thirdteam|}}}|{{#if:{{{thirdteam|}}}|{{{thirdteam|}}} ({{#if:{{{third1|}}}|{{{third1|}}}}}{{#if:{{{third2|}}}|{{#if:{{{third1|}}}|{{#if:{{{third3|}}}|,&#32;|&#32;and&#32;}}}}{{{third2|}}}}}{{#if:{{{third3|}}}|{{#if:{{{third1|}}}{{{third2|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}{{{third3|}}}}})|{{{third|}}}}} placed third.}}}}}}
{{#if:{{{winner|}}}{{{winnerteam|}}}{{{second|}}}{{{secondteam|}}}{{{third|}}}{{{thirdteam|}}}|{{#if:{{{winner|}}}{{{winnerteam|}}}|The tournament was won by {{#if:{{{winnerteam|}}}|{{{winnerteam|}}} ({{#if:{{{winner1|}}}|{{{winner1|}}}}}{{#if:{{{winner2|}}}|{{#if:{{{winner1|}}}|{{#if:{{{winner3|}}}|,&#32;|&#32;and&#32;}}}}{{{winner2|}}}}}{{#if:{{{winner3|}}}|{{#if:{{{winner1|}}}{{{winner2|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}{{{winner3|}}}}})|{{{winner|}}}}}.}} {{#if:{{{second|}}}{{{secondteam|}}}|{{#if:{{{third|}}}{{{thirdteam|}}}|{{#if:{{{secondteam|}}}|{{{secondteam|}}} ({{#if:{{{second1|}}}|{{{second1|}}}}}{{#if:{{{second2|}}}|{{#if:{{{second1|}}}|{{#if:{{{second3|}}}|,&#32;|&#32;and&#32;}}}}{{{second2|}}}}}{{#if:{{{second3|}}}|{{#if:{{{second1|}}}{{{second2|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}{{{second3|}}}}})|{{{second|}}}}} placed second, and {{#if:{{{thirdteam|}}}|{{{thirdteam|}}} ({{#if:{{{third1|}}}|{{{third1|}}}}}{{#if:{{{third2|}}}|{{#if:{{{third1|}}}|{{#if:{{{third3|}}}|,&#32;|&#32;and&#32;}}}}{{{third2|}}}}}{{#if:{{{third3|}}}|{{#if:{{{third1|}}}{{{third2|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}{{{third3|}}}}})|{{{third|}}}}} placed third.|{{#if:{{{secondteam|}}}|{{{secondteam|}}} ({{#if:{{{second1|}}}|{{{second1|}}}}}{{#if:{{{second2|}}}|{{#if:{{{second1|}}}|{{#if:{{{second3|}}}|,&#32;|&#32;and&#32;}}}}{{{second2|}}}}}{{#if:{{{second3|}}}|{{#if:{{{second1|}}}{{{second2|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}{{{second3|}}}}})|{{{second|}}}}} placed second.}}|{{#if:{{{third|}}}{{{thirdteam|}}}|{{#if:{{{thirdteam|}}}|{{{thirdteam|}}} ({{#if:{{{third1|}}}|{{{third1|}}}}}{{#if:{{{third2|}}}|{{#if:{{{third1|}}}|{{#if:{{{third3|}}}|,&#32;|&#32;and&#32;}}}}{{{third2|}}}}}{{#if:{{{third3|}}}|{{#if:{{{third1|}}}{{{third2|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}{{{third3|}}}}})|{{{third|}}}}} placed third.}}}}}}


{{#if:{{{previous|}}}{{{next|}}}|{{#if:{{{previous|}}}|{{{name|{{PAGENAME}}}}}&#32;{{#if:{{{upcoming|}}}|will follow|followed}} [[{{{previous|}}}]]{{#if:{{{previousmonth|}}}|, held in {{{previousmonth|}}}}}, in the wiki's overall festival chronology.}} {{#if:{{{next|}}}|It {{#if:{{{upcoming|}}}|will be|was}} followed by [[{{{next|}}}]]{{#if:{{{nextmonth|}}}|, held in {{{nextmonth|}}}}}.}}}}
{{#if:{{{previous|}}}{{{next|}}}|{{#if:{{{previous|}}}|{{{name|{{PAGENAME}}}}}&#32;{{#if:{{{upcoming|}}}|will follow|followed}} [[{{{previous|}}}]]{{#if:{{#if:{{{previousmonth|}}}|{{{previousmonth|}}}|{{#ifexist:Template:Tournament data/{{{previous|}}}|{{Tournament data/{{{previous|}}}|render=month}}}}}|, held in {{#if:{{{previousmonth|}}}|{{{previousmonth|}}}|{{#ifexist:Template:Tournament data/{{{previous|}}}|{{Tournament data/{{{previous|}}}|render=month}}}}}}}, in the wiki's overall festival chronology.}} {{#if:{{{next|}}}|It {{#if:{{{upcoming|}}}|will be|was}} followed by [[{{{next|}}}]]{{#if:{{#if:{{{nextmonth|}}}|{{{nextmonth|}}}|{{#ifexist:Template:Tournament data/{{{next|}}}|{{Tournament data/{{{next|}}}|render=month}}}}}|, held in {{#if:{{{nextmonth|}}}|{{{nextmonth|}}}|{{#ifexist:Template:Tournament data/{{{next|}}}|{{Tournament data/{{{next|}}}|render=month}}}}}}}.}}}}


== See also ==
== See also ==
* [[Tournaments]]</includeonly><noinclude>
* [[Tournaments]]
== Usage ==


<pre>
[[Category:Tournaments]]</includeonly><noinclude>
{{Infobox tournament
== Use on tournament articles ==
|name=Asgard V
|date=February 14, 2026
|image=Asgard V.jpg
|format=1v1
|mode=Potion
|host=Asgard
|continent=Ascalon
|runner1=Deevil
|runner2=nainti
|post=10961
|challonge=exampleI
|winner=PlayerName
|second=PlayerName
|third=PlayerName
|previous=Asgard IV
|previousmonth=November 2025
|next=Asgard VI
}}
</pre>


Only <code>name</code> is required -- everything else is optional and simply doesn't show if left blank. Also generates a short lead paragraph below the box automatically from these same parameters, so there's no separate prose to write, plus a "See also" section linking back to [[Tournaments]] -- no need to add either by hand.
Tournament articles should transclude their central data record:


For a 2v2/3v3 result, use <code>winnerteam</code>/<code>secondteam</code>/<code>thirdteam</code> (the winner's medal is then labelled "Winning Team" instead of "Winner") plus up to three <code>winner1</code>-<code>3</code>/<code>second1</code>-<code>3</code>/<code>third1</code>-<code>3</code> members instead of the plain <code>winner</code>/<code>second</code>/<code>third</code>. Team-name parameters are only needed for 2v2/3v3 -- leave them blank for 1v1.
<pre>{{Tournament data/Asgard V}}</pre>


Set <code>upcoming</code> to <code>yes</code> for a festival that hasn't happened yet -- the badge becomes "Upcoming &lt;type&gt;" and the lead paragraph switches to future tense (e.g. "is scheduled to take place on" instead of "was held on"). Leave <code>winner</code>/<code>second</code>/<code>third</code> etc. blank until there are actual results to add.
Edit [[Template:Tournament data/Asgard V]] to change its facts. The same record supplies this infobox, generated prose, chronology dates, and overview cards. Calling this renderer directly is supported for compatibility but is no longer the recommended editing workflow.


== Parameters ==
== Data parameters ==


{| class="wikitable"
{| class="wikitable"
Line 53: Line 33:
! colspan="2" style="text-align:left;" | Basic
! colspan="2" style="text-align:left;" | Basic
|-
|-
| <code>name</code> || Tournament name, defaults to the page name
| <code>name</code> || Tournament name
|-
|-
| <code>date</code> || Full date, e.g. <code>July 19, 2026</code>
| <code>date</code> || Full date, e.g. <code>July 19, 2026</code>
|-
|-
| <code>image</code> || Header banner photo
| <code>image</code> || Header image filename
|-
|-
| <code>type</code> || Badge text, defaults to <code>Player Run Festival</code>
| <code>type</code> || Badge text, defaults to <code>Player Run Festival</code>
|-
|-
| <code>upcoming</code> || Set to <code>yes</code> for a not-yet-happened festival -- badge becomes "Upcoming &lt;type&gt;", lead paragraph switches to future tense
| <code>upcoming</code> || Set to <code>yes</code> before the tournament takes place
|-
|-
! colspan="2" style="text-align:left;" | Tournament Details
! colspan="2" style="text-align:left;" | Tournament Details
Line 67: Line 47:
| <code>format</code> || Team size, e.g. <code>3v3</code>
| <code>format</code> || Team size, e.g. <code>3v3</code>
|-
|-
| <code>mode</code> || Ruleset: <code>Potion</code> or <code>Barebones</code>, shown next to Format with its own icon
| <code>mode</code> || <code>Potion</code> or <code>Barebones</code>
|-
|-
| <code>host</code> || Hosting town
| <code>host</code> || Hosting town
|-
|-
| <code>continent</code> || Host town's continent, e.g. <code>Ascalon</code>
| <code>continent</code> || Host town's continent
|-
|-
| <code>runner1</code>-<code>runner6</code> || Up to six tournament organizers
| <code>runner1</code>-<code>runner6</code> || Up to six tournament organizers
|-
|-
| <code>post</code> || Numeric Loka Forums thread ID (just the number from the thread URL)
| <code>post</code> || Numeric Loka Forums thread ID
|-
|-
| <code>challonge</code> || Challonge tournament ID, e.g. <code>riversideI</code> for <code>challonge.com/riversideI</code>
| <code>challonge</code> || Challonge tournament ID
|-
|-
! colspan="2" style="text-align:left;" | Results
! colspan="2" style="text-align:left;" | Results
|-
|-
| <code>winner</code> / <code>second</code> / <code>third</code> || 1v1 only: winning player for that placing
| <code>winner</code> / <code>second</code> / <code>third</code> || Placed players for 1v1
|-
|-
| <code>winnerteam</code> / <code>secondteam</code> / <code>thirdteam</code> || 2v2/3v3 only: team name for that placing (also relabels the medal "Winning Team")
| <code>winnerteam</code> / <code>secondteam</code> / <code>thirdteam</code> || Team names for 2v2 or 3v3
|-
|-
| <code>winner1</code>-<code>3</code> / <code>second1</code>-<code>3</code> / <code>third1</code>-<code>3</code> || 2v2/3v3 only: up to three members for that placing
| <code>winner1</code>-<code>3</code> / <code>second1</code>-<code>3</code> / <code>third1</code>-<code>3</code> || Team members for each placing
|-
|-
! colspan="2" style="text-align:left;" | Chronology
! colspan="2" style="text-align:left;" | Chronology
|-
|-
| <code>previous</code> / <code>previousmonth</code> || Prior festival overall, and its month
| <code>previous</code> || Previous festival overall
|-
| <code>next</code> || Next festival overall
|-
|-
| <code>next</code> / <code>nextmonth</code> || Next festival overall, and its month -- shows "TBA" if blank
| <code>townprevious</code> || Previous festival hosted by the same town
|-
|-
| <code>townprevious</code> / <code>townpreviousmonth</code> || Prior festival hosted by the same town
| <code>townnext</code> || Next festival hosted by the same town
|-
|-
| <code>townnext</code> / <code>townnextmonth</code> || Next festival hosted by the same town -- omitted (not "TBA") if blank
| <code>previousmonth</code> / <code>nextmonth</code> / town equivalents || Temporary fallback when the linked tournament has no central data record yet
|}
|}


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

Revision as of 21:21, 18 August 2026

Use on tournament articles

Tournament articles should transclude their central data record:

{{Tournament data/Asgard V}}

Edit Template:Tournament data/Asgard V to change its facts. The same record supplies this infobox, generated prose, chronology dates, and overview cards. Calling this renderer directly is supported for compatibility but is no longer the recommended editing workflow.

Data parameters

Parameter Description
Basic
name Tournament name
date Full date, e.g. July 19, 2026
image Header image filename
type Badge text, defaults to Player Run Festival
upcoming Set to yes before the tournament takes place
Tournament Details
format Team size, e.g. 3v3
mode Potion or Barebones
host Hosting town
continent Host town's continent
runner1-runner6 Up to six tournament organizers
post Numeric Loka Forums thread ID
challonge Challonge tournament ID
Results
winner / second / third Placed players for 1v1
winnerteam / secondteam / thirdteam Team names for 2v2 or 3v3
winner1-3 / second1-3 / third1-3 Team members for each placing
Chronology
previous Previous festival overall
next Next festival overall
townprevious Previous festival hosted by the same town
townnext Next festival hosted by the same town
previousmonth / nextmonth / town equivalents Temporary fallback when the linked tournament has no central data record yet