Difference between revisions of "Template:Infobox handball biography/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (→‎Use as a child template: update numbering)
imported>Zyxw
(separate examples from documentation)
Line 46: Line 46:
 
</pre>
 
</pre>
 
* When filling in the {{para|ntupdate}} parameter, use <code><nowiki>{{subst:Date}}</nowiki></code> or <code><nowiki>{{subst:Date|2=mdy}}</nowiki></code>.
 
* When filling in the {{para|ntupdate}} parameter, use <code><nowiki>{{subst:Date}}</nowiki></code> or <code><nowiki>{{subst:Date|2=mdy}}</nowiki></code>.
 +
{{clear}}
 +
 +
=== Use as a child template ===
 +
The '''embed''' parameter is used when embedding this infobox into another.
 +
 +
{{Infobox person module documentation|Infobox handball biography|parameter=embed}}
 +
{{clear}}
 +
 +
=== Embedding other templates ===
 +
The '''module''' parameter is used for embedding other templates into this infobox (see [[Wikipedia:Infobox modules]]).
 +
 +
<pre style="overflow: auto;">
 +
{{Infobox handball biography
 +
| name =
 +
| <!-- etc. -->
 +
| module =
 +
  {{Infobox basketball biography | embed=yes
 +
  | <!-- etc. -->
 +
  }}
 +
}}
 +
</pre>
 
{{clear}}
 
{{clear}}
  
Line 130: Line 151:
 
{{clear}}
 
{{clear}}
  
=== Use as a child template ===
+
=== Using embed parameter ===
 
{{Infobox person
 
{{Infobox person
 
| name        = Tom Schneeberger
 
| name        = Tom Schneeberger
Line 153: Line 174:
 
}}
 
}}
  
The '''embed''' parameter is used when embedding this infobox into another.
+
<pre style="overflow: auto;">
 
+
{{Infobox person
{{Infobox person module documentation|Infobox handball biography|parameter=embed}}
+
| name        = Tom Schneeberger
 +
| birth_date  = {{Birth date and age|1956|05|18}}
 +
| birth_place  = [[Ann Arbor, Michigan]], [[United States]]
 +
| module       =
 +
  {{Infobox handball biography | embed = yes
 +
  | years1        = 1976-
 +
  | clubs1        = [[Air Force Falcons]]
 +
  | nationalyears1 = 1976-
 +
  | nationalteam1  = [[United States national handball team]]
 +
  }}
 +
| module2          =
 +
  {{Infobox basketball biography | embed = yes
 +
  | position      = [[Power forward (basketball)|Power Forward]]
 +
  | college      = [[Air Force Falcons men's basketball|Air Force Falcons]] ([[Colorado Springs, CO]])
 +
  | draft_year    = 1978
 +
  | draft_round  = 9
 +
  | draft_pick    = 183
 +
  | draft_team    = [[Denver Nuggets]]
 +
  }}
 +
}}
 +
</pre>
 
{{clear}}
 
{{clear}}
  
=== Embedding other templates ===
+
=== Using module parameter ===
 
{{Parameter names example
 
{{Parameter names example
 
| name          = Tom Schneeberger
 
| name          = Tom Schneeberger
Line 177: Line 218:
 
   }}
 
   }}
 
}}
 
}}
 
The '''module''' parameter is used for embedding other templates into this infobox (see [[Wikipedia:Infobox modules]]).
 
  
 
<pre style="overflow: auto;">
 
<pre style="overflow: auto;">
 
{{Infobox handball biography
 
{{Infobox handball biography
| name =  
+
| name           = Tom Schneeberger
| <!-- etc. -->
+
| birth_date    = {{Birth date and age|1956|05|18}}
| module =  
+
| birth_place    = [[Ann Arbor, Michigan]], [[United States]]
   {{Infobox basketball biography | embed=yes
+
| years1        = 1976-
   | <!-- etc. -->
+
| clubs1        = [[Air Force Falcons]]
 +
| nationalyears1 = 1976-
 +
| nationalteam1  = [[United States national handball team]]
 +
| module         =  
 +
   {{Infobox basketball biography | embed = yes
 +
   | position    = [[Power forward (basketball)|Power Forward]]
 +
  | college      = [[Air Force Falcons men's basketball|Air Force Falcons]] ([[Colorado Springs, CO]])
 +
  | draft_year  = 1978
 +
  | draft_round  = 9
 +
  | draft_pick  = 183
 +
  | draft_team  = [[Denver Nuggets]]
 
   }}
 
   }}
 
}}
 
}}

Revision as of 07:07, 10 March 2020

Template:Uses Wikidata

{{Infobox handball biography}} is intended to provide a quick overview of a handball player's or manager's details to enable a reader to extract the most oft-needed information without trawling through the article proper. It is most appropriately used for professional players and managers and should not be leveraged for amateurs, no matter their profile.

Usage

Template:Parameter names example

{{Infobox handball biography
| name                = 
| image               = <!-- Player Photo.jpg -->
| image_size          = 
| alt                 = 
| caption             = 
| full_name           = 
| birth_date          = <!-- {{Birth date and age|YYYY|MM|DD}} -->
| birth_place         = 
| death_date          = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} -->
| death_place         = 
| nationality         = 
| height              = <!-- XXX cm or X ft XX in -->
| position            = 
| currentclub         = 
| clubnumber          = 
| youthyears1         = 
| youthclubs1         = 
| years1              = 
| clubs1              = 
| nationalyears1      = 
| nationalteam1       = 
| nationalcaps1       = 
| nationalgoals1      = 
| titleyears1         = 
| title1              = 
| titleplace1         = 
| manageryears1       = 
| managerclubs1       = 
| show-medals         = 
| medaltemplates      = 
| module              = 
| ntupdate            = <!-- {{subst:Date}} or {{subst:Date|2=mdy}} -->
}}
  • When filling in the |ntupdate= parameter, use {{subst:Date}} or {{subst:Date|2=mdy}}.

Use as a child template

The 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 handball biography | embed=yes
  | parameter-1 = 
  | parameter-2 = 
  | parameter-3 = 
  | parameter-4 = 
  | <!-- etc. -->
  }}
}}

