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 Team: Difference between revisions

Template page
No edit summary
No edit summary
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}</includeonly><includeonly>{{#cargo_store:
This is the Infobox Team template.
== Cargo Declaration ==
{{#cargo_declare:
_table = Teams
|name = String
|short_code = String
|image = File
|country = String
|sponsors = List (,) of String
}}
</noinclude><includeonly>{{#cargo_store:
_table = Teams
_table = Teams
|name = {{{name|{{PAGENAME}}}}}
|name = {{{name|{{PAGENAME}}}}}
|short_code = {{{short_code|}}}
|short_code = {{{short_code|}}}
|other_team = {{{other_team|}}}
|image = {{{image|}}}
|image = {{{image|}}}
|image_dark = {{{image_dark|}}}
|country = {{{country|}}}
|country = {{{country|}}}
|status = {{{status|}}}
|sponsors = {{{sponsors|}}}
|sponsors = {{{sponsors|}}}
}}<div class="infobox">
|earnings = {{{earnings|}}}
    <div class="infobox-header">{{{name|{{PAGENAME}}}}}</div>
|instagram = {{{instagram|}}}
 
|twitter = {{{twitter|}}}
    {{#if:{{{image|}}}|
|youtube = {{{youtube|}}}
    <div class="infobox-image">[[File:{{{image}}}|200px]]</div>
    }}
 
    <div class="infobox-data-container">
       
        {{#if:{{{short_code|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Short Code</div>
            <div class="infobox-data">{{{short_code}}}</div>
        </div>
        }}
 
        {{#if:{{{country|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Country</div>
            <div class="infobox-data">{{{country}}}</div>
        </div>
        }}
 
        {{#if:{{{sponsors|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Sponsors</div>
            <div class="infobox-data">{{{sponsors}}}</div>
        </div>
        }}
 
    </div>
</div>
 
== Tournament Statistics ==
{{#cargo_query:
|tables=Match_Data
|fields=tournament, stage, COUNT(match_no)=Matches, SUM(wwcd)=WWCD, SUM(kill_pts)=Kills, SUM(total_pts)=Points
|where=team='{{PAGENAME}}'
|group by=tournament, stage
|order by=date DESC
|format=template
|template=TeamHistoryRow
|intro=<table class="wikitable" style="width:100%; text-align:center;">
<thead>
<tr>
  <th style="text-align:left;">Tournament</th>
  <th>Stage</th>
  <th>Matches</th>
  <th>WWCD</th>
  <th>Kills</th>
  <th>Total Pts</th>
</tr>
</thead><tbody>
|outro=</tbody></table>
|default=<p>''No match data available for this team yet.''</p>
}}
}}
 
{{#invoke:Team|infobox|name={{{name|{{PAGENAME}}}}}|short_code={{{short_code|}}}|other_team={{{other_team|}}}|image={{{image|}}}|image_dark={{{image_dark|}}}|country={{{country|}}}|status={{{status|}}}|sponsors={{{sponsors|}}}|instagram={{{instagram|}}}|twitter={{{twitter|}}}|youtube={{{youtube|}}} }}
[[Category:Teams]]</includeonly>
[[Category:Teams]]</includeonly>

Latest revision as of 13:30, 1 February 2026