Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ParticipantTeam: Difference between revisions

Template page
Created page with "<noinclude> Displays a Team Card for the participants list. Hovering reveals the roster. Usage: {{ParticipantTeam |team=Team Name |p1=Player1 |p2=Player2 ... |coach=CoachName}} == Cargo Declaration == {{#cargo_declare: _table = Tournament_Teams |tournament = String |team = String |p1 = String |p2 = String |p3 = String |p4 = String |p5 = String |coach = String }} </noinclude><includeonly> {{#cargo_store: _table = Tournament_Teams |tournament = {{#titleparts:{{PAGENAME}}|1..."
 
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Displays a Team Card for the participants list. Hovering reveals the roster.
Displays a Responsive Roster Card (Mobile Friendly).
Usage: {{ParticipantTeam |team=Team Name |p1=Player1 |p2=Player2 ... |coach=CoachName}}
Usage: {{ParticipantTeam |team=Team Name |seeding=Invited |p1=Player1 ...}}
== Cargo Declaration ==
== Cargo Declaration ==
{{#cargo_declare:
{{#cargo_declare:
Line 7: Line 7:
|tournament = String
|tournament = String
|team = String
|team = String
|seeding = String
|p1 = String
|p1 = String
|p2 = String
|p2 = String
Line 12: Line 13:
|p4 = String
|p4 = String
|p5 = String
|p5 = String
|p6 = String
|coach = String
|coach = String
|analyst = String
}}
}}
</noinclude><includeonly>
</noinclude><includeonly>{{#cargo_store:
{{#cargo_store:
_table = Tournament_Teams
_table = Tournament_Teams
|tournament = {{#titleparts:{{PAGENAME}}|1}}
|tournament = {{{tournament|{{#titleparts:{{PAGENAME}}|1|3}} }}}
|team = {{{team|}}}
|team = {{{team|}}}
|seeding = {{{seeding|}}}
|p1 = {{{p1|}}}
|p1 = {{{p1|}}}
|p2 = {{{p2|}}}
|p2 = {{{p2|}}}
Line 24: Line 27:
|p4 = {{{p4|}}}
|p4 = {{{p4|}}}
|p5 = {{{p5|}}}
|p5 = {{{p5|}}}
|p6 = {{{p6|}}}
|coach = {{{coach|}}}
|coach = {{{coach|}}}
}}
|analyst = {{{analyst|}}}
<div class="team-card">
}}{{#invoke:Participant|card|team={{{team|}}}|seeding={{{seeding|}}}|p1={{{p1|}}}|p2={{{p2|}}}|p3={{{p3|}}}|p4={{{p4|}}}|p5={{{p5|}}}|p6={{{p6|}}}|coach={{{coach|}}}|analyst={{{analyst|}}}}}</includeonly>
<div class="team-card-header">
<div class="img-fit" style="width:100%; height:120px; display:flex; align-items:center; justify-content:center;">
{{#ifexist: File:{{{team}}}.png
| [[File:{{{team}}}.png|link={{{team}}}]]
| [[File:Shield_team.png|link={{{team}}}]]
}}
</div>
<div style="font-size:1.1em; line-height:1.2;">[[{{{team}}}]]</div>
</div>
 
<div class="team-card-overlay">
<ul>
{{#if:{{{p1|}}}|<li>[[{{{p1}}}]]</li>}}
{{#if:{{{p2|}}}|<li>[[{{{p2}}}]]</li>}}
{{#if:{{{p3|}}}|<li>[[{{{p3}}}]]</li>}}
{{#if:{{{p4|}}}|<li>[[{{{p4}}}]]</li>}}
{{#if:{{{p5|}}}|<li>[[{{{p5}}}]]</li>}}
{{#if:{{{coach|}}}|<li><small>C: [[{{{coach}}}]]</small></li>}}
</ul>
</div>
</div>
</includeonly>

Latest revision as of 01:42, 25 January 2026

Displays a Responsive Roster Card (Mobile Friendly).

Usage:

Cargo Declaration

This template defines the table "Tournament_Teams". View table.