Difference between revisions of "Template:Infobox ice hockey player/doc"

From blackwiki
Jump to navigation Jump to search
imported>EdwardKarlsson86
imported>EdwardKarlsson86
Line 1: Line 1:
{{Jacob OL}}
+
}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
{{Lua|Module:Infobox3cols|Module:InfoboxImage|Module:Check for unknown parameters}}
 
{{Lua|Module:Infobox3cols|Module:InfoboxImage|Module:Check for unknown parameters}}

Revision as of 02:59, 18 January 2021

}}

This infobox is to be used for ice hockey players. Suggestions on change should be noted in the talk page.

Usage

Metric: height (m)

Template:Parameter names example

| height_m        = 

Imperial: height (ft/in), weight (lb)

Template:Parameter names example


Parameters

The only required parameters are name and career_start (failure to fill in data for either of these WILL NOT delete that field from the infobox). You must enter parameter names exactly as shown below (i.e.: letter case matters!). Please follow the guidelines provided in parenthesis for best results:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template. TemplateData for Infobox ice hockey player
<templatedata> { "description": "A template to display an infobox for ice hockey players.", "params": { "name": {ayer's name, if not given the page name is used.", "type": "string", "default": "Infobox ice hockey player/doc", "required": true }, "image": { "description": "Image of player (file name only).", "type": "string", "required": false }, "image_size": { "description": "Width in px, default is original image size. Try to use 230px, if image is too pixelated upon article preview, try a smaller size.", "type": "number", "required": false }, "birth_date": { "description": "For living players, use Error: Need valid birth date: year, month, day,  (2026-03-21UTC05:19:06) (age 2017), or {{{1}}} (age Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".)Expression error: Unrecognized punctuation character "{".. For deceased players, use ({{{year}}}-Expression error: Unrecognized punctuation character "{".-{{{day}}})Expression error: Unrecognized punctuation character "{"., Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{". or  (0009-11-01). Add |df=yes before the }} if you want day-month format instead of month-day.", "type": "string", "required": false }, "birth_place": { "description": "Place of birth. Format appropriate to the country (see WP:PLACE); use country as called at time of birth.", "type": "string", "required": false }, "death_date": { "description": "Use Error: Need valid death date (first date): year, month, day or  (2026-03-21UTC05:19:07) (aged 0). Add |df=yes before the }} if you want day-month format instead of month-day.", "type": "string", "required": false }, "death_place": { "description": "Place of death (if known). Format appropriate to the country (see WP:PLACE)", "type": "string", "required": false }, "height_cm": { "description": "Player's height (centimeters). Do not use both cm and ft/in.", "type": "number", "required": false }, "height_m": { "description": "Player's height (meters). Do not use both m and ft/in.", "type": "number", "required": false }, "height_ft": { "description": "Player's height (feet; use with height_in). Do not use both ft/in and m.", "type": "number", "required": false }, "height_in": { "description": "Player's height (inches; use with height_ft). Do not use both ft/in and m.", "type": "number", "required": false }, "weight_kg": { "description": "Player's weight (kilograms). Do not use both kg and lb.", "type": "number", "required": false }, "weight_lb": { "aliases": [ "weight_lbs" ], "description": "Player's weight (pounds). Do not use both lb and kg.", "type": "number", "required": false }, "position": { "description": "All positions can be wikified. i.e.: use Centre, Defence, Left Wing/Right Wing, Goaltender.", "type": "string", "required": false }, "shoots": { "description": "Left/Right (if player is a skater; use catches for a goalie). It is HIGHLY RECOMMENDED that one of these two field choices is used in the template. The only reason that this field has been made optional is because there is discretion involved in choosing which of the two to use in the infobox, based on whether the player is a skater or a goalie.", "type": "string", "required": false }, "catches": { "description": "Left/Right (if player is a goalie; use shoots for a skater). It is HIGHLY RECOMMENDED that one of these two field choices is used in the template. The only reason that this field has been made optional is because there is discretion involved in choosing which of the two to use in the infobox, based on whether the player is a skater or a goalie.", "type": "string", "required": false }, "league": { "description": "Current league. Use abbreviation and link. i.e.: NHL, KHL, etc. If league name is relatively short, you can use the full name. i.e.: SM-liiga. Infobox WILL flex to accommodate the name.", "type": "string", "required": false }, "team": { "description": "Current team (in league above). Enter FULL NAME of team with link, i.e. Boston Bruins, HC Dynamo Moscow, etc.", "type": "string", "required": false },