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
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}</includeonly>
<includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}</includeonly><includeonly>{{#cargo_store:
 
<noinclude>
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
|instagram = URL
|twitter= URL
|youtube = URL
}}
</noinclude><includeonly>{{#cargo_store:
_table = Teams
_table = Teams
|name = {{{name|{{PAGENAME}}}}}
|name = {{{name|{{PAGENAME}}}}}
Line 23: 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|}}}
Line 29: Line 13:
|twitter = {{{twitter|}}}
|twitter = {{{twitter|}}}
|youtube = {{{youtube|}}}
|youtube = {{{youtube|}}}
}}<div class="infobox">
    <div class="infobox-header">{{{name|{{SUBPAGENAME}}}}}</div>
    {{#if:{{{image|}}}|
    <div class="infobox-image">[[File:{{{image}}}|200px]]</div>
    }}
    <div class="infobox-data-container">
       
        {{#if:{{{other_team|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Name</div>
            <div class="infobox-data">{{{other_team}}}</div>
        </div>
        }}
        {{#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" style="text-align:right; line-height:1.4em;">
{{#replace:{{{sponsors|}}}|,|<br>}}
</div>
</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-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='{{SUBPAGENAME}}'|format=list|default=0|no html}}</span></div>
</div>
 
{{#if:{{{instagram|}}}{{{youtube|}}}{{{twitter|}}}|
<div class="infobox-header" style="font-size:1em; margin-top:10px; border-radius: 6px;">Social Media</div>
<div class="infobox-row" style="justify-content:center; gap:10px;">
{{#if:{{{instagram|}}}| • [{{{instagram}}} Instagram] }}
{{#if:{{{twitter|}}}| • [{{{twitter}}} X] }}
{{#if:{{{youtube|}}}| • [{{{youtube}}} YouTube] }}
</div>}}
 
</div>
</div>
[[Category:Teams]]</includeonly>
[[Category:Teams]]</includeonly>

Latest revision as of 13:30, 1 February 2026