Template:Infobox tournament: Difference between revisions
More actions
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 3: | Line 3: | ||
|image= | |image= | ||
|type={{{type|}}} | |type={{{type|}}} | ||
|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 | |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"><span class="loka-infobox-row-key">Tournament Runners</span><span class="loka-infobox-row-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>}}{{#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">[[{{{previous|}}}]]</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">—</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">[[{{{next|}}}]]</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">[[{{{townprevious|}}}]]</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">—</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">[[{{{townnext|}}}]]</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 20: | Line 20: | ||
|runner4=babisoy | |runner4=babisoy | ||
|bid=10961 | |bid=10961 | ||
|challonge= | |challonge=exampleI | ||
|winner=PlayerName | |winner=PlayerName | ||
|second=PlayerName | |second=PlayerName | ||
|third=PlayerName | |third=PlayerName | ||
|previous=Asgard IV | |previous=Asgard IV | ||
|previousyear=2025 | |previousyear=November 2025 | ||
|next=Asgard VI | |next=Asgard VI | ||
|townprevious=Asgard IV | |townprevious=Asgard IV | ||
|townpreviousyear=2025 | |townpreviousyear=November 2025 | ||
|townnext=Asgard VI | |townnext=Asgard VI | ||
}} | }} | ||
</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/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. | 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. "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 <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. | 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 (without the vertical dividers or quote marks around the linked titles -- tournament names aren't quoted works the way song titles are). 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. | ||
== Parameters == | == Parameters == | ||
| Line 52: | Line 52: | ||
|- | |- | ||
| <code>year</code> | | <code>year</code> | ||
| 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. | | This tournament's month and year (e.g. <code>July 2026</code>), shown under its own name in the chronology boxes. Separate from <code>date</code> since a bare month/year can't be reliably extracted from a full date without the StringFunctions extension. | ||
|- | |- | ||
| <code>image</code> | | <code>image</code> | ||
| Line 85: | Line 85: | ||
|- | |- | ||
| <code>previous</code> / <code>previousyear</code> / <code>next</code> / <code>nextyear</code> | | <code>previous</code> / <code>previousyear</code> / <code>next</code> / <code>nextyear</code> | ||
| General festival chronology: the previous/next festival overall, with optional | | General festival chronology: the previous/next festival overall, with optional month/year (e.g. <code>previousyear=April 2026</code>). | ||
|- | |- | ||
| <code>townprevious</code> / <code>townpreviousyear</code> / <code>townnext</code> / <code>townnextyear</code> | | <code>townprevious</code> / <code>townpreviousyear</code> / <code>townnext</code> / <code>townnextyear</code> | ||
Revision as of 06:15, 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.
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.
|