Difference between revisions of "Template:Infobox darts player/doc"
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 (→Usage) |
||
| (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) | + | 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}} | ||
| − | + | <pre style="overflow:auto"> | |
| − | + | {{Infobox darts player | |
| − | | | + | | name = |
| − | | image = | + | | image = |
| − | | | + | | full_name = |
| nickname = | | nickname = | ||
| − | | | + | | birth_date = {{birth date and age|yyyy|mm|dd}} |
| − | | | + | | birth_place = |
| − | | | + | | death_date = |
| − | | | + | | death_place = |
| − | |||
| − | |||
| hometown = | | hometown = | ||
| − | |||
| 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 = |
| − | | | + | | 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 | + | 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 | + | {{clear}} |
| + | For multiple tournament wins, use {{para|results}} with {{tl|aligned table}} (as in this example): | ||
| − | {| | + | <pre> |
| − | | | + | | results = {{aligned table|leftright=y|fullwidth=y |
| − | | | + | | BDO World Championship | 1924 |
| − | World Matchplay | + | | World Matchplay | 1925, 1926 |
| − | + | | AN Other | 1934 | |
| − | | | + | }} |
| − | 1925, 1926 | ||
| − | 1934 | ||
</pre> | </pre> | ||
| − | |||
and it will display | and it will display | ||
| − | {{Infobox | + | {{Infobox darts player |
| − | | | + | | name = Example Player |
| image = | | image = | ||
| − | | | + | | full_name = |
| nickname = | | nickname = | ||
| − | | | + | | birth_date = |
| − | | | + | | birth_place = |
| − | | | + | | death_date = |
| − | + | | death_place = | |
| − | | | ||
| − | |||
| hometown = | | hometown = | ||
| − | |||
| since = | | since = | ||
| darts = | | darts = | ||
| BDO = | | BDO = | ||
| PDC = | | PDC = | ||
| + | | WDF = | ||
| currentrank = | | currentrank = | ||
| achievement = | | achievement = | ||
| years = | | years = | ||
| − | | | + | | results = |
| − | World Matchplay | + | {{aligned table|leftright=y|fullwidth=y |
| − | AN Other | + | | BDO World Championship | 1924 |
| − | | | + | | World Matchplay | 1925, 1926 |
| − | + | | AN Other | 1934 | |
| − | + | }} | |
| + | | 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
| This is a documentation subpage for Template:Infobox darts player. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
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