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)
m Reverted edits by Ayaan (talk) to last revision by Esportsamaze
Tag: Rollback
No edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the Infobox Tournament template.
== Usage ==
Copy and paste this code to create a new Tournament page.
 
<pre>
{{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      =
}}
</pre>
 
== 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 ==
== Cargo Declaration ==
{{#cargo_declare:
{{#cargo_declare:
_table = Tournaments
_table = Tournaments
|name = String
|name = String
|series = String
|series = Page
|image = File
|series_season = String
|organizer = String
|series_value = Integer
|organizer = List (,) of String
|sponsor = List (,) of String
|game = String
|mode = String
|type = String
|type = String
|tier = String
|device = String
|location = String
|location = String
|prizepool = String
|venue = String
|prize_pool = Integer
|start_date = Date
|start_date = Date
|end_date = Date
|end_date = Date
|winner = String
|winner = String
|runner_up = String
|image = File
|image_dark = File
|instagram = URL
|twitter = URL
|youtube = URL
|discord = URL
|facebook = URL
|website = URL
}}
}}
</noinclude><includeonly>{{#cargo_store:
</noinclude><includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}{{#invoke:Tournament|infobox}}[[Category:Tournaments]]</includeonly>
_table = Tournaments
|name = {{{name|{{PAGENAME}}}}}
|series = {{{series|}}}
|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|}}}|
    <div class="infobox-image">[[File:{{{image}}}|260px]]</div>
    }}
 
    <div class="infobox-data-container">
       
        {{#if:{{{series|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Series</div>
            <div class="infobox-data">[[{{{series}}}]]</div>
        </div>
        }}
 
        {{#if:{{{organizer|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Organizer</div>
            <div class="infobox-data">{{{organizer}}}</div>
        </div>
        }}
 
        {{#if:{{{type|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Type</div>
            <div class="infobox-data">{{{type}}}</div>
        </div>
        }}
 
        {{#if:{{{location|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Location</div>
            <div class="infobox-data">{{{location}}}</div>
        </div>
        }}
 
        {{#if:{{{prizepool|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Prize Pool</div>
            <div class="infobox-data">{{{prizepool}}}</div>
        </div>
        }}
 
        {{#if:{{{start_date|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Start Date</div>
            <div class="infobox-data">{{{start_date}}}</div>
        </div>
        }}
 
        {{#if:{{{end_date|}}}|
        <div class="infobox-row">
            <div class="infobox-label">End Date</div>
            <div class="infobox-data">{{{end_date}}}</div>
        </div>
        }}
 
        {{#if:{{{winner|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Winner</div>
            <div class="infobox-data">'''[[{{{winner}}}]]'''</div>
        </div>
        }}
 
    </div>
</div>[[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.