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

Template page
Ayaan (talk | contribs)
Undo revision 69 by Ayaan (talk)
Tag: Undo
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:_table=Tournaments
This is the Infobox Tournament template.
|name=String
== Cargo Declaration ==
|image=File
{{#cargo_declare:
|series=String
_table = Tournaments
|organizer=String
|name = String
|game=String
|image = File
|mode=String
|organizer = String
|type=String
|type = String
|location=String
|location = String
|prizePool=String
|prizepool = String
|start_date=Date
|start_date = Date
|end_date=Date
|end_date = Date
|tier=String
|winner = String
|teams=Integer
|winner=Page
}}
</noinclude><includeonly>
{{#cargo_store:_table=Tournaments
|Name={{{name|{{PAGENAME}}}}}
|image={{{image|}}}
|Series={{{series|}}}
|Organizer={{{organizer|}}}
|Game={{{game|BGMI}}}
|Mode={{{mode|}}}
|Type={{{type|}}}
|Location={{{location|}}}
|Prize_Pool={{{prizepool|}}}
|Start_date={{{start_date|}}}
|End_date={{{end_date|}}}
|Tier={{{tier|}}}
|Teams={{{teams|}}}
|Winner={{{winner|}}}
}}
}}
 
</noinclude><includeonly>{{#cargo_store:
<table class="infobox">
_table = Tournaments
     <caption>{{{name|{{PAGENAME}}}}}</caption>
|name = {{{name|{{PAGENAME}}}}}
|image = {{{image|}}}
|organizer = {{{organizer|}}}
|type = {{{type|}}}
|location = {{{location|}}}
|prizepool = {{{prizepool|}}}
|start_date = {{{start_date|}}}
|end_date = {{{end_date|}}}
|winner = {{{winner|}}}
}}<div class="infobox">
     <div class="infobox-header">{{{name|{{PAGENAME}}}}}</div>


     {{#if:{{{image|}}}|
     {{#if:{{{image|}}}|
     <tr><td colspan="2" class="infobox-image">[[File:{{{image}}}|250px]]</td></tr>
     <div class="infobox-image">[[File:{{{image}}}|260px]]</div>
     }}
     }}


     <tr><th colspan="2" class="infobox-header">League Information</th></tr>
     <div class="infobox-data-container">
       
        {{#if:{{{organizer|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Organizer</div>
            <div class="infobox-data">{{{organizer}}}</div>
        </div>
        }}


    {{#if:{{{series|}}}|
        {{#if:{{{type|}}}|
    <tr>
        <div class="infobox-row">
        <th>Series</th>
            <div class="infobox-label">Type</div>
        <td>{{{series}}}</td>
            <div class="infobox-data">{{{type}}}</div>
    </tr>
        </div>
    }}
        }}


    {{#if:{{{organizer|}}}|
        {{#if:{{{location|}}}|
    <tr>
        <div class="infobox-row">
        <th>Organizer</th>
            <div class="infobox-label">Location</div>
        <td>{{{organizer}}}</td>
            <div class="infobox-data">{{{location}}}</div>
    </tr>
        </div>
    }}
        }}


    {{#if:{{{type|}}}|
        {{#if:{{{prizepool|}}}|
    <tr>
        <div class="infobox-row">
        <th>Type</th>
            <div class="infobox-label">Prize Pool</div>
        <td>{{{type}}}</td>
            <div class="infobox-data">{{{prizepool}}}</div>
    </tr>
        </div>
    }}
        }}


    {{#if:{{{location|}}}|
        {{#if:{{{start_date|}}}|
    <tr>
        <div class="infobox-row">
        <th>Location</th>
            <div class="infobox-label">Start Date</div>
        <td>{{{location}}}</td>
            <div class="infobox-data">{{{start_date}}}</div>
    </tr>
        </div>
    }}
        }}
 
    <tr><th colspan="2" class="infobox-header">Game Settings</th></tr>


    {{#if:{{{mode|}}}|
        {{#if:{{{end_date|}}}|
    <tr>
        <div class="infobox-row">
        <th>Game Mode</th>
            <div class="infobox-label">End Date</div>
        <td>{{{mode}}}</td>
            <div class="infobox-data">{{{end_date}}}</div>
    </tr>
        </div>
    }}
        }}


    {{#if:{{{tier|}}}|
        {{#if:{{{winner|}}}|
    <tr>
        <div class="infobox-row">
        <th>Tier</th>
            <div class="infobox-label">Winner</div>
        <td>{{{tier}}}</td>
            <div class="infobox-data">'''[[{{{winner}}}]]'''</div>
    </tr>
        </div>
    }}
        }}


     <tr><th colspan="2" class="infobox-header">Tournament Data</th></tr>
     </div>
 
</div>[[Category:Tournaments]]</includeonly>
    {{#if:{{{prizepool|}}}|
    <tr>
        <th>Prize Pool</th>
        <td>{{{prizepool}}}</td>
    </tr>
    }}
 
    {{#if:{{{start_date|}}}|
    <tr>
        <th>Dates</th>
        <td>{{{start_date}}} {{#if:{{{end_date|}}}| – {{{end_date}}} }}</td>
    </tr>
    }}
 
    {{#if:{{{teams|}}}|
    <tr>
        <th>Teams</th>
        <td>{{{teams}}}</td>
    </tr>
    }}
 
    {{#if:{{{winner|}}}|
    <tr>
        <th>Winner</th>
        <td>'''[[{{{winner}}}]]'''</td>
    </tr>
    }}
</table>
</includeonly>

Revision as of 23:39, 2 January 2026

This is the Infobox Tournament template.

Cargo Declaration

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