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

From blackwiki
Jump to navigation Jump to search
imported>J JMesserly
(This change has concensus, please refer to Manual of Style birth and death date template guidance and talk page discussions.)
imported>DLManiac
 
(42 intermediate revisions by 20 users not shown)
Line 1: Line 1:
 +
{{Documentation subpage}}
 +
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
 +
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata}}
 +
{{Uses Wikidata|P18}}
 +
 
==Usage==
 
==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) eg BDO = 1987 to 1993.
+
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.
 +
 
 +
{{Parameter names example|_template=|name|image|image_size|imagesize|alt|caption|full_name|nickname|birth_date|birth_place|death_date|death_place|hometown|since|darts|laterality|music|careerrecord|careerprizemoney|PDC|BDO|WDF|currentrank|BDO World|World Masters|World Darts Trophy|Int. Darts League|Zuiderduin Masters|Dutch Masters|PDC World|Matchplay|Grand Prix|Grand Slam|Premier League|Championship League|Vegas|European|UK Open|US Open|PC Finals|Masters|Champions League|World Series Finals|World Series Finals|results|resultyears|tournament|achievement|medaltemplates|show-medals|updated}}
  
{| style="background: transparent;"
+
<pre style="overflow:auto">
|<pre>{{Infobox Darts player
+
{{Infobox darts player
| playername          =  
+
| name                =  
| image              = [[Image:Replace this image male.svg|150px]]
+
| image              =  
| fullname            =
+
| full_name          =  
 
| nickname            =  
 
| nickname            =  
| dateofbirth        = {{Birth-date and age| birth date }}
+
| birth_date          = {{birth date and age|yyyy|mm|dd}}
| cityofbirth         =  
+
| birth_place         =  
| countryofbirth      =  
+
| death_date          =  
| dateofdeath         =
+
| death_place         =  
| cityofdeath        =
 
| countryofdeath      = 
 
 
| hometown            =  
 
| hometown            =  
| homecountry        =
 
 
| since              =  
 
| since              =  
| darts              =
+
| darts              =  
| laterality          =
+
| laterality          =
 +
| careerrecord        =
 +
| careerprizemoney    =  
 
| music              =  
 
| music              =  
 
| BDO                =  
 
| BDO                =  
 
| PDC                =  
 
| PDC                =  
| currentrank        =
+
| WDF                =
| BDO World          =
+
| currentrank        =  
 +
| BDO World          =  
 
| World Masters      =  
 
| World Masters      =  
| World Darts Trophy  =
+
| BDO World Trophy    =
| Int. Darts League  =
+
| World Darts Trophy  =  
| Dutch Masters       =
+
| Int. Darts League  =  
| PDC World          =
+
| Zuiderduin Masters =  
| Matchplay          =
+
| PDC World          =  
| Grand Prix          =
+
| Matchplay          =  
| Grand Slam          =
+
| Grand Prix          =  
| Premier League      =
+
| Grand Slam          =  
 +
| Premier League      =  
 
| Championship League =  
 
| Championship League =  
| Vegas              =
+
| Vegas              =  
| European            =
+
| European            =  
| UK Open            =
+
| UK Open            =  
| US Open            =
+
| US Open            =  
| PC Finals          =
+
| PC Finals          =
| tournament          =
+
| The Masters        =
| resultyears        =
+
| Champions League    =
 +
| World Series Finals =  
 +
| tournament          =  
 +
| resultyears        =  
 
| achievement        =  
 
| achievement        =  
}}</pre>
+
| medaltemplates      =
|}
+
| updated            =
 +
}}
 +
</pre>
  
For each tournament add the best performance eg | 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 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 <code><nowiki>{{subst:Date}}</nowiki></code> or <code><nowiki>{{subst:Date|2=mdy}}</nowiki></code>.
  
For multiple tournament wins list all the tournaments first, then the years in the same order (as in this example):
+
{{clear}}
 +
For multiple tournament wins, use {{para|results}} with {{tl|aligned table}} (as in this example):
  
{| style="background: transparent;"
+
<pre>
|<pre>
+
| results = {{aligned table|leftright=y|fullwidth=y
| tournament    = BDO World Championship <br />
+
| BDO World Championship | 1924
World Matchplay <br />
+
| World Matchplay | 1925, 1926
AN Other <br />
+
| AN Other | 1934
| resultyears    = 1924 <br />
+
}}
1925, 1926 <br />
 
1934 <br />
 
 
</pre>
 
</pre>
|}
 
  
 
and it will display
 
and it will display
  
{{Infobox Darts player
+
{{Infobox darts player
| playername    = Example Player
+
| name          = Example Player
 
| image          =  
 
| image          =  
| fullname      =
+
| full_name      =
 
| nickname      =  
 
| nickname      =  
| dateofbirth    =  
+
| birth_date    =  
| cityofbirth   =  
+
| birth_place   =  
| countryofbirth =
+
| death_date    =  
| dateofdeath    =
+
| death_place   =  
| cityofdeath   =  
 
| countryofdeath = 
 
 
| hometown      =  
 
| hometown      =  
| homecountry    =
 
 
| since          =  
 
| since          =  
 
| darts          =  
 
| darts          =  
 
| BDO            =  
 
| BDO            =  
 
| PDC            =  
 
| PDC            =  
 +
| WDF            =
 
| currentrank    =  
 
| currentrank    =  
 
| achievement    =  
 
| achievement    =  
 
| years          =
 
| years          =
| tournament    = BDO World Championship <br />
+
| results        =  
World Matchplay <br />
+
{{aligned table|leftright=y|fullwidth=y
AN Other <br />
+
| BDO World Championship | 1924
| resultyears    = 1924 <br />
+
| World Matchplay | 1925, 1926
1925, 1926 <br />
+
| AN Other | 1934
1934 <br />
+
}}
 +
| medaltemplates      =
 
}}
 
}}
 +
 +
{{clear}}
  
 
==Microformat==
 
==Microformat==
 
{{UF-hcard-person}}
 
{{UF-hcard-person}}
 +
 +
<includeonly>{{Basepage subpage|
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
[[Category:Sportsperson infobox templates|Darts player]]
 +
[[Category:Darts templates]]
 +
[[Category:Infobox templates with updated parameter]]
 +
[[Category:Infobox templates using Wikidata]]
 +
}}</includeonly>

Latest revision as of 07:25, 22 October 2020

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