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
 
(26 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
|other_team = String
|image = File
|country = String
|sponsors = List (,) of String
|earnings = Integer
}}
</noinclude><includeonly>{{#cargo_store:
_table = Teams
_table = Teams
|name = {{{name|{{PAGENAME}}}}}
|name = {{{name|{{PAGENAME}}}}}
Line 18: Line 5:
|other_team = {{{other_team|}}}
|other_team = {{{other_team|}}}
|image = {{{image|}}}
|image = {{{image|}}}
|image_dark = {{{image_dark|}}}
|country = {{{country|}}}
|country = {{{country|}}}
|status = {{{status|}}}
|sponsors = {{{sponsors|}}}
|sponsors = {{{sponsors|}}}
|earnings = {{{earnings|}}}
|earnings = {{{earnings|}}}
}}<div class="infobox">
|instagram = {{{instagram|}}}
    <div class="infobox-header">{{{name|{{PAGENAME}}}}}</div>
|twitter = {{{twitter|}}}
 
|youtube = {{{youtube|}}}
    {{#if:{{{image|}}}|
}}
    <div class="infobox-image">[[File:{{{image}}}|200px]]</div>
{{#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|}}} }}
    }}
 
    <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:{{{other_team|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Current Name</div>
            <div class="infobox-data">{{{other_team}}}</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 class="infobox-row">
<div class="infobox-label">Total Earnings</div>
<div class="infobox-data"><span class="indian-currency">{{#cargo_query:|tables=Tournament_Prizes|fields=SUM(money)=TotalPrize|where=team='{{PAGENAME}}'|format=list|default=0|no html}}</span></div>
</div>
 
    </div>
</div>
[[Category:Teams]]</includeonly>
[[Category:Teams]]</includeonly>

Latest revision as of 13:30, 1 February 2026