Difference between revisions of "Template:Infobox darts player/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Navops47
imported>Zyxw
(copy of current template)
 
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| bodyclass   = vcard
+
| bodyclass = vcard
| bodystyle  = width:28em
+
| aboveclass = fn
| abovestyle  = background-color:#b0c4de
+
| above     = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
| aboveclass = fn
+
| image     = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#invoke:Wikidata|claim|P18}}}}}|size={{#if:{{{image_size|}}}|{{{image_size|}}}|{{{imagesize|}}}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
| headerstyle = background-color:#b0c4de
+
| caption   = {{{caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}
| labelstyle  = white-space:nowrap;
+
| headerstyle = background:#b0c4de;
| belowstyle  = text-align:"left"; white-space:nowrap;
 
| above       = {{{name<includeonly>|{{PAGENAME}}</includeonly>}}}
 
| image       = {{#invoke:InfoboxImage|InfoboxImage|image={{{image<includeonly>|</includeonly>}}}|size={{#if:{{{image_size|}}}|{{{image_size|}}}|{{{imagesize|}}}}}|sizedefault=frameless|alt={{{alt|}}}}}
 
| caption     = {{{caption<includeonly>|</includeonly>}}}
 
  
| header1     = {{#if:{{{fullname<includeonly>|</includeonly>}}}{{{nickname|}}}{{{birth_date|}}}{{{death_date|}}}{{{height|}}}{{{weight|}}}{{{nationality|}}}{{{residence|}}}{{{spouse|}}}{{{partner|}}}{{{children|}}}|Personal information}}
+
| header1   = {{#if:{{{full_name|}}}{{{fullname|}}}{{{nickname|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{hometown|}}}{{{homecountry|}}}|Personal information}}
  
| label2     = Full name
+
| label2     = Full&nbsp;name
| data2       = {{{fullname<includeonly>|</includeonly>}}}
+
| data2     = {{{full_name|{{{fullname|}}}}}}
| label3     = [[List of darts player nicknames|Nickname(s)]]
+
| label3     = Nickname
| class3     = nickname
+
| class3     = nickname
| data3       = {{#if:{{{nickname<includeonly>|</includeonly>}}}|{{{nickname}}}}}
+
| data3     = {{{nickname|}}}
| label4     = Born
+
| label4     = Born
| data4       = {{br separated entries|{{{birth_date<includeonly>|</includeonly>}}}|{{{birth_place<includeonly>|</includeonly>}}}}}
+
| data4     = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}} }}  
| label5     = Died
+
| label5     = Died
| data5       = {{br separated entries|{{{death_date<includeonly>|</includeonly>}}}|{{{death_place<includeonly>|</includeonly>}}}}}
+
| data5     = {{br separated entries|{{{death_date|}}}|{{{death_place|}}} }}  
| label6     = Residence
+
| label6     = Home&nbsp;town
| data6       = {{#if:{{{hometown<includeonly>|</includeonly>}}}{{{homecountry|}}}|{{{hometown}}}, {{{homecountry}}}}}
+
| data6     = {{br separated entries|{{{hometown|}}}|{{{homecountry|}}} }}
  
| header7     = {{#if:{{{debut<includeonly>|</includeonly>}}}{{{darts|}}}{{{laterality|}}}{{{music|}}}|Darts information}}
+
| header7   = {{#if:{{{since|}}}{{{darts|}}}{{{laterality|}}}{{{music|}}}|Darts information}}
  
| label9     = Darts
+
| label8    = Playing&nbsp;darts&nbsp;since
| data9       = {{{darts<includeonly>|</includeonly>}}}
+
| data8      = {{{since|}}}
| label10     = [[Laterality]]
+
| label9     = Darts
| data10     = {{{laterality<includeonly>|</includeonly>}}}
+
| data9     = {{{darts|}}}
| label11    = Walk-on music
+
| label10   = [[Laterality]]
| data11      = {{{music<includeonly>|</includeonly>}}}
+
| data10     = {{{laterality|}}}
 +
| label11   = Career&nbsp;record
 +
| data11     = {{{careerrecord|}}}
 +
| label12    = Prize money
 +
| data12    = {{{careerprizemoney|}}}
 +
| label13    = Walk-on music
 +
| data13    = {{{music|}}}
  
| header12    = {{#if:{{{BDO<includeonly>|</includeonly>}}}{{{PDC|}}}{{{currentrank|}}}|Organisation (see [[split in darts]])}}
+
| header14  = {{#if:{{{PDC|}}}{{{BDO|}}}{{{currentrank|}}}|Organisation (see [[split in darts]])}}
  
| label13    = [[British Darts Organisation|BDO]]
+
| label15    = [[British Darts Organisation|BDO]]
| data13      = {{{BDO<includeonly>|</includeonly>}}}
+
| data15    = {{{BDO|}}}
| label14    = [[Professional Darts Corporation|PDC]]
+
| label16    = [[Professional Darts Corporation|PDC]]
| data14      = {{{PDC<includeonly>|</includeonly>}}}
+
| data16    = {{{PDC|}}}
| label15    = [[Darts world rankings|Current world ranking]]
+
| label17    = [[Darts world rankings|Current world ranking]]
| data15      = {{{currentrank<includeonly>|</includeonly>}}}
+
| data17    = {{{currentrank|}}}
  
| header40   = {{#if:{{{BDO World<includeonly>|</includeonly>}}}{{{PDC World|}}}{{{open|}}}{{{pga|}}}|Best Major Results<br />{{#if:{{{wcwins|}}}|(Wins: {{{wcwins}}})}} }}
+
|header18   = {{#if:{{{BDO World|}}}{{{World Masters|}}}{{{World Darts Trophy|}}}{{{Int. Darts League|}}}{{{Zuiderduin Masters|}}}|BDO majors - best performances}}
  
| label47    = [[BDO World Darts Championship|BDO World C'ship]]
+
| label19    = [[BDO World Darts Championship|World Ch'ship]]
| data47      = {{{BDO World<includeonly>|</includeonly>}}}
+
| data19    = {{{BDO World|}}}
| label48     = [[PDC World Darts Championship|PDC World C'ship]]
+
| label20    = [[World Masters (darts)|World Masters]]
| data48      = {{{PDC World<includeonly>|</includeonly>}}}
+
| data20     = {{{World Masters|}}}
 +
| label21    = [[World Darts Trophy]]
 +
| data21    = {{{World Darts Trophy|}}}
 +
| label22    = [[International Darts League|Int. Darts League]]
 +
| data22    = {{{Int. Darts League|}}}
 +
| label23    = [[Finder Darts Masters|Finder Masters]]
 +
| data23    = {{{Zuiderduin Masters|{{{Dutch Masters|}}}}}}
  
| header60   = {{#if:{{{achievement<includeonly>|</includeonly>}}}|Achievements and awards}}
+
|header24   = {{#if:{{{PDC World|}}}{{{Matchplay|}}}{{{Grand Prix|}}}{{{Grand Slam|}}}{{{Premier League|}}}{{{Championship League|}}}{{{Vegas|}}}{{{European|}}}{{{UK Open|}}}{{{US Open|}}}{{{PC Finals|}}}|PDC premier events - best performances}}
  
| below      = {{{achievement<includeonly>|</includeonly>}}}
+
| label25    = [[PDC World Darts Championship|World Ch'ship]]
}}<noinclude>{{documentation}}</noinclude>
+
| data25    = {{{PDC World|}}}
<noinclude>
+
| label26    = [[World Matchplay (darts)|World Matchplay]]
 +
| data26    = {{{Matchplay|}}}
 +
| label27    = [[World Grand Prix (darts)|World Grand Prix]]
 +
| data27    = {{{Grand Prix|}}}
 +
| label28    = [[Grand Slam of Darts|Grand Slam]]
 +
| data28    = {{{Grand Slam|}}}
 +
| label29    = [[Premier League Darts|Premier League]]
 +
| data29    = {{{Premier League|}}}
 +
| label30    = [[Championship League Darts|Ch'ship League]]
 +
| data30    = {{{Championship League|}}}
 +
| label31    = [[Las Vegas Desert Classic|Desert Classic]]
 +
| data31    = {{{Vegas|}}}
 +
| label32    = [[European Championship (darts)|European Ch'ship]]
 +
| data32    = {{{European|}}}
 +
| label33    = [[UK Open]]
 +
| data33    = {{{UK Open|}}}
 +
| label34    = [[US Open (darts)|US Open]]/[[World Series of Darts (2006 tournament)|WSoD]]
 +
| data34    = {{{US Open|}}}
 +
| label35    = [[Players Championship Finals|Players Ch'ship Finals]]
 +
| data35    = {{{PC Finals|}}}
 +
| label36    = [[Masters (darts)|Masters]]
 +
| data36    = {{{Masters|}}}
 +
| label37    = [[Champions League of Darts|Champions League]]
 +
| data37    = {{{Champions League|}}}
 +
| label38    = [[World Series of Darts Finals|World Series Finals]]
 +
| data38    = {{{World Series Finals|}}}
  
{{template sandbox notice}}
+
|header39    = {{#if:{{{results|{{{resultyears|}}}}}}|Other tournament wins}}
</noinclude>
+
 
 +
| label40    = {{#if:{{{tournament|}}}|Tournament}}
 +
| data40    = {{#if:{{{resultyears|}}}|'''Years'''}}
 +
| label41    = {{{tournament|}}}
 +
| data41    = {{{results|{{{resultyears|}}}}}}
 +
 
 +
|header42    = {{#if:{{{achievement|}}}|Other achievements}}
 +
|data43      = {{{achievement|}}}
 +
 
 +
| header44    = {{Infobox medal templates
 +
  |medals = {{{medaltemplates|}}}
 +
  |expand = {{#ifeq:{{lc:{{{show-medals}}}}}|no||yes}}
 +
  }}
 +
 
 +
| belowstyle  = color:darkslategray; font-size:82%
 +
| below      = {{#if:{{{updated|}}}|Updated on {{{updated}}}.}}
 +
 
 +
}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 07:21, 17 November 2018

Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
50px Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata

Usage

Copy and paste this into your article. If there is no data for a particular section just leave it blank. For BDO and PDC, input the years they played in each particular organisation (where applicable) e.g. BDO = 1987 to 1993.

Template:Parameter names example

{{Infobox darts player
| name                = 
| image               = 
| full_name           = 
| nickname            = 
| birth_date          = {{birth date and age|yyyy|mm|dd}}
| birth_place         = 
| death_date          = 
| death_place         = 
| hometown            = 
| since               = 
| darts               = 
| laterality          = 
| careerrecord        = 
| careerprizemoney    = 
| music               = 
| BDO                 = 
| PDC                 = 
| WDF                 = 
| currentrank         = 
| BDO World           = 
| World Masters       = 
| BDO World Trophy    = 
| World Darts Trophy  = 
| Int. Darts League   = 
| Zuiderduin Masters  = 
| PDC World           = 
| Matchplay           = 
| Grand Prix          = 
| Grand Slam          = 
| Premier League      = 
| Championship League = 
| Vegas               = 
| European            = 
| UK Open             = 
| US Open             = 
| PC Finals           = 
| The Masters         = 
| Champions League    = 
| World Series Finals = 
| tournament          = 
| resultyears         = 
| achievement         = 
| medaltemplates      = 
| updated             = 
}}

For each tournament add the best performance e.g. | Matchplay = QF 1998 or | World Masters = Runner-up 1952. If they haven't played in a particular or info is not available just leave blank. For filling in the updated parameter, use {{subst:Date}} or {{subst:Date|2=mdy}}.

For multiple tournament wins, use |results= with {{aligned table}} (as in this example):

| results = {{aligned table|leftright=y|fullwidth=y
| BDO World Championship | 1924 
| World Matchplay | 1925, 1926
| AN Other | 1934
}}

and it will display

Example Player
Other tournament wins
Script error: No such module "aligned table".

Microformat

Template:UF-hcard-person