Difference between revisions of "Template:Infobox video game player"

From blackwiki
Jump to navigation Jump to search
imported>Pbrks
m (simplify module code)
 
(47 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{Infobox
+
{{Infobox|child={{{child|{{{embed|}}}}}}
 
| bodyclass  = vcard
 
| bodyclass  = vcard
  
Line 7: Line 7:
 
| subheaderclass =  
 
| subheaderclass =  
 
| subheader  = {{#if:{{{name|}}}|<span class="name">{{{name}}}</span>{{#if:{{{name_trans|}}}|<br />(''<span class="name">{{{name_trans}}}</span>'')}}}}
 
| subheader  = {{#if:{{{name|}}}|<span class="name">{{{name}}}</span>{{#if:{{{name_trans|}}}|<br />(''<span class="name">{{{name_trans}}}</span>'')}}}}
 
  
 
| image      = {{#if:{{{image|}}}
 
| image      = {{#if:{{{image|}}}
   |{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{size|}}}}}}|sizedefault=frameless|alt={{{alt|}}}|suppressplaceholder=yes}}
+
   |{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{size|}}}}}}|sizedefault=frameless|alt={{{alt|}}}|upright={{{upright}}}|suppressplaceholder=yes}}
 
   |{{#if:{{{logo|}}}
 
   |{{#if:{{{logo|}}}
     |{{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{image_size|{{{size|}}}}}}|sizedefault=frameless|alt={{{alt|}}}|suppressplaceholder=yes}}
+
     |{{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{image_size|{{{size|}}}}}}|sizedefault=frameless|alt={{{alt|}}}|upright={{{upright}}}|suppressplaceholder=yes}}
 
     }}
 
     }}
 
   }}
 
   }}
 
| caption    = {{{caption|}}}
 
| caption    = {{{caption|}}}
  
