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
m Infobox tournament: auto-generate a lead paragraph from the same infobox parameters
Line 6: Line 6:
}}
}}


'''{{{name|{{PAGENAME}}}}}''' was a {{#if:{{{format|}}}|{{{format|}}} |}}{{#if:{{{type|}}}|{{{type|}}}|tournament}}{{#if:{{{host|}}}| hosted by [[{{{host|}}}]]}}{{#if:{{{date|}}}| on {{{date|}}}}}.{{#if:{{{runner1|}}}| It was organized by <ul class="loka-hlist">{{#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>.}}{{#if:{{{bid|}}}| It was bid for on the [https://forums.lokamc.com/threads/{{{bid|}}}/ Loka Forums].}}{{#if:{{{challonge|}}}| Its bracket was run through [https://challonge.com/{{{challonge|}}} Challonge].}}{{#if:{{{winner|}}}{{{winnerteam|}}}{{{second|}}}{{{secondteam|}}}{{{third|}}}{{{thirdteam|}}}|
'''{{{name|{{PAGENAME}}}}}''' was a {{#if:{{{format|}}}|{{{format|}}}&#32;|}}{{#if:{{{type|}}}|{{{type|}}}|tournament}}{{#if:{{{host|}}}|&#32;hosted by [[{{{host|}}}]]}}{{#if:{{{date|}}}|&#32;on {{{date|}}}}}.{{#if:{{{runner1|}}}|&#32;It was organized by <ul class="loka-hlist">{{#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>.}}{{#if:{{{bid|}}}|&#32;It was bid for on the [https://forums.lokamc.com/threads/{{{bid|}}}/ Loka Forums].}}{{#if:{{{challonge|}}}|&#32;Its bracket was run through [https://challonge.com/{{{challonge|}}} Challonge].}}


{{#if:{{{winner|}}}{{{winnerteam|}}}|The tournament was won by {{#if:{{{winnerteam|}}}|{{{winnerteam|}}} (<ul class="loka-hlist">{{#if:{{{winner1|}}}|<li>{{{winner1|}}}</li>}}{{#if:{{{winner2|}}}|<li>{{{winner2|}}}</li>}}{{#if:{{{winner3|}}}|<li>{{{winner3|}}}</li>}}</ul>)|{{{winner|}}}}}.}} {{#if:{{{second|}}}{{{secondteam|}}}|{{#if:{{{third|}}}{{{thirdteam|}}}|{{#if:{{{secondteam|}}}|{{{secondteam|}}} (<ul class="loka-hlist">{{#if:{{{second1|}}}|<li>{{{second1|}}}</li>}}{{#if:{{{second2|}}}|<li>{{{second2|}}}</li>}}{{#if:{{{second3|}}}|<li>{{{second3|}}}</li>}}</ul>)|{{{second|}}}}} placed second, and {{#if:{{{thirdteam|}}}|{{{thirdteam|}}} (<ul class="loka-hlist">{{#if:{{{third1|}}}|<li>{{{third1|}}}</li>}}{{#if:{{{third2|}}}|<li>{{{third2|}}}</li>}}{{#if:{{{third3|}}}|<li>{{{third3|}}}</li>}}</ul>)|{{{third|}}}}} placed third.|{{#if:{{{secondteam|}}}|{{{secondteam|}}} (<ul class="loka-hlist">{{#if:{{{second1|}}}|<li>{{{second1|}}}</li>}}{{#if:{{{second2|}}}|<li>{{{second2|}}}</li>}}{{#if:{{{second3|}}}|<li>{{{second3|}}}</li>}}</ul>)|{{{second|}}}}} placed second.}}|{{#if:{{{third|}}}{{{thirdteam|}}}|{{#if:{{{thirdteam|}}}|{{{thirdteam|}}} (<ul class="loka-hlist">{{#if:{{{third1|}}}|<li>{{{third1|}}}</li>}}{{#if:{{{third2|}}}|<li>{{{third2|}}}</li>}}{{#if:{{{third3|}}}|<li>{{{third3|}}}</li>}}</ul>)|{{{third|}}}}} placed third.}}}}}}{{#if:{{{previous|}}}{{{next|}}}|
{{#if:{{{winner|}}}{{{winnerteam|}}}{{{second|}}}{{{secondteam|}}}{{{third|}}}{{{thirdteam|}}}|{{#if:{{{winner|}}}{{{winnerteam|}}}|The tournament was won by {{#if:{{{winnerteam|}}}|{{{winnerteam|}}} (<ul class="loka-hlist">{{#if:{{{winner1|}}}|<li>{{{winner1|}}}</li>}}{{#if:{{{winner2|}}}|<li>{{{winner2|}}}</li>}}{{#if:{{{winner3|}}}|<li>{{{winner3|}}}</li>}}</ul>)|{{{winner|}}}}}.}} {{#if:{{{second|}}}{{{secondteam|}}}|{{#if:{{{third|}}}{{{thirdteam|}}}|{{#if:{{{secondteam|}}}|{{{secondteam|}}} (<ul class="loka-hlist">{{#if:{{{second1|}}}|<li>{{{second1|}}}</li>}}{{#if:{{{second2|}}}|<li>{{{second2|}}}</li>}}{{#if:{{{second3|}}}|<li>{{{second3|}}}</li>}}</ul>)|{{{second|}}}}} placed second, and {{#if:{{{thirdteam|}}}|{{{thirdteam|}}} (<ul class="loka-hlist">{{#if:{{{third1|}}}|<li>{{{third1|}}}</li>}}{{#if:{{{third2|}}}|<li>{{{third2|}}}</li>}}{{#if:{{{third3|}}}|<li>{{{third3|}}}</li>}}</ul>)|{{{third|}}}}} placed third.|{{#if:{{{secondteam|}}}|{{{secondteam|}}} (<ul class="loka-hlist">{{#if:{{{second1|}}}|<li>{{{second1|}}}</li>}}{{#if:{{{second2|}}}|<li>{{{second2|}}}</li>}}{{#if:{{{second3|}}}|<li>{{{second3|}}}</li>}}</ul>)|{{{second|}}}}} placed second.}}|{{#if:{{{third|}}}{{{thirdteam|}}}|{{#if:{{{thirdteam|}}}|{{{thirdteam|}}} (<ul class="loka-hlist">{{#if:{{{third1|}}}|<li>{{{third1|}}}</li>}}{{#if:{{{third2|}}}|<li>{{{third2|}}}</li>}}{{#if:{{{third3|}}}|<li>{{{third3|}}}</li>}}</ul>)|{{{third|}}}}} placed third.}}}}}}


{{#if:{{{previous|}}}|{{{name|{{PAGENAME}}}}} followed [[{{{previous|}}}]]{{#if:{{{previousyear|}}}|, held in {{{previousyear|}}}}}, in the wiki's overall festival chronology.}} {{#if:{{{next|}}}|It was followed by [[{{{next|}}}]]{{#if:{{{nextyear|}}}|, held in {{{nextyear|}}}}}.|As of the wiki's most recent update, no successor festival has been announced.}}}}</includeonly><noinclude>
{{#if:{{{previous|}}}{{{next|}}}|{{#if:{{{previous|}}}|{{{name|{{PAGENAME}}}}} followed [[{{{previous|}}}]]{{#if:{{{previousyear|}}}|, held in {{{previousyear|}}}}}, in the wiki's overall festival chronology.}} {{#if:{{{next|}}}|It was followed by [[{{{next|}}}]]{{#if:{{{nextyear|}}}|, held in {{{nextyear|}}}}}.|As of the wiki's most recent update, no successor festival has been announced.}}}}</includeonly><noinclude>
== Usage ==
== Usage ==



Revision as of 06:44, 18 August 2026

Usage

{{Infobox tournament
|name=Asgard V
|date=February 14, 2026
|year=2026
|type=Player Run Festival
|format=1v1
|host=Asgard
|runner1=Deevil
|runner2=nainti
|runner3=Aqronso
|runner4=babisoy
|bid=10961
|challonge=exampleI
|winner=PlayerName
|second=PlayerName
|third=PlayerName
|previous=Asgard IV
|previousyear=November 2025
|next=Asgard VI
|townprevious=Asgard IV
|townpreviousyear=November 2025
|townnext=Asgard VI
}}

Only name is required (it otherwise defaults to the page name); every other row is hidden when omitted. Built on Template:Infobox for the shared name/type-badge/row chrome -- see there for the wiki's common infobox look. Unlike Infobox town/player, the image is its own full-width block (not Infobox's padded image slot), so it spans the panel edge to edge. "Tournament Runners" uses the standard label-left/value-right row, same as every other row -- the runner names themselves are just stacked one per line within that right-hand column.

For a 2v2/3v3 podium finish, use the *team + *1/*2/*3 parameters instead of the plain one (e.g. winnerteam, winner1, winner2, winner3) -- team fields take priority over the plain field if both are somehow given. Team members (and Tournament Runners) are listed one per line rather than comma-separated. Whenever any podium field is filled in, a small disclaimer ("IGNs correct at the time of tournament") appears underneath.

Both chronology sections render as a three-pane "previous / this tournament / next" box, matching Wikipedia's album/single succession boxes (without the vertical dividers or quote marks around the linked titles -- tournament names aren't quoted works the way song titles are). If next (or townnext) isn't given, that pane shows a grey "TBA" instead of being left blank, since a series' next entry is often simply not announced yet.

In addition to the infobox itself, the template outputs an auto-generated lead paragraph directly below it, built from the same parameters (identity/host/date, organizers, bid/bracket links, podium results, and general chronology). It's plain flowing wikitext, not part of the floated box, so it wraps to the left of the infobox the way a Wikipedia lead does. Every clause is individually optional and disappears if its underlying field is empty, so the wording is always in sync with the infobox and never needs to be hand-written or duplicated -- at the cost of being fairly formulaic, since it has no room for page-specific voice.

Parameters

Parameter Description
name Tournament name. Defaults to the page name.
date Full date the tournament took place, shown as its own row.
year This tournament's month and year (e.g. July 2026), shown under its own name in the chronology boxes. Separate from date since a bare month/year can't be reliably extracted from a full date without the StringFunctions extension.
image Filename of an image uploaded to the wiki (no File: prefix). Rendered full-width.
type Free text, shown as a badge under the name -- e.g. Player Run Festival, matching the Loka Forums' own thread prefixes (Player Run Festival / Official Loka Festival / Unofficial Festival).
format E.g. 1v1, 2v2, 3v3.
host Hosting town. Wikilinked. Displayed as "Host town".
runner1 ... runner6 Up to six players running the festival ("Tournament Runners"), shown as a horizontal list.
bid Numeric Loka Forums thread ID for the festival's bid thread (e.g. 10961 for forums.lokamc.com/threads/asgard-v-february.10961/ -- the bare ID alone resolves correctly, no slug needed).
challonge Challonge tournament ID, e.g. riversideI for challonge.com/riversideI.
winner / second / third 1v1 podium: the winning player's name for that placing.
winnerteam / secondteam / thirdteam 2v2/3v3 podium: the team's name for that placing.
winner1-winner3 / second1-second3 / third1-third3 2v2/3v3 podium: up to three team members for that placing.
previous / previousyear / next / nextyear General festival chronology: the previous/next festival overall, with optional month/year (e.g. previousyear=April 2026).
townprevious / townpreviousyear / townnext / townnextyear Town-specific chronology: the previous/next festival hosted by the same town (e.g. Asgard IV / Asgard VI for Asgard V), shown as its own "{{{host}}} Chronology" box.