Template:Infobox tournament: Difference between revisions
Template page
More actions
Create Template:Infobox tournament |
m Create Template:Infobox tournament |
||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:Infobox tournament/styles.css" /><div class="loka-tournament-infobox"><div class="loka-tournament-name">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|<div class="loka-tournament-image">[[File:{{{image}}}|280px|frameless|alt={{{name|{{PAGENAME}}}}}]]</div>}}{{#if:{{{ | <includeonly><templatestyles src="Template:Infobox tournament/styles.css" /><div class="loka-tournament-infobox"><div class="loka-tournament-name">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{type|}}}|<div class="loka-tournament-type">{{{type|}}}</div>}}{{#if:{{{image|}}}|<div class="loka-tournament-image">[[File:{{{image|}}}|280px|frameless|alt={{{name|{{PAGENAME}}}}}]]</div>}}{{#if:{{{format|}}}|<div class="loka-tournament-row"><span class="loka-tournament-row-key">Format</span><span class="loka-tournament-row-value">{{{format|}}}</span></div>}}{{#if:{{{host|}}}|<div class="loka-tournament-row"><span class="loka-tournament-row-key">Host</span><span class="loka-tournament-row-value">[[{{{host|}}}]]</span></div>}}{{#if:{{{runner1|}}}|<div class="loka-tournament-row loka-tournament-row--wide"><span class="loka-tournament-row-key">Players Running Festival</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-tournament-row"><span class="loka-tournament-row-key">Forums Bid</span><span class="loka-tournament-row-value">[https://forums.lokamc.com/threads/{{{bid|}}}/ Thread]</span></div>}}{{#if:{{{challonge|}}}|<div class="loka-tournament-row"><span class="loka-tournament-row-key">Bracket</span><span class="loka-tournament-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-tournament-chrono"><div class="loka-tournament-chrono-heading">Festival Chronology</div><div class="loka-tournament-chrono-row">{{#if:{{{previous|}}}|<span class="loka-tournament-chrono-prev">← [[{{{previous|}}}]]</span>}}{{#if:{{{next|}}}|<span class="loka-tournament-chrono-next">[[{{{next|}}}]] →</span>}}</div></div>}}{{#if:{{{townprevious|}}}{{{townnext|}}}|<div class="loka-tournament-chrono"><div class="loka-tournament-chrono-heading">{{{host|}}} Chronology</div><div class="loka-tournament-chrono-row">{{#if:{{{townprevious|}}}|<span class="loka-tournament-chrono-prev">← [[{{{townprevious|}}}]]</span>}}{{#if:{{{townnext|}}}|<span class="loka-tournament-chrono-next">[[{{{townnext|}}}]] →</span>}}</div></div>}}</div></includeonly><noinclude> | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{Infobox tournament | {{Infobox tournament | ||
|name= | |name=Asgard V | ||
| | |type=Player Run Festival | ||
|host= | |format=1v1 | ||
| | |host=Asgard | ||
| | |runner1=Deevil | ||
| | |runner2=nainti | ||
|runner3=Aqronso | |||
|runner4=babisoy | |||
|bid=10961 | |||
|challonge=riversideI | |||
|winner=PlayerName | |winner=PlayerName | ||
| | |second=PlayerName | ||
|third=PlayerName | |||
|previous=Asgard IV | |||
|next=Asgard VI | |||
|townprevious=Asgard IV | |||
|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. | Only <code>name</code> is required (it otherwise defaults to the page name); every other row is hidden when omitted. | ||
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. | |||
== Parameters == | == Parameters == | ||
| Line 28: | Line 39: | ||
| <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). | ||
|- | |||
| <code>type</code> | |||
| Free text, shown as a badge under the name -- e.g. <code>Player Run Festival</code>, matching the Loka Forums' own thread prefixes (Player Run Festival / Official Loka Festival / Unofficial Festival). | |||
|- | |||
| <code>format</code> | |||
| E.g. <code>1v1</code>, <code>2v2</code>, <code>3v3</code>. | |||
|- | |- | ||
| <code>host</code> | | <code>host</code> | ||
| | | Hosting town. Wikilinked. | ||
|- | |||
| <code>runner1</code> ... <code>runner6</code> | |||
| Up to six players running the festival, shown as a horizontal list. | |||
|- | |||
| <code>bid</code> | |||
| Numeric Loka Forums thread ID for the festival's bid thread (e.g. <code>10961</code> for <code>forums.lokamc.com/threads/asgard-v-february.10961/</code> -- the bare ID alone resolves correctly, no slug needed). | |||
|- | |||
| <code>challonge</code> | |||
| Challonge tournament ID, e.g. <code>riversideI</code> for <code>challonge.com/riversideI</code>. | |||
|- | |- | ||
| <code> | | <code>winner</code> / <code>second</code> / <code>third</code> | ||
| | | 1v1 podium: the winning player's name for that placing. | ||
|- | |- | ||
| <code> | | <code>winnerteam</code> / <code>secondteam</code> / <code>thirdteam</code> | ||
| 2v2/3v3 podium: the team's name for that placing. | |||
|- | |- | ||
| <code> | | <code>winner1</code>-<code>winner3</code> / <code>second1</code>-<code>second3</code> / <code>third1</code>-<code>third3</code> | ||
| | | 2v2/3v3 podium: up to three team members for that placing. | ||
|- | |- | ||
| <code> | | <code>previous</code> / <code>next</code> | ||
| | | General festival chronology: the previous/next festival overall. | ||
|- | |- | ||
| <code> | | <code>townprevious</code> / <code>townnext</code> | ||
| | | 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 "<code>{{{host}}} Chronology</code>" section. | ||
|} | |} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 21:05, 17 August 2026
Usage
{{Infobox tournament
|name=Asgard V
|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
|next=Asgard VI
|townprevious=Asgard IV
|townnext=Asgard VI
}}
Only name is required (it otherwise defaults to the page name); every other row is hidden when omitted.
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.
Parameters
| Parameter | Description |
|---|---|
name
|
Tournament name. Defaults to the page name. |
image
|
Filename of an image uploaded to the wiki (no File: prefix).
|
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. |
runner1 ... runner6
|
Up to six players running the festival, 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 / next
|
General festival chronology: the previous/next festival overall. |
townprevious / townnext
|
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" section.
|