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 Split remaining inline CSS into /styles.css; delegate shared infobox chrome to Template:Infobox for wiki-wide visual parity
m Split remaining inline CSS into /styles.css; delegate shared infobox chrome to Template:Infobox for wiki-wide visual parity
Line 1: Line 1:
<includeonly><templatestyles src="Template:Infobox tournament/styles.css" />{{Infobox
<includeonly><templatestyles src="Template:Infobox tournament/styles.css" />{{Infobox
|name={{{name|{{PAGENAME}}}}}
|name={{{name|{{PAGENAME}}}}}
|image={{{image|}}}
|image=
|type={{{type|}}}
|type={{{type|}}}
|content={{#if:{{{format|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Format</span><span class="loka-infobox-row-value">{{{format|}}}</span></div>}}{{#if:{{{host|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Host town</span><span class="loka-infobox-row-value">[[{{{host|}}}]]</span></div>}}{{#if:{{{runner1|}}}|<div class="loka-infobox-row loka-infobox-row--wide"><span class="loka-infobox-row-key">Tournament Runners</span><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></div>}}{{#if:{{{bid|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Forums Bid</span><span class="loka-infobox-row-value">[https://forums.lokamc.com/threads/{{{bid|}}}/ Thread]</span></div>}}{{#if:{{{challonge|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Bracket</span><span class="loka-infobox-row-value">[[File:Challonge logo.svg|16px|link=https://challonge.com/{{{challonge|}}}]] [https://challonge.com/{{{challonge|}}} Challonge]</span></div>}}{{#if:{{{winnerteam|}}}|<div class="loka-podium-row">[[File:Gold Medal.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">Winner</div><div class="loka-podium-team">{{{winnerteam|}}}</div><ul class="loka-hlist">{{#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:Gold Medal.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:Silver Medal.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">{{#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:Silver Medal.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:Bronze Medal.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">{{#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:Bronze Medal.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>}}}}{{#if:{{{previous|}}}{{{next|}}}|<div class="loka-chrono-box"><div class="loka-chrono-header">Festival Chronology</div><div class="loka-chrono-grid">{{#if:{{{previous|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">&quot;[[{{{previous|}}}]]&quot;</div>{{#if:{{{previousyear|}}}|<div class="loka-chrono-year">({{{previousyear|}}})</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:{{{year|}}}|<div class="loka-chrono-year">({{{year|}}})</div>}}</div>{{#if:{{{next|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">&quot;[[{{{next|}}}]]&quot;</div>{{#if:{{{nextyear|}}}|<div class="loka-chrono-year">({{{nextyear|}}})</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">{{{host|}}} Chronology</div><div class="loka-chrono-grid">{{#if:{{{townprevious|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">&quot;[[{{{townprevious|}}}]]&quot;</div>{{#if:{{{townpreviousyear|}}}|<div class="loka-chrono-year">({{{townpreviousyear|}}})</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:{{{year|}}}|<div class="loka-chrono-year">({{{year|}}})</div>}}</div>{{#if:{{{townnext|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">&quot;[[{{{townnext|}}}]]&quot;</div>{{#if:{{{townnextyear|}}}|<div class="loka-chrono-year">({{{townnextyear|}}})</div>}}</div>|<div class="loka-chrono-pane loka-chrono-pane--tba"><div class="loka-chrono-tba">TBA</div></div>}}</div></div>}}
|content={{#if:{{{image|}}}|<div class="loka-tournament-image">[[File:{{{image|}}}|300px|frameless|alt={{{name|{{PAGENAME}}}}}]]</div>}}{{#if:{{{date|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Date</span><span class="loka-infobox-row-value">{{{date|}}}</span></div>}}{{#if:{{{format|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Format</span><span class="loka-infobox-row-value">{{{format|}}}</span></div>}}{{#if:{{{host|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Host town</span><span class="loka-infobox-row-value">[[{{{host|}}}]]</span></div>}}{{#if:{{{runner1|}}}|<div class="loka-infobox-row loka-infobox-row--wide"><span class="loka-infobox-row-key">Tournament Runners</span><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></div>}}{{#if:{{{bid|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Forums Bid</span><span class="loka-infobox-row-value">[https://forums.lokamc.com/threads/{{{bid|}}}/ Thread]</span></div>}}{{#if:{{{challonge|}}}|<div class="loka-infobox-row"><span class="loka-infobox-row-key">Bracket</span><span class="loka-infobox-row-value">[[File:Challonge logo.svg|16px|link=https://challonge.com/{{{challonge|}}}]] [https://challonge.com/{{{challonge|}}} Challonge]</span></div>}}{{#if:{{{winnerteam|}}}|<div class="loka-podium-row">[[File:Gold Medal.png|22px|link=]]<div class="loka-podium-info"><div class="loka-podium-label">Winner</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:Gold Medal.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:Silver Medal.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:Silver Medal.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:Bronze Medal.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:Bronze Medal.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>}}}}{{#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">Festival Chronology</div><div class="loka-chrono-grid">{{#if:{{{previous|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">&quot;[[{{{previous|}}}]]&quot;</div>{{#if:{{{previousyear|}}}|<div class="loka-chrono-year">({{{previousyear|}}})</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:{{{year|}}}|<div class="loka-chrono-year">({{{year|}}})</div>}}</div>{{#if:{{{next|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">&quot;[[{{{next|}}}]]&quot;</div>{{#if:{{{nextyear|}}}|<div class="loka-chrono-year">({{{nextyear|}}})</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">{{{host|}}} Chronology</div><div class="loka-chrono-grid">{{#if:{{{townprevious|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">&quot;[[{{{townprevious|}}}]]&quot;</div>{{#if:{{{townpreviousyear|}}}|<div class="loka-chrono-year">({{{townpreviousyear|}}})</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:{{{year|}}}|<div class="loka-chrono-year">({{{year|}}})</div>}}</div>{{#if:{{{townnext|}}}|<div class="loka-chrono-pane"><div class="loka-chrono-title">&quot;[[{{{townnext|}}}]]&quot;</div>{{#if:{{{townnextyear|}}}|<div class="loka-chrono-year">({{{townnextyear|}}})</div>}}</div>|<div class="loka-chrono-pane loka-chrono-pane--tba"><div class="loka-chrono-tba">TBA</div></div>}}</div></div>}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
== Usage ==
== Usage ==
Line 10: Line 10:
{{Infobox tournament
{{Infobox tournament
|name=Asgard V
|name=Asgard V
|date=February 14, 2026
|year=2026
|year=2026
|type=Player Run Festival
|type=Player Run Festival
Line 32: Line 33:
</pre>
</pre>


Only <code>name</code> is required (it otherwise defaults to the page name); every other row is hidden when omitted. Built on [[Template:Infobox]] for the shared name/image/type-badge/row chrome -- see there for the wiki's common infobox look.
Only <code>name</code> 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 <code>image</code> slot), so it spans the panel edge to edge.


For a 2v2/3v3 podium finish, use the <code>*team</code> + <code>*1</code>/<code>*2</code>/<code>*3</code> parameters instead of the plain one (e.g. <code>winnerteam</code>, <code>winner1</code>, <code>winner2</code>, <code>winner3</code>) -- team fields take priority over the plain field if both are somehow given.
For a 2v2/3v3 podium finish, use the <code>*team</code> + <code>*1</code>/<code>*2</code>/<code>*3</code> parameters instead of the plain one (e.g. <code>winnerteam</code>, <code>winner1</code>, <code>winner2</code>, <code>winner3</code>) -- 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. If <code>next</code> (or <code>townnext</code>) 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.
Both chronology sections render as a three-pane "previous / this tournament / next" box, matching Wikipedia's album/single succession boxes. If <code>next</code> (or <code>townnext</code>) 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.
Line 46: Line 47:
| <code>name</code>
| <code>name</code>
| Tournament name. Defaults to the page name.
| Tournament name. Defaults to the page name.
|-
| <code>date</code>
| Full date the tournament took place, shown as its own row.
|-
|-
| <code>year</code>
| <code>year</code>
| This tournament's year, shown under its own name in the chronology boxes.
| This tournament's year, shown under its own name in the chronology boxes. Separate from <code>date</code> since a bare year can't be reliably extracted from a full date without the StringFunctions extension.
|-
|-
| <code>image</code>
| <code>image</code>
| Filename of an image uploaded to the wiki (no <code>File:</code> prefix).
| Filename of an image uploaded to the wiki (no <code>File:</code> prefix). Rendered full-width.
|-
|-
| <code>type</code>
| <code>type</code>

Revision as of 06:03, 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=riversideI
|winner=PlayerName
|second=PlayerName
|third=PlayerName
|previous=Asgard IV
|previousyear=2025
|next=Asgard VI
|townprevious=Asgard IV
|townpreviousyear=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.

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. 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.

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 year, shown under its own name in the chronology boxes. Separate from date since a bare 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 years.
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.