Difference between revisions of "Template:Infobox field hockey player"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word ]]
imported>Harrias (fix issue of double image if used as child) |
imported>Zyxw m (add birth_name as found in most person infoboxes) |
||
| Line 30: | Line 30: | ||
| data3 = {{{full_name|{{{fullname|}}}}}} | | data3 = {{{full_name|{{{fullname|}}}}}} | ||
| label4 = Born | | label4 = Born | ||
| − | | data4 = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}}}} | + | | data4 = {{br separated entries|{{{birth_name|}}}|{{{birth_date|}}}|{{{birth_place|}}}}} |
| label5 = Died | | label5 = Died | ||
| data5 = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}}} | | data5 = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}}} | ||
| Line 176: | Line 176: | ||
| below = {{#if:{{{updated|}}}| Last updated on: {{{updated|}}} }} | | below = {{#if:{{{updated|}}}| Last updated on: {{{updated|}}} }} | ||
| − | }}{{#invoke:Check for unknown parameters | check | ignoreblank = y | unknown = {{Main other|[[Category:Pages using Infobox field hockey player with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview = Page using [[Template:Infobox field hockey player]] with unknown parameter "_VALUE_" | embed | child | player name | playername | name | image | image_size | alt | caption | full_name | fullname | birth_date | birth_place | death_date | death_place | height | weight | position | currentclub | youthclubs1 | youthyears1 | youthclubs2 | youthyears2 | youthclubs3 | youthyears3 | youthclubs4 | youthyears4 | youthclubs5 | youthyears5 | clubs1 | years1 | caps1 | caps(goals)1 | goals1 | clubs2 | years2 | caps2 | caps(goals)2 | goals2 | clubs3 | years3 | caps3 | caps(goals)3 | goals3 | clubs4 | years4 | caps4 | caps(goals)4 | goals4 | clubs5 | years5 | caps5 | caps(goals)5 | goals5 | clubs6 | years6 | caps6 | caps(goals)6 | goals6 | clubs7 | years7 | caps7 | caps(goals)7 | goals7 | clubs8 | years8 | caps8 | caps(goals)8 | goals8 | clubs9 | years9 | caps9 | caps(goals)9 | goals9 | clubs10 | years10 | caps10 | caps(goals)10 | goals10 | totalcaps | totalcaps(goals) | totalgoals | nationalteam1 | nationalyears1 | nationalcaps1 | nationalcaps(goals)1 | nationalgoals1 | nationalteam2 | nationalyears2 | nationalcaps2 | nationalcaps(goals)2 | nationalgoals2 | nationalteam3 | nationalyears3 | nationalcaps3 | nationalcaps(goals)3 | nationalgoals3 | medaltemplates-title | medaltemplates | show-medals | updated| regexp19 = manageryears[1-9] | regexp20 = managerclubs[1-9] | regexp21 = manageryears[1-4][%d] | regexp22 = managerclubs[1-4][%d] | + | }}{{#invoke:Check for unknown parameters | check | ignoreblank = y | unknown = {{Main other|[[Category:Pages using Infobox field hockey player with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview = Page using [[Template:Infobox field hockey player]] with unknown parameter "_VALUE_" | embed | child | player name | playername | name | image | image_size | alt | caption | full_name | fullname | birth_name | birth_date | birth_place | death_date | death_place | height | weight | position | currentclub | youthclubs1 | youthyears1 | youthclubs2 | youthyears2 | youthclubs3 | youthyears3 | youthclubs4 | youthyears4 | youthclubs5 | youthyears5 | clubs1 | years1 | caps1 | caps(goals)1 | goals1 | clubs2 | years2 | caps2 | caps(goals)2 | goals2 | clubs3 | years3 | caps3 | caps(goals)3 | goals3 | clubs4 | years4 | caps4 | caps(goals)4 | goals4 | clubs5 | years5 | caps5 | caps(goals)5 | goals5 | clubs6 | years6 | caps6 | caps(goals)6 | goals6 | clubs7 | years7 | caps7 | caps(goals)7 | goals7 | clubs8 | years8 | caps8 | caps(goals)8 | goals8 | clubs9 | years9 | caps9 | caps(goals)9 | goals9 | clubs10 | years10 | caps10 | caps(goals)10 | goals10 | totalcaps | totalcaps(goals) | totalgoals | nationalteam1 | nationalyears1 | nationalcaps1 | nationalcaps(goals)1 | nationalgoals1 | nationalteam2 | nationalyears2 | nationalcaps2 | nationalcaps(goals)2 | nationalgoals2 | nationalteam3 | nationalyears3 | nationalcaps3 | nationalcaps(goals)3 | nationalgoals3 | medaltemplates-title | medaltemplates | show-medals | updated| regexp19 = manageryears[1-9] | regexp20 = managerclubs[1-9] | regexp21 = manageryears[1-4][%d] | regexp22 = managerclubs[1-4][%d] |
}}<noinclude> | }}<noinclude> | ||
Revision as of 01:03, 30 January 2020
|
Script error: No such module "Wikidata". Script error: No such module "Wikidata". |
[[Category:Infobox templates|Template:Remove first word ]]
| This template uses Lua: |
Contents
Usage
Up to 5 youth clubs, 10 senior clubs and 3 national teams may be specified.
If |child=yes the result will be a child infobox suitable for use inside other infoboxes.
Blank infobox
Template:Parameter names example
{{Infobox field hockey player
| name =
| image =
| image_size =
| alt =
| caption =
| full_name = <!-- if different -->
| birth_name = <!-- if different -->
| birth_date = <!-- {{Birth date and age|YYYY|MM|DD|df=y}} -->
| birth_place =
| death_date = <!-- {{Death date and age|YYYY|MM|DD|df=y}} -->
| death_place =
| height = <!-- {{Convert| |cm|ftin|frac=2|abbr=on}} or {{Convert| |ft| |in|cm|abbr=on}} -->
| weight =
| position =
| currentclub =
| youthyears1 =
| youthclubs1 =
| youthyears2 =
| youthclubs2 =
| years1 =
| clubs1 =
| caps(goals)1 =
| years2 =
| clubs2 =
| caps(goals)2 =
| totalcaps(goals) =
| nationalyears1 =
| nationalteam1 =
| nationalcaps(goals)1 =
| nationalyears2 =
| nationalteam2 =
| nationalcaps(goals)2 =
| manageryears1 =
| managerclubs1 =
| manageryears2 =
| managerclubs2 =
| medaltemplates =
| updated =
}}
Separate caps/goals parameters
Template:Parameter names example
{{Infobox field hockey player
| name =
| image =
| image_size =
| alt =
| caption =
| full_name = <!-- if different -->
| birth_name = <!-- if different -->
| birth_date = <!-- {{Birth date and age|YYYY|MM|DD|df=y}} -->
| birth_place =
| death_date = <!-- {{Death date and age|YYYY|MM|DD|df=y}} -->
| death_place =
| height = <!-- {{convert| |cm|ftin|frac=2|abbr=on}} or {{convert| |ft| |in|cm|abbr=on}} -->
| weight =
| position =
| currentclub =
| youthyears1 =
| youthclubs1 =
| youthyears2 =
| youthclubs2 =
| years1 =
| clubs1 =
| caps1 =
| goals1 =
| years2 =
| clubs2 =
| caps2 =
| goals2 =
| totalcaps =
| totalgoals =
| nationalyears1 =
| nationalteam1 =
| nationalcaps1 =
| nationalgoals1 =
| nationalyears2 =
| nationalteam2 =
| nationalcaps2 =
| nationalgoals2 =
| manageryears1 =
| managerclubs1 =
| manageryears2 =
| managerclubs2 =
| medaltemplates =
| updated =
}}
- When filling in the updated parameter, use
{{subst:Date}}or{{subst:Date|2=mdy}}.
Use as a child template
The child or embed parameter is used when embedding this infobox into another.
This infobox may be used to create a genre-specific section within {{Infobox person}} (or similar biographical infobox templates) for cases where a person may be notable in more than one field; a generic example is shown below. For guidance on usage, see Wikipedia:Infobox modules. Also see the Template:Infobox documentation which explains embedding and subboxes.
{{Infobox person
| name =
| image =
| caption =
| birth_date =
| birth_place =
| <!-- etc. -->
| module =
{{Infobox field hockey player | child=yes
| parameter-1 =
| parameter-2 =
| parameter-3 =
| parameter-4 =
| <!-- etc. -->
}}
}}
Example
| Personal information | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Born |
March 26, 1986 Bloemendaal, Netherlands | |||||||||||||||
| Height | 5 ft 7 in (170 cm) | |||||||||||||||
| Playing position | Midfield | |||||||||||||||
| Senior career | ||||||||||||||||
| Years | Team | Apps (Gls) | ||||||||||||||
| 2002-present | SCHC | ?? (15) | ||||||||||||||
| National team | ||||||||||||||||
| Years | Team | Apps (Gls) | ||||||||||||||
| 2004-present | Netherlands | 34 (7) | ||||||||||||||
Medal record
| ||||||||||||||||
{{Infobox field hockey player
| name = Ellen Hoog
| image =
| caption =
| birth_date = {{Birth date and age|1986|3|26}}
| birth_place = [[Bloemendaal]], Netherlands
| height = {{convert|5|ft|7|in|cm|abbr=on}}
| position = Midfield
| clubs1 = [[Stichtse Cricket en Hockey Club|SCHC]]
| years1 = 2002-present
| caps(goals)1 = ?? (15)
| nationalteam1 = [[Netherlands women's national field hockey team|Netherlands]]
| nationalyears1 = 2004-present
| nationalcaps(goals)1 = 34 (7)
| medaltemplates =
{{MedalSport|Women's [[field hockey]]}}
{{MedalCountry|the {{NED}}}}
{{MedalCompetition|[[Olympic Games]]}}
{{MedalGold|[[2008 Summer Olympics|2008 Beijing]]|[[Field hockey at the 2008 Summer Olympics – Women's tournament|Team competition]]}}
}}
Microformat
Tracking category
See also
| The above documentation is transcluded from Template:Infobox field hockey player/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |