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
No edit summary
No edit summary
 
(32 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        =  
|prizepool={{{prizepool|}}}
|runner_up    =  
|start_date={{{start_date|}}}
|instagram    =  
|end_date={{{end_date|}}}
|twitter      =  
|tier={{{tier|}}}
|youtube      =  
|teams={{{teams|}}}
|discord      =  
|winner={{{winner|}}}
|website      =  
}}
}}
</pre>


<div class="infobox">
== Parameters ==
    <div class="infobox-header">{{{name|{{PAGENAME}}}}}</div>
* '''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.
    <div class="infobox-image">[[File:{{{image}}}|250px]]</div>
*: ''Example: If currency is $ and 1 USD = 84 INR, enter '''84'''.''
    }}
*: ''Example: If currency is ₹, enter '''1''' (or leave blank).''


    <div class="infobox-header" style="font-size: 1rem; margin-top: 5px;">League Information</div>
== Cargo Declaration ==
 
{{#cargo_declare:
    {{#if:{{{series|}}}|
_table = Tournaments
    <div class="infobox-row">
|name = String
        <span class="infobox-label">Series</span>
|series = Page
        <span>{{{series}}}</span>
|series_season = String
    </div>
|series_value = Integer
    }}
|organizer = List (,) of String
 
|sponsor = List (,) of String
    {{#if:{{{organizer|}}}|
|game = String
    <div class="infobox-row">
|mode = String
        <span class="infobox-label">Organizer</span>
|type = String
        <span>{{{organizer}}}</span>
|tier = String
    </div>
|device = String
    }}
|location = String
   
|venue = String
    {{#if:{{{type|}}}|
|prize_pool = Integer
    <div class="infobox-row">
|start_date = Date
        <span class="infobox-label">Type</span>
|end_date = Date
        <span>{{{type}}}</span>
|winner = String
    </div>
|runner_up = String
    }}
|image = File
 
|image_dark = File
    {{#if:{{{location|}}}|
|instagram = URL
    <div class="infobox-row">
|twitter = URL
        <span class="infobox-label">Location</span>
|youtube = URL
        <span>{{{location}}}</span>
|discord = URL
    </div>
|facebook = URL
    }}
|website = URL
   
}}
    <div class="infobox-header" style="font-size: 1rem; margin-top: 5px;">Game Settings</div>
</noinclude><includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}{{#invoke:Tournament|infobox}}[[Category:Tournaments]]</includeonly>
 
    {{#if:{{{mode|}}}|
    <div class="infobox-row">
        <span class="infobox-label">Game Mode</span>
        <span>{{{mode}}}</span>
    </div>
    }}
   
    {{#if:{{{tier|}}}|
    <div class="infobox-row">
        <span class="infobox-label">Liquipedia Tier</span>
        <span>{{{tier}}}</span>
    </div>
    }}
 
    <div class="infobox-header" style="font-size: 1rem; margin-top: 5px;">Tournament Data</div>
 
    {{#if:{{{prizepool|}}}|
    <div class="infobox-row">
        <span class="infobox-label">Prize Pool</span>
        <span>{{{prizepool}}}</span>
    </div>
    }}
 
    {{#if:{{{start_date|}}}|
    <div class="infobox-row">
        <span class="infobox-label">Start Date</span>
        <span>{{{start_date}}}</span>
    </div>
    }}
 
    {{#if:{{{end_date|}}}|
    <div class="infobox-row">
        <span class="infobox-label">End Date</span>
        <span>{{{end_date}}}</span>
    </div>
    }}
   
    {{#if:{{{teams|}}}|
    <div class="infobox-row">
        <span class="infobox-label">Teams</span>
        <span>{{{teams}}}</span>
    </div>
    }}
 
    {{#if:{{{winner|}}}|
    <div class="infobox-row">
        <span class="infobox-label">Winner</span>
        <span>'''[[{{{winner}}}]]'''</span>
    </div>
    }}
</div>
</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.