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
 
(72 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:_table=Players
{{#cargo_declare:
|id=String
_table = Players
|name=String
|id           = String
|team=Page
|real_name    = String
|role=String
|image        = String
|image=File
|current_team = String
|nationality  = String
|status      = String
|game        = String
|birth_date  = Date
|role         = String
|instagram    = String
|youtube      = String
|twitter      = String
|discord      = String
|facebook    = String
}}
}}
== Template:Infobox Player ==
Parameters: id, real_name, image, current_team, nationality, status, game, birth_date, role, instagram, youtube, twitter, discord, facebook
</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_store:_table=Players
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
|id={{{id|{{PAGENAME}}}}}
{{#cargo_store:
|name={{{name|}}}
_table       = Players
|team={{{team|}}}
|id           = {{{id|{{PAGENAME}}}}}
|role={{{role|}}}
|real_name    = {{{real_name|}}}
|image={{{image|}}}
|image        = {{{image|}}}
|current_team = {{{current_team|}}}
|nationality  = {{{nationality|}}}
|status      = {{{status|}}}
|game        = {{{game|}}}
|birth_date  = {{{birth_date|}}}
|role         = {{{role|}}}
|instagram    = {{{instagram|}}}
|youtube      = {{{youtube|}}}
|twitter      = {{{twitter|}}}
|discord      = {{{discord|}}}
|facebook    = {{{facebook|}}}
}}
}}
 
{{#invoke:Player|infobox
<div class="infobox">
|id          = {{{id|{{PAGENAME}}}}}
<div class="infobox-header">{{{id|{{PAGENAME}}}}}</div>
|real_name    = {{{real_name|}}}
{{#if:{{{image|}}}|
|image        = {{{image|}}}
<div class="infobox-image">[[File:{{{image}}}|250px]]</div>
|current_team = {{{current_team|}}}
|nationality  = {{{nationality|}}}
|status      = {{{status|}}}
|game        = {{{game|}}}
|birth_date  = {{{birth_date|}}}
|role        = {{{role|}}}
|instagram    = {{{instagram|}}}
|youtube      = {{{youtube|}}}
|twitter      = {{{twitter|}}}
|discord      = {{{discord|}}}
|facebook    = {{{facebook|}}}
}}
}}
<div class="infobox-row">
[[Category:Players]][[Category:{{{role|}}}]]
<span class="infobox-label">Real Name:</span>
<span>{{{name|}}}</span>
</div>
<div class="infobox-row">
<span class="infobox-label">Team:</span>
<span>[[{{{team|}}}]]</span>
</div>
<div class="infobox-row">
<span class="infobox-label">Role:</span>
<span>{{{role|}}}</span>
</div>
</div>
</includeonly>
</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