| label1    = Status
+
| header1  = {{#if:{{{birth_date|}}}{{{birth_name|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{hometown|}}}{{{nationality|}}}|Personal information}}
| data1      = {{{status|}}}
 
 
 
| label2    = Date of birth
 
| data2      = {{{birth_date|}}}
 
 
 
| label3    = Hometown
 
| data3      = {{{hometown|}}}
 
 
 
| label4    = Nationality
 
| data4      = {{{nationality|}}}
 
 
 
| label5    = Current team
 
| data5      = {{{team|}}}
 
 
 
| label6    = Organizer
 
| data6      = {{{coach|}}}
 
 
 
| label7    = League
 
| data7      = {{{league|{{{leagues|}}}}}}
 
 
 
| label8    = Games
 
| data8      = {{{games|}}}
 
 
 
| label9    = Role
 
| data9      = {{{role|}}}
 
  
| label10    = Career prize money
+
| label2    = Born
| data10     = {{{earnings|}}}
+
| data2     = {{br separated entries|1={{{birth_name|}}}|2={{{birth_date|}}}|3={{{birth_place|}}}}}
  
| label11    = Championships
+
| label3    = Died
| data11    = {{{championships|}}}
+
| data3      = {{br separated entries|1={{{death_date|}}}|2={{{death_place|}}}}}
  
| label12    = Nickname(s)
+
| label4    = Hometown
| data12    = {{{nickname|}}}
+
| data4      = {{{hometown|}}}
  
| data13     = {{#if:{{{website|}}}|{{official website|{{{website}}}}}}}
+
| label5     = Nationality
 +
| data5      = {{{nationality|}}}
  
| header14  = {{#if:{{{team1|{{{clubs1|{{{clubs|}}}}}}}}}|Professional career}}
+
| label6    = Nickname(s)
| class14    = navbox-abovebelow
+
| data6    = {{{nickname|}}}
  
| label15    = {{#if:{{{team1|{{{clubs1|{{{clubs|}}}}}}}}}||{{#if:{{{years1|{{{years|}}}}}}|Years}} }}
+
| header8  = {{#if:{{{team|}}}{{{league|}}}{{{leagues|}}}{{{games|}}}{{{role|}}}{{{coach|}}}{{{earnings|}}}|Career information}}
| data15    = {{#if:{{{team1|{{{clubs1|{{{clubs|}}}}}}}}}||{{#if:{{{team1|{{{clubs1|{{{clubs|}}}}}}}}}|'''Team'''}} }}
 
  
| label16    = {{#if:{{{clubs|}}}|<span style="line-height:1.7em">}}{{#if:{{{team1|{{{clubs1|{{{clubs|}}}}}}}}}|<span style="font-weight:normal">{{{years1|{{{years|–}}}}}}</span>}}
+
| label9    = Status
| data16    = {{#if:{{{clubs|}}}|<span style="line-height:1.7em">}}{{{team1|{{{clubs1|{{{clubs|}}}}}}}}}
+
| data9      = {{{status|}}}
  
| label17   = {{#if:{{{team2|{{{clubs2|}}}}}}|<span style="font-weight:normal">{{{years2|–}}}</span>}}
+
| label10   = League
| data17     = {{{team2|{{{clubs2|}}}}}}
+
| data10     = {{{league|{{{leagues|}}}}}}
  
| label18   = {{#if:{{{team3|{{{clubs3|}}}}}}|<span style="font-weight:normal">{{{years3|–}}}</span>}}
+
| label11   = Current team
| data18     = {{{team3|{{{clubs3|}}}}}}
+
| data11     = {{{team|}}}
  
| label19   = {{#if:{{{team4|{{{clubs4|}}}}}}|<span style="font-weight:normal">{{{years4|–}}}</span>}}
+
| label12   = Organizer
| data19     = {{{team4|{{{clubs4|}}}}}}
+
| data12     = {{{coach|}}}
  
| label20   = {{#if:{{{team5|{{{clubs5|}}}}}}|<span style="font-weight:normal">{{{years5|–}}}</span>}}
+
| label13   = Games
| data120     = {{{team5|{{{clubs5|}}}}}}
+
| data13     = {{{games|}}}
  
| label21   = {{#if:{{{team6|{{{clubs6|}}}}}}|<span style="font-weight:normal">{{{years6|–}}}</span>}}
+
| label14   = Role
| data21     = {{{team6|{{{clubs6|}}}}}}
+
| data14     = {{{role|}}}
  
| label22    = {{#if:{{{team7|{{{clubs7|}}}}}}|<span style="font-weight:normal">{{{years7|–}}}</span>}}
+
| label15  = Career prize money
| data22    = {{{team7|{{{clubs7|}}}}}}
+
| data15    = {{{earnings|}}}
  
| label23    = {{#if:{{{team8|{{{clubs8|}}}}}}|<span style="font-weight:normal">{{{years8|}}}</span>}}
+
| header16 = {{#if:{{{team1|}}}{{{clubs1|{{{clubs|}}} }}}{{{years1|{{{years|}}} }}}{{{cteam1|}}}{{{cyears1|}}}
| data23    = {{{team8|{{{clubs8|}}}}}}
+
|{{#invoke:sports career|main
 +
  | title = Career history
 +
  | pheader = {{#if:{{{cyears1|}}}{{{cteam1|}}}|As player:}}
 +
  | cheader = As coach:
 +
  | pmax = 40 | pmaxcat =
 +
  | cmax = 30 | cmaxcat =
 +
  }}
 +
}}
  
| label24    = {{#if:{{{team9|{{{clubs9|}}}}}}|<span style="font-weight:normal">{{{years9|–}}}</span>}}
+
| header17 = {{#if:{{{awards|}}}{{{highlights|}}}
| data24     = {{{team9|{{{clubs9|}}}}}}
+
|{{Infobox|child = yes
 +
  | decat  = yes <!-- remove from template:infobox tracking categories -->
 +
  | datastyle = text-align: left;
 +
  | title     = Career highlights and awards
 +
  | data1= {{if empty|{{{awards|}}}|{{{highlights|}}}}}
 +
  }}
 +
}}
  
| label25    = {{#if:{{{team10|{{{clubs10|}}}}}}|<span style="font-weight:normal">{{{years10|–}}}</span>}}
+
| data18      = {{{module|{{{module1|}}} }}}
| data25    = {{{team10|{{{clubs10|}}}}}}
+
| data19      = {{{module2|}}}
  
}}<noinclude>
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox video game player with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox video game player]] with unknown parameter "_VALUE_"|ignoreblank=y|
 +
| regexp1 = years[%d][%d]* | regexp2 = team[%d][%d]* | regexp3 = cyears[%d][%d]* | regexp4 = cteam[%d][%d]*
 +
| alt | awards | birth_date | birth_name | birth_place | caption | coach | child | death_date | death_place | earnings | embed | game | games | highlights | hometown | ID | image | image_size | league | leagues | logo | name | name_trans | nationality | nickname | module | module1 | module2 | role | size | status | team | upright }}<includeonly>{{#ifeq:{{{child|{{{embed|}}}}}}|yes||{{Wikidata image|1={{{image|}}}|2={{{nocat_wdimage|}}}}}}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 15:08, 5 January 2020

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Template:Person infobox header

Usage

{{{ID}}} (Enter the player's name if known primarily by their real name)
{{{name}}}
({{{name_trans}}})
[[File:{{{image}}}|frameless|upright={{{upright}}}]]
{{{caption}}}
Personal information
Born{{{birth_date}}}
Hometown{{{hometown}}}
Nationality{{{nationality}}}
Nickname(s){{{nickname}}}
Career information
Status{{{status}}}
League{{{league}}}
Current team{{{team}}}
Organizer{{{coach}}}
Games{{{games}}}
Role{{{role}}}
Career prize money{{{earnings}}}
Career history
{{{years1}}}{{{team1}}}
......
{{{years10}}}{{{team10}}}
Career highlights and awards
Script error: No such module "If empty".
[[Category:Infobox templates|Template:Remove first word]]
[[Category:Infobox templates|Template:Remove first word]]Template:Wikidata image
{{Infobox video game player
| ID = 
| name = 
| name_trans = 
| image = 
| caption = 
| upright =
| status = 
| birth_date = 
| hometown = 
| nationality = 
| team = 
| role = 
| league = 
| coach = 
| games = 
| earnings = 
| nickname = 
| years1 = 
| team1 = 
| years2 = 
| team2 = 
| years3 = 
| team3 = 
| years4 = 
| team4 = 
| years5 = 
| team5 = 
| years6 = 
| team6 = 
| years7 = 
| team7 = 
| years8 = 
| team8 = 
| cyears1 =
| cteam1 =
| cyears2 =
| cteam2 =
| highlights =
}}

Example

Foofoo
Foo Wikipedian
Personal information
Born (1983-07-10) 10 July 1983 (age 42)
HometownGothenburg
NationalitySweden
Career information
StatusInactive
LeagueMajor League Gaming
Electronic Sports League
Current teamNinjas in Pajamas
GamesStarCraft II
Super Smash Bros. Brawl
Battlefield 3
RoleDPS
Career prize money~$30,000,000
Career history
2008Ninjas in Pajamas
2009Cloud9
2010Team Foo
Career highlights and awards
Script error: No such module "If empty".
[[Category:Infobox templates|Template:Remove first word]]
[[Category:Infobox templates|Template:Remove first word]]Template:Wikidata image
{{Infobox video game player
| ID = Foofoo
| name = Foo Wikipedian
| image = 
| caption = 
| birth_date = {{birth date and age|df=yes|1983|7|10}}
| status = Inactive
| hometown = [[Gothenburg]]
| nationality = Sweden
| team = [[Ninjas in Pajamas]]
| league = [[Major League Gaming]] <br> [[Electronic Sports League]]
| games = ''[[StarCraft II]]'' <br> ''[[Super Smash Bros. Brawl]]'' <br> ''[[Battlefield 3]]''
| earnings = ~$30,000,000
| years1 = 2008
| team1 = [[Ninjas in Pajamas]]
| years2 = 2009
| team2 = [[Cloud9 (esports)|Cloud9]]
| years3 = 2010
| team3 = Team Foo
| highlights = 
* [[Global StarCraft II League|GSL]] champion (2012)
}}

Tracking category

See also