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 Player: Difference between revisions

Template page
No edit summary
No edit summary
 
(44 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
== Cargo Declaration ==
{{#cargo_declare:
{{#cargo_declare:
_table = Players
_table = Players
|id = String
|id           = String
|real_name = String
|real_name   = String
|image = File
|image       = String
|current_team = String
|current_team = String
|nationality = String
|nationality = String
|status = String
|status       = String
|game = String
|game         = String
|birth_date = Date
|birth_date   = Date
|role = String
|role         = String
|instagram = URL
|instagram   = String
|youtube = URL
|youtube     = String
|twitter      = String
|discord      = String
|facebook    = String
}}
}}
</noinclude><includeonly>{{#cargo_store:
== Template:Infobox Player ==
_table = Players
Parameters: id, real_name, image, current_team, nationality, status, game, birth_date, role, instagram, youtube, twitter, discord, facebook
|id = {{{id|{{PAGENAME}}}}}
</noinclude><includeonly>
|real_name = {{{real_name|}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
|image = {{{image|}}}
{{#cargo_store:
_table       = Players
|id           = {{{id|{{PAGENAME}}}}}
|real_name   = {{{real_name|}}}
|image       = {{{image|}}}
|current_team = {{{current_team|}}}
|current_team = {{{current_team|}}}
|nationality = {{{nationality|}}}
|nationality = {{{nationality|}}}
|status = {{{status|}}}
|status       = {{{status|}}}
|game = {{{game|}}}
|game         = {{{game|}}}
|birth_date = {{{birth_date|}}}
|birth_date   = {{{birth_date|}}}
|role = {{{role|}}}
|role         = {{{role|}}}
|instagram = {{{instagram|}}}
|instagram   = {{{instagram|}}}
|youtube = {{{youtube|}}}
|youtube     = {{{youtube|}}}
}}<div class="infobox">
|twitter      = {{{twitter|}}}
    <div class="infobox-header">{{{id|{{PAGENAME}}}}}</div>
|discord      = {{{discord|}}}
 
|facebook    = {{{facebook|}}}
    {{#if:{{{image|}}}|
    <div class="infobox-image">[[File:{{{image}}}|200px]]</div>
    }}
 
    <div class="infobox-data-container">
       
        {{#if:{{{real_name|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Real Name</div>
            <div class="infobox-data">{{{real_name}}}</div>
        </div>
        }}
 
        {{#if:{{{nationality|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Nationality</div>
            <div class="infobox-data">{{{nationality}}}</div>
        </div>
        }}
 
        {{#if:{{{birth_date|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Born</div>
            <div class="infobox-data">{{{birth_date}}}</div>
        </div>
        }}
 
        {{#if:{{{game|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Game</div>
            <div class="infobox-data">{{{game}}}</div>
        </div>
        }}
       
        <div class="infobox-header" style="font-size:1em; margin-top:10px;">Team Info</div>
 
        {{#if:{{{current_team|}}}|
        <div class="infobox-row">
            <div class="infobox-label">Team</div>
            <div class="infobox-data">[[{{{current_team}}}]]</div>
        </div>
        }}
 
{{#if:{{{status|}}}|
<div class="infobox-row">
<div class="infobox-label">Status</div>
<div class="infobox-data" style="font-weight:bold; color:{{#switch:{{#lc:{{#trim:{{{status}}}}}}}
|active=green
|inactive=red
|retired=grey
|banned=red
|black}};">
{{{status}}}
</div>
</div>
}}
}}
 
{{#invoke:Player|infobox
        {{#if:{{{role|}}}|
|id          = {{{id|{{PAGENAME}}}}}
        <div class="infobox-row">
|real_name    = {{{real_name|}}}
            <div class="infobox-label">Role</div>
|image        = {{{image|}}}
            <div class="infobox-data">{{{role}}}</div>
|current_team = {{{current_team|}}}
        </div>
|nationality  = {{{nationality|}}}
        }}
|status      = {{{status|}}}
 
|game        = {{{game|}}}
{{#if:{{{instagram|}}}{{{youtube|}}}|
|birth_date  = {{{birth_date|}}}
<div class="infobox-header" style="font-size:1em; margin-top:10px;">Social Media</div>
|role        = {{{role|}}}
<div class="infobox-row" style="justify-content:center; gap:10px;">
|instagram    = {{{instagram|}}}
{{#if:{{{instagram|}}}| [{{{instagram}}} Instagram] }}
|youtube      = {{{youtube|}}}
{{#if:{{{youtube|}}}| • [{{{youtube}}} YouTube] }}
|twitter      = {{{twitter|}}}
</div>
|discord      = {{{discord|}}}
|facebook    = {{{facebook|}}}
}}
}}
 
[[Category:Players]][[Category:{{{role|}}}]]
    </div>
</includeonly>
</div>
[[Category:Players]]</includeonly>

Latest revision as of 03:01, 7 March 2026

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

Template:Infobox Player

Parameters: id, real_name, image, current_team, nationality, status, game, birth_date, role, instagram, youtube, twitter, discord, facebook