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)
No edit summary
No edit summary
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:_table=Tournaments
== Usage ==
|name=String
Copy and paste this code to create a new Tournament page.
|image=File
 
|series=String
<pre>
|organizer=String
{{Infobox Tournament
|game=String
|name         =  
|mode=String
|image         =  
|type=String
|image_dark    =  
|location=String
|series        =  
|prizepool=String
|series_season =  
|start_date=Date
|series_value  =  
|end_date=Date
|organizer    =  
|tier=String
|sponsor      =  
|teams=Integer
|game          = BGMI
|winner=Page
|type          = Online
}}
|tier         = A-Tier
</noinclude><includeonly>
|mode          = Squads
{{#cargo_store:_table=Tournaments
|currency      =
|Name={{{name|{{PAGENAME}}}}}
|rate          = 1
|image={{{image|}}}
|prizepool    =  
|Series={{{series|}}}
|start_date    = YYYY-MM-DD
|Organizer={{{organizer|}}}
|end_date      = YYYY-MM-DD
|Game={{{game|BGMI}}}
|location      = India
|Mode={{{mode|}}}
|venue        =  
|Type={{{type|}}}
|device        =  
|Location={{{location|}}}
|winner        =  
|Prize_Pool={{{prizepool|}}}
|runner_up    =  
|Start_date={{{start_date|}}}
|instagram    =  
|End_date={{{end_date|}}}
|twitter      =  
|Tier={{{tier|}}}
|youtube      =  
|Teams={{{teams|}}}
|discord      =  
|Winner={{{winner|}}}
|website      =  
}}
}}
</pre>


<table class="infobox">
== Parameters ==
    <caption>{{{name|{{PAGENAME}}}}}</caption>
* '''series_value''': (Important) Enter '1', '2', '3' etc. This allows the "Previous / Next" buttons to work automatically.
* '''currency''': The symbol of the prize money (e.g. $, ₹).
* '''rate''': The conversion rate to INR.
*: ''Example: If currency is $ and 1 USD = 84 INR, enter '''84'''.''
*: ''Example: If currency is ₹, enter '''1''' (or leave blank).''


    {{#if:{{{image|}}}|
== Cargo Declaration ==
    <tr><td colspan="2" class="infobox-image">[[File:{{{image}}}|250px]]</td></tr>
{{#cargo_declare:
    }}
_table = Tournaments
 
|name = String
    <tr><th colspan="2" class="infobox-header">League Information</th></tr>
|series = Page
 
|series_season = String
    {{#if:{{{series|}}}|
|series_value = Integer
    <tr>
|organizer = List (,) of String
        <th>Series</th>
|sponsor = List (,) of String
        <td>{{{series}}}</td>
|game = String
    </tr>
|mode = String
    }}
|type = String
 
|tier = String
    {{#if:{{{organizer|}}}|
|device = String
    <tr>
|location = String
        <th>Organizer</th>
|venue = String
        <td>{{{organizer}}}</td>
|prize_pool = Integer
    </tr>
|start_date = Date
    }}
|end_date = Date
 
|winner = String
    {{#if:{{{type|}}}|
|runner_up = String
    <tr>
|image = File
        <th>Type</th>
|image_dark = File
        <td>{{{type}}}</td>
|instagram = URL
    </tr>
|twitter = URL
    }}
|youtube = URL
 
|discord = URL
    {{#if:{{{location|}}}|
|facebook = URL
    <tr>
|website = URL
        <th>Location</th>
}}
        <td>{{{location}}}</td>
</noinclude><includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}{{#invoke:Tournament|infobox}}[[Category:Tournaments]]</includeonly>
    </tr>
    }}
 
    <tr><th colspan="2" class="infobox-header">Game Settings</th></tr>
 
    {{#if:{{{mode|}}}|
    <tr>
        <th>Game Mode</th>
        <td>{{{mode}}}</td>
    </tr>
    }}
 
    {{#if:{{{tier|}}}|
    <tr>
        <th>Tier</th>
        <td>{{{tier}}}</td>
    </tr>
    }}
 
    <tr><th colspan="2" class="infobox-header">Tournament Data</th></tr>
 
    {{#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>

Latest revision as of 03:57, 21 February 2026

Usage

Copy and paste this code to create a new Tournament page.

{{Infobox Tournament
|name          = 
|image         = 
|image_dark    = 
|series        = 
|series_season = 
|series_value  = 
|organizer     = 
|sponsor       = 
|game          = BGMI
|type          = Online
|tier          = A-Tier
|mode          = Squads
|currency      = ₹
|rate          = 1
|prizepool     = 
|start_date    = YYYY-MM-DD
|end_date      = YYYY-MM-DD
|location      = India
|venue         = 
|device        = 
|winner        = 
|runner_up     = 
|instagram     = 
|twitter       = 
|youtube       = 
|discord       = 
|website       = 
}}

Parameters

  • series_value: (Important) Enter '1', '2', '3' etc. This allows the "Previous / Next" buttons to work automatically.
  • currency: The symbol of the prize money (e.g. $, ₹).
  • rate: The conversion rate to INR.
    Example: If currency is $ and 1 USD = 84 INR, enter 84.
    Example: If currency is ₹, enter 1 (or leave blank).

Cargo Declaration

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