Template:Tournament row: Difference between revisions
Template page
More actions
m Improve tournament list row content and image backdrop |
m Build reusable tournament data and rendering system |
||
| Line 1: | Line 1: | ||
<includeonly><div class="loka-tournament-list-row{{#if:{{{format|}}}| loka-tournament-list-row--{{lc:{{{format|}}}}}}}">{{#if:{{{image|}}}|{{#ifexist:File:{{{image|}}}|<div class="loka-tournament-list-backdrop">[[File:{{{image|}}}|420px|frameless|link=|alt=]]</div>}}}}<div class="loka-tournament-list-name">{{#if:{{{continent|}}}|[[File:Shield {{lc:{{{continent|}}}}}.png|14px|link=]] }}<span class="loka-tournament-list-primary">[[{{{name|}}}]]</span><span class="loka-tournament-list-date">{{#if:{{{date|}}}|{{#time:F Y|{{{date|}}}}}}}</span></div><div class="loka-tournament-list-format">{{#switch:{{lc:{{{mode|}}}}}|potion=[[File:Splash Potion of Healing.png|14px|link=]] |barebones=[[File:Wooden Sword.png|14px|link=]] |#default=}}{{#if:{{{format|}}}|{{{format|}}}}}{{#if:{{{mode|}}}|{{#ifeq:{{lc:{{{mode|}}}}}|potion|| {{{mode|}}}}}}}</div><div class="loka-tournament-list-placement loka-tournament-list-winner"><span class="loka-tournament-list-mobile-label">Winner(s)</span>{{#if:{{{winner|}}}{{{winnerteam|}}}|[[File:Medal Gold.png|16px|link=]] }}{{#if:{{{winnerteam|}}}|<span class="loka-tournament-list-placement-text"><span class="loka-tournament-list-placement-name">{{{winnerteam|}}}</span>{{#if:{{{winner1|}}}|<span class="loka-tournament-list-placement-members">{{#if:{{{winner1|}}}|{{{winner1|}}}}}{{#if:{{{winner2|}}}|{{#if:{{{winner1|}}}|{{#if:{{{winner3|}}}|, | and }}}}{{{winner2|}}}}}{{#if:{{{winner3|}}}|{{#if:{{{winner1|}}}{{{winner2|}}}|{{#if:|, | and }}}}{{{winner3|}}}}}</span>}}</span>|{{#if:{{{winner|}}}|<span class="loka-tournament-list-placement-text"><span class="loka-tournament-list-placement-name">{{{winner|}}}</span></span>|—}}}}</div><div class="loka-tournament-list-placement loka-tournament-list-second"><span class="loka-tournament-list-mobile-label">2nd</span>{{#if:{{{second|}}}{{{secondteam|}}}|[[File:Medal Silver.png|16px|link=]] }}{{#if:{{{secondteam|}}}|<span class="loka-tournament-list-placement-text"><span class="loka-tournament-list-placement-name">{{{secondteam|}}}</span>{{#if:{{{second1|}}}|<span class="loka-tournament-list-placement-members">{{#if:{{{second1|}}}|{{{second1|}}}}}{{#if:{{{second2|}}}|{{#if:{{{second1|}}}|{{#if:{{{second3|}}}|, | and }}}}{{{second2|}}}}}{{#if:{{{second3|}}}|{{#if:{{{second1|}}}{{{second2|}}}|{{#if:|, | and }}}}{{{second3|}}}}}</span>}}</span>|{{#if:{{{second|}}}|<span class="loka-tournament-list-placement-text"><span class="loka-tournament-list-placement-name">{{{second|}}}</span></span>|—}}}}</div><div class="loka-tournament-list-placement loka-tournament-list-third"><span class="loka-tournament-list-mobile-label">3rd</span>{{#if:{{{third|}}}{{{thirdteam|}}}|[[File:Medal Bronze.png|16px|link=]] }}{{#if:{{{thirdteam|}}}|<span class="loka-tournament-list-placement-text"><span class="loka-tournament-list-placement-name">{{{thirdteam|}}}</span>{{#if:{{{third1|}}}|<span class="loka-tournament-list-placement-members">{{#if:{{{third1|}}}|{{{third1|}}}}}{{#if:{{{third2|}}}|{{#if:{{{third1|}}}|{{#if:{{{third3|}}}|, | and }}}}{{{third2|}}}}}{{#if:{{{third3|}}}|{{#if:{{{third1|}}}{{{third2|}}}|{{#if:|, | and }}}}{{{third3|}}}}}</span>}}</span>|{{#if:{{{third|}}}|<span class="loka-tournament-list-placement-text"><span class="loka-tournament-list-placement-name">{{{third|}}}</span></span>|—}}}}</div></div></includeonly><noinclude> | <includeonly><div class="loka-tournament-list-row{{#if:{{{format|}}}| loka-tournament-list-row--{{lc:{{{format|}}}}}}}">{{#if:{{{image|}}}|{{#ifexist:File:{{{image|}}}|<div class="loka-tournament-list-backdrop">[[File:{{{image|}}}|420px|frameless|link=|alt=]]</div>}}}}<div class="loka-tournament-list-name">{{#if:{{{continent|}}}|[[File:Shield {{lc:{{{continent|}}}}}.png|14px|link=]] }}<span class="loka-tournament-list-primary">[[{{{name|}}}]]</span><span class="loka-tournament-list-date">{{#if:{{{date|}}}|{{#time:F Y|{{{date|}}}}}}}</span></div><div class="loka-tournament-list-format">{{#switch:{{lc:{{{mode|}}}}}|potion=[[File:Splash Potion of Healing.png|14px|link=]] |barebones=[[File:Wooden Sword.png|14px|link=]] |#default=}}{{#if:{{{format|}}}|{{{format|}}}}}{{#if:{{{mode|}}}|{{#ifeq:{{lc:{{{mode|}}}}}|potion|| {{{mode|}}}}}}}</div><div class="loka-tournament-list-placement loka-tournament-list-winner"><span class="loka-tournament-list-mobile-label">Winner(s)</span>{{#if:{{{winner|}}}{{{winnerteam|}}}|[[File:Medal Gold.png|16px|link=]] }}{{#if:{{{winnerteam|}}}|<span class="loka-tournament-list-placement-text"><span class="loka-tournament-list-placement-name">{{{winnerteam|}}}</span>{{#if:{{{winner1|}}}|<span class="loka-tournament-list-placement-members">{{#if:{{{winner1|}}}|{{{winner1|}}}}}{{#if:{{{winner2|}}}|{{#if:{{{winner1|}}}|{{#if:{{{winner3|}}}|, | and }}}}{{{winner2|}}}}}{{#if:{{{winner3|}}}|{{#if:{{{winner1|}}}{{{winner2|}}}|{{#if:|, | and }}}}{{{winner3|}}}}}</span>}}</span>|{{#if:{{{winner|}}}|<span class="loka-tournament-list-placement-text"><span class="loka-tournament-list-placement-name">{{{winner|}}}</span></span>|—}}}}{{#ifeq:{{lc:{{{format|}}}}}|1v1|<span class="loka-tournament-list-championship"><span class="loka-tournament-list-champion-current"><span class="loka-tournament-list-champion-label">Champion</span> {{#if:{{{winner|}}}|{{{winner|}}}|TBA}}</span><span class="loka-tournament-list-champion-history"><span class="loka-tournament-list-champion-label">Reigning</span> {{#if:{{#if:{{{reigningchampion|}}}|{{{reigningchampion|}}}|{{Tournament championship|name={{{name|}}}}}}}|{{#if:{{{reigningchampion|}}}|{{{reigningchampion|}}}|{{Tournament championship|name={{{name|}}}}}}}|Not recorded}} · {{#switch:{{lc:{{{championattendance|}}}}}|yes=Competed|no=No-show|#default=Not recorded}}</span></span>}}</div><div class="loka-tournament-list-placement loka-tournament-list-second"><span class="loka-tournament-list-mobile-label">2nd</span>{{#if:{{{second|}}}{{{secondteam|}}}|[[File:Medal Silver.png|16px|link=]] }}{{#if:{{{secondteam|}}}|<span class="loka-tournament-list-placement-text"><span class="loka-tournament-list-placement-name">{{{secondteam|}}}</span>{{#if:{{{second1|}}}|<span class="loka-tournament-list-placement-members">{{#if:{{{second1|}}}|{{{second1|}}}}}{{#if:{{{second2|}}}|{{#if:{{{second1|}}}|{{#if:{{{second3|}}}|, | and }}}}{{{second2|}}}}}{{#if:{{{second3|}}}|{{#if:{{{second1|}}}{{{second2|}}}|{{#if:|, | and }}}}{{{second3|}}}}}</span>}}</span>|{{#if:{{{second|}}}|<span class="loka-tournament-list-placement-text"><span class="loka-tournament-list-placement-name">{{{second|}}}</span></span>|—}}}}</div><div class="loka-tournament-list-placement loka-tournament-list-third"><span class="loka-tournament-list-mobile-label">3rd</span>{{#if:{{{third|}}}{{{thirdteam|}}}|[[File:Medal Bronze.png|16px|link=]] }}{{#if:{{{thirdteam|}}}|<span class="loka-tournament-list-placement-text"><span class="loka-tournament-list-placement-name">{{{thirdteam|}}}</span>{{#if:{{{third1|}}}|<span class="loka-tournament-list-placement-members">{{#if:{{{third1|}}}|{{{third1|}}}}}{{#if:{{{third2|}}}|{{#if:{{{third1|}}}|{{#if:{{{third3|}}}|, | and }}}}{{{third2|}}}}}{{#if:{{{third3|}}}|{{#if:{{{third1|}}}{{{third2|}}}|{{#if:|, | and }}}}{{{third3|}}}}}</span>}}</span>|{{#if:{{{third|}}}|<span class="loka-tournament-list-placement-text"><span class="loka-tournament-list-placement-name">{{{third|}}}</span></span>|—}}}}</div></div></includeonly><noinclude> | ||
== Usage == | == Usage == | ||
Revision as of 22:52, 18 August 2026
Usage
Rows are generated from a central record:
{{Tournament data/Riverside I|render=row}}
Do not enter tournament facts directly into this template.