Embedding other templates

The module parameter is used for embedding other templates into this infobox (see Wikipedia:Infobox modules).

{{Infobox handball biography
| name = 
| <!-- etc. -->
| module = 
  {{Infobox basketball biography | embed=yes
  | <!-- etc. -->
  }}
}}

Examples

Template:Parameter names example

{{Infobox handball biography
| name           = Heidi Løke
| image          = Heidi Løke.jpg
| caption        = Løke in 2011
| birth_date     = {{birth date and age|1982|12|12|df=y}}
| birth_place    = [[Tønsberg]], [[Norway]]
| nationality    = Norwegian
| height         = 1.73 m
| position       = Pivot
| currentclub    = [[Storhamar HE]]
| clubnumber     = 5
| years1         = {{0|0000}}–2000
| clubs1         = [[IL Runar]]
| years2         = 2000–2002
| clubs2         = [[Larvik HK]]
| years3         = 2002–2007
| clubs3         = [[Gjerpen IF]]
| years4         = 2007–2008
| clubs4         = [[Aalborg DH]]
| years5         = 2008–2011
| clubs5         = [[Larvik HK]]
| years6         = 2011–2017
| clubs6         = [[Győri Audi ETO KC]]
| years7         = 2017–2019
| clubs7         = [[Storhamar HE]]
| years8         = 2019–
| clubs8         = [[Vipers Kristiansand]]
| nationalyears1 = 2006–
| nationalteam1  = [[Norway women's national handball team|Norway]]
| nationalcaps1  = 215
| nationalgoals1 = 789
| medaltemplates = 
{{MedalSport|Women's [[handball]]}}
{{MedalCountry|{{NOR}}}}
{{MedalCompetition|[[Handball at the Summer Olympics|Olympic Games]]}}
{{MedalGold|[[Handball at the 2012 Summer Olympics|2012 London]]|[[Handball at the 2012 Summer Olympics – Women's tournament|Team]]}}
{{MedalBronze|[[Handball at the 2016 Summer Olympics|2016 Rio de Janeiro]]|[[Handball at the 2016 Summer Olympics – Women's tournament|Team]]}}
}}

Using embed parameter

Tom Schneeberger
Born (1956-05-18) May 18, 1956 (age 70)
Template:Parameter names example
Basketball career
Career information
High schoolScript error: No such module "If empty".
CollegeAir Force Falcons (Colorado Springs, CO)
[[Script error: No such module "If empty". draft]][[Script error: No such module "If empty". Script error: No such module "If empty". draft|Script error: No such module "If empty".]] Expression error: Unrecognized punctuation character "[". / Pick: Script error: No such module "If empty".
Selected by the Script error: No such module "If empty".
PositionScript error: No such module "If empty".
NumberScript error: No such module "If empty".
StatsScript error: No such module "EditAtWikidata". at NBA.com
StatsScript error: No such module "EditAtWikidata". at Basketball-Reference.com

Template:Wikidata image

{{Infobox person
| name         = Tom Schneeberger
| birth_date   = {{Birth date and age|1956|05|18}}
| birth_place  = [[Ann Arbor, Michigan]], [[United States]]
| module       = 
  {{Infobox handball biography | embed = yes
  | years1         = 1976-
  | clubs1         = [[Air Force Falcons]]
  | nationalyears1 = 1976-
  | nationalteam1  = [[United States national handball team]]
  }}
| module2          = 
  {{Infobox basketball biography | embed = yes
  | position      = [[Power forward (basketball)|Power Forward]]
  | college       = [[Air Force Falcons men's basketball|Air Force Falcons]] ([[Colorado Springs, CO]])
  | draft_year    = 1978
  | draft_round   = 9
  | draft_pick    = 183
  | draft_team    = [[Denver Nuggets]]
  }}
}}

Using module parameter

Template:Parameter names example

{{Infobox handball biography
| name           = Tom Schneeberger
| birth_date     = {{Birth date and age|1956|05|18}}
| birth_place    = [[Ann Arbor, Michigan]], [[United States]]
| years1         = 1976-
| clubs1         = [[Air Force Falcons]]
| nationalyears1 = 1976-
| nationalteam1  = [[United States national handball team]]
| module         = 
  {{Infobox basketball biography | embed = yes
  | position     = [[Power forward (basketball)|Power Forward]]
  | college      = [[Air Force Falcons men's basketball|Air Force Falcons]] ([[Colorado Springs, CO]])
  | draft_year   = 1978
  | draft_round  = 9
  | draft_pick   = 183
  | draft_team   = [[Denver Nuggets]]
  }}
}}

Microformat

Template:UF-hcard-person

Tracking categories