Difference between revisions of "Template:Infobox video game player"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]Template:Wikidata image
[[Category:Infobox templates|Template:Remove first word]]Template:Wikidata image
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|}}} | ||
| − | | | + | | header1 = {{#if:{{{birth_date|}}}{{{birth_name|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{hometown|}}}{{{nationality|}}}|Personal information}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | | | + | | 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|}}}}} |
| − | | | + | | label4 = Hometown |
| − | | | + | | data4 = {{{hometown|}}} |
| − | | | + | | label5 = Nationality |
| + | | data5 = {{{nationality|}}} | ||
| − | | | + | | label6 = Nickname(s) |
| − | + | | data6 = {{{nickname|}}} | |
| − | | | + | | header8 = {{#if:{{{team|}}}{{{league|}}}{{{leagues|}}}{{{games|}}}{{{role|}}}{{{coach|}}}{{{earnings|}}}|Career information}} |
| − | |||
| − | | | + | | label9 = Status |
| − | | | + | | data9 = {{{status|}}} |
| − | | | + | | label10 = League |
| − | | | + | | data10 = {{{league|{{{leagues|}}}}}} |
| − | | | + | | label11 = Current team |
| − | | | + | | data11 = {{{team|}}} |
| − | | | + | | label12 = Organizer |
| − | | | + | | data12 = {{{coach|}}} |
| − | | | + | | label13 = Games |
| − | | | + | | data13 = {{{games|}}} |
| − | | | + | | label14 = Role |
| − | | | + | | data14 = {{{role|}}} |
| − | | | + | | label15 = Career prize money |
| − | | | + | | data15 = {{{earnings|}}} |
| − | | | + | | header16 = {{#if:{{{team1|}}}{{{clubs1|{{{clubs|}}} }}}{{{years1|{{{years|}}} }}}{{{cteam1|}}}{{{cyears1|}}} |
| − | | | + | |{{#invoke:sports career|main |
| + | | title = Career history | ||
| + | | pheader = {{#if:{{{cyears1|}}}{{{cteam1|}}}|As player:}} | ||
| + | | cheader = As coach: | ||
| + | | pmax = 40 | pmaxcat = | ||
| + | | cmax = 30 | cmaxcat = | ||
| + | }} | ||
| + | }} | ||
| − | | | + | | header17 = {{#if:{{{awards|}}}{{{highlights|}}} |
| − | | | + | |{{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|}}}}} | ||
| + | }} | ||
| + | }} | ||
| − | | | + | | data18 = {{{module|{{{module1|}}} }}} |
| − | | | + | | 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:Person infobox header
| This template uses Lua: |
Contents
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]] | |
{{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 | 10 July 1983 |
| Hometown | Gothenburg |
| Nationality | Sweden |
| Career information | |
| Status | Inactive |
| League | Major League Gaming Electronic Sports League |
| Current team | Ninjas in Pajamas |
| Games | StarCraft II Super Smash Bros. Brawl Battlefield 3 |
| Role | DPS |
| Career prize money | ~$30,000,000 |
| Career history | |
| 2008 | Ninjas in Pajamas |
| 2009 | Cloud9 |
| 2010 | Team Foo |
| Career highlights and awards | |
| Script error: No such module "If empty". | |
| [[Category:Infobox templates|Template:Remove first word]] | |
{{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
- {{infobox person}}
| The above documentation is transcluded from Template:Infobox video game player/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |