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
Tag: Reverted
No edit summary
 
(15 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. $, ₹).
    {{#if:{{{image|}}}|
* '''rate''': The conversion rate to INR.
    <tr><td colspan="2" class="infobox-image">[[File:{{{image}}}|{{{image_size|250}}}px]]</td>
*: ''Example: If currency is $ and 1 USD = 84 INR, enter '''84'''.''
    </tr>
*: ''Example: If currency is ₹, enter '''1''' (or leave blank).''
    }}
 
    <tr><th colspan="2" class="infobox-header">League Information</th></tr>
 
    {{#if:{{{series|}}}|
    <tr>
        <th>Series</th>
        <td>{{{series}}}</td>
    </tr>
    }}
 
    {{#if:{{{organizer|}}}|
    <tr>
        <th>Organizer</th>
        <td>{{{organizer}}}</td>
    </tr>
    }}
 
    {{#if:{{{type|}}}|
    <tr>
        <th>Type</th>
        <td>{{{type}}}</td>
    </tr>
    }}
 
    {{#if:{{{location|}}}|
    <tr>
        <th>Location</th>
        <td>{{{location}}}</td>
    </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|}}}|
== Cargo Declaration ==
    <tr>
{{#cargo_declare:
        <th>Winner</th>
_table = Tournaments
        <td>'''[[{{{winner}}}]]'''</td>
|name = String
    </tr>
|series = Page
    }}
|series_season = String
</table>
|series_value = Integer
{{#if:{{{_table_logo|}}}|
|organizer = List (,) of String
[[File:{{{image}}}|40px|link=]]
|sponsor = List (,) of String
|game = String
|mode = String
|type = String
|tier = String
|device = String
|location = String
|venue = String
|prize_pool = Integer
|start_date = Date
|end_date = Date
|winner = String
|runner_up = String
|image = File
|image_dark = File
|instagram = URL
|twitter = URL
|youtube = URL
|discord = URL
|facebook = URL
|website = URL
}}
}}
</includeonly>
</noinclude><includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}{{#invoke:Tournament|infobox}}[[Category:Tournaments]]</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.