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
Created page with "<noinclude> {{#cargo_declare:_table=Tournaments |name=String |image=File |organizer=String |game=String |type=String |location=String |prizepool=String |start_date=Date |end_date=Date |winner=Page }} </noinclude><includeonly> {{#cargo_store:_table=Tournaments |name={{{name|{{PAGENAME}}}}} |image={{{image|}}} |organizer={{{organizer|}}} |game={{{game|BGMI}}} |type={{{type|}}} |location={{{location|}}} |prizepool={{{prizepool|}}} |start_date={{{start_date|}}} |end_date={{{..."
 
No edit summary
 
(33 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
 
|organizer=String
<pre>
|game=String
{{Infobox Tournament
|type=String
|name         =  
|location=String
|image         =  
|prizepool=String
|image_dark    =  
|start_date=Date
|series        =  
|end_date=Date
|series_season =  
|winner=Page
|series_value  =  
}}
|organizer    =  
</noinclude><includeonly>
|sponsor      =  
{{#cargo_store:_table=Tournaments
|game          = BGMI
|name={{{name|{{PAGENAME}}}}}
|type          = Online
|image={{{image|}}}
|tier          = A-Tier
|organizer={{{organizer|}}}
|mode          = Squads
|game={{{game|BGMI}}}
|currency      =
|type={{{type|}}}
|rate          = 1
|location={{{location|}}}
|prizepool    =  
|prizepool={{{prizepool|}}}
|start_date    = YYYY-MM-DD
|start_date={{{start_date|}}}
|end_date      = YYYY-MM-DD
|end_date={{{end_date|}}}
|location     = India
|winner={{{winner|}}}
|venue        =
|device        =  
|winner        =
|runner_up    =  
|instagram    =
|twitter      =  
|youtube      =
|discord      =  
|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).''


    {{#if:{{{organizer|}}}|
== Cargo Declaration ==
    <div class="infobox-row">
{{#cargo_declare:
        <span class="infobox-label">Organizer</span>
_table = Tournaments
        <span>{{{organizer}}}</span>
|name = String
    </div>
|series = Page
    }}
|series_season = String
 
|series_value = Integer
    {{#if:{{{type|}}}|
|organizer = List (,) of String
    <div class="infobox-row">
|sponsor = List (,) of String
        <span class="infobox-label">Type</span>
|game = String
        <span>{{{type}}}</span>
|mode = String
    </div>
|type = String
    }}
|tier = String
 
|device = String
    {{#if:{{{location|}}}|
|location = String
    <div class="infobox-row">
|venue = String
        <span class="infobox-label">Location</span>
|prize_pool = Integer
        <span>{{{location}}}</span>
|start_date = Date
    </div>
|end_date = Date
    }}
|winner = String
 
|runner_up = String
    {{#if:{{{start_date|}}}|
|image = File
    <div class="infobox-row">
|image_dark = File
        <span class="infobox-label">Dates</span>
|instagram = URL
        <span>{{{start_date}}} {{#if:{{{end_date|}}}| – {{{end_date}}} }}</span>
|twitter = URL
    </div>
|youtube = URL
    }}
|discord = URL
 
|facebook = URL
    {{#if:{{{prizepool|}}}|
|website = URL
    <div class="infobox-row">
}}
        <span class="infobox-label">Prize Pool</span>
</noinclude><includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}{{#invoke:Tournament|infobox}}[[Category:Tournaments]]</includeonly>
        <span>{{{prizepool}}}</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.