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

From blackwiki
Jump to navigation Jump to search
(I'm ignorant on how to fix the way this template embeds, so if someone else sees this and can have a go, I'd appreciate it.)
imported>Pbrks
m (simplify module code)
 
(49 intermediate revisions by 16 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    = Born
 +
| data2      = {{br separated entries|1={{{birth_name|}}}|2={{{birth_date|}}}|3={{{birth_place|}}}}}
 +
 
 +
| label3     = Died
 +
| data3     = {{br separated entries|1={{{death_date|}}}|2={{{death_place|}}}}}
  
| label2     = Date of birth
+
| label4     = Hometown
| data2     = {{{birth_date|}}}
+
| data4     = {{{hometown|}}}
  
| label3     = Hometown
+
| label5     = Nationality
| data3     = {{{hometown|}}}
+
| data5     = {{{nationality|}}}
  
| label4    = Nationality
+
| label6    = Nickname(s)
| data4      = {{{nationality|}}}
+
| data6    = {{{nickname|}}}
  
| label5    = Current team
+
| header8  = {{#if:{{{team|}}}{{{league|}}}{{{leagues|}}}{{{games|}}}{{{role|}}}{{{coach|}}}{{{earnings|}}}|Career information}}
| data5      = {{{team|}}}
 
  
| label6     = Organizer
+
| label9     = Status
| data6     = {{{coach|}}}
+
| data9     = {{{status|}}}
  
| label7    = League
+
| label10    = League
| data7      = {{{league|{{{leagues|}}}}}}
+
| data10    = {{{league|{{{leagues|}}}}}}
  
| label8    = Games
+
| label11    = Current team
| data8      = {{{games|}}}
+
| data11    = {{{team|}}}
  
| label9    = Career prize money
+
| label12    = Organizer
| data9      = {{{earnings|}}}
+
| data12    = {{{coach|}}}
  
| label10   = Championships
+
| label13   = Games
| data10     = {{{championships|}}}
+
| data13     = {{{games|}}}
  
| label11   = Nickname(s)
+
| label14   = Role
| data11     = {{{nickname|}}}
+
| data14     = {{{role|}}}
  
| data12    = {{#if:{{{website|}}}|{{official website|{{{website}}}}}}}
+
| label15  = Career prize money
 +
| data15    = {{{earnings|}}}
  
| header13  = {{#if:{{{team1|{{{clubs1|{{{clubs|}}}}}}}}}|Professional career}}
+
| header16 = {{#if:{{{team1|}}}{{{clubs1|{{{clubs|}}} }}}{{{years1|{{{years|}}} }}}{{{cteam1|}}}{{{cyears1|}}}
| class13   = navbox-abovebelow
+
|{{#invoke:sports career|main
 +
  | title = Career history
 +
  | pheader = {{#if:{{{cyears1|}}}{{{cteam1|}}}|As player:}}
 +
  | cheader = As coach:
 +
  | pmax = 40 | pmaxcat =
 +
   | cmax = 30 | cmaxcat =
 +
  }}
 +
}}
  
| label14    = {{#if:{{{team1|{{{clubs1|{{{clubs|}}}}}}}}}||{{#if:{{{years1|{{{years|}}}}}}|Years}} }}
+
| header17 = {{#if:{{{awards|}}}{{{highlights|}}}
| data14     = {{#if:{{{team1|{{{clubs1|{{{clubs|}}}}}}}}}||{{#if:{{{team1|{{{clubs1|{{{clubs|}}}}}}}}}|'''Team'''}} }}
+
|{{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|}}}}}
 +
  }}
 +
}}
  
| label15    = {{#if:{{{clubs|}}}|<span style="line-height:1.7em">}}{{#if:{{{team1|{{{clubs1|{{{clubs|}}}}}}}}}|<span style="font-weight:normal">{{{years1|{{{years|–}}}}}}</span>}}
+
| data18     = {{{module|{{{module1|}}} }}}
| data15    = {{#if:{{{clubs|}}}|<span style="line-height:1.7em">}}{{{team1|{{{clubs1|{{{clubs|}}}}}}}}}
+
| data19     = {{{module2|}}}
| label16    = {{#if:{{{team2|{{{clubs2|}}}}}}|<span style="font-weight:normal">{{{years2|–}}}</span>}}
 
| data16    = {{{team2|{{{clubs2|}}}}}}
 
| label17    = {{#if:{{{team3|{{{clubs3|}}}}}}|<span style="font-weight:normal">{{{years3|–}}}</span>}}
 
| data17    = {{{team3|{{{clubs3|}}}}}}
 
| label18    = {{#if:{{{team4|{{{clubs4|}}}}}}|<span style="font-weight:normal">{{{years4|–}}}</span>}}
 
| data18     = {{{team4|{{{clubs4|}}}}}}
 
| label19    = {{#if:{{{team5|{{{clubs5|}}}}}}|<span style="font-weight:normal">{{{years5|–}}}</span>}}
 
| data19     = {{{team5|{{{clubs5|}}}}}}
 
| label20    = {{#if:{{{team6|{{{clubs6|}}}}}}|<span style="font-weight:normal">{{{years6|–}}}</span>}}
 
| data20    = {{{team6|{{{clubs6|}}}}}}
 
| label21    = {{#if:{{{team7|{{{clubs7|}}}}}}|<span style="font-weight:normal">{{{years7|–}}}</span>}}
 
| data21    = {{{team7|{{{clubs7|}}}}}}
 
| label22    = {{#if:{{{team8|{{{clubs8|}}}}}}|<span style="font-weight:normal">{{{years8|–}}}</span>}}
 
| data22    = {{{team8|{{{clubs8|}}}}}}
 
| label23    = {{#if:{{{team9|{{{clubs9|}}}}}}|<span style="font-weight:normal">{{{years9|–}}}</span>}}
 
| data23    = {{{team9|{{{clubs9|}}}}}}
 
| label24    = {{#if:{{{team10|{{{clubs10|}}}}}}|<span style="font-weight:normal">{{{years10|–}}}</span>}}
 
| data24    = {{{team10|{{{clubs10|}}}}}}
 
  
}}<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