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

From blackwiki
Jump to navigation Jump to search
imported>Arteyu
m (→‎Syntax: Minor Edits)
imported>GoingBatty
(removed unsupported infobox parameter)
 
(44 intermediate revisions by 15 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
== Syntax ==
+
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata|Module:Check for unknown parameters}}
{| style="background:transparent;"
+
{{Uses Wikidata|P18}}
|<pre>{{Infobox Squash player
+
 
| playername              =  
+
== Usage ==
| image                  =  
+
{{Parameter names example | name | image | image_size | alt | caption | full_name | nickname | country | residence | birth_name | birth_date | birth_place | death_date | death_place | height | weight | turnedpro | retired | plays | coach | racquet | website | event | highest_ranking | date_of_highest_ranking | current_ranking | date_of_current_ranking | titles | finals | WorldOpenresult | medaltemplates | show-medals | module | updated }}
| size                    =  
+
 
| caption                =  
+
<pre style="overflow:auto; white-space:pre;">
 +
{{Infobox squash player
 +
| name                    =  
 +
| image                  = <!-- formatted like this: Example.jpg -->
 +
| alt                    = <!-- alternative text, see [[WP:ALT]] -->
 +
| caption                = <!-- brief text caption for the image -->
 +
| full_name              = <!-- only use if different from name -->
 
| nickname                =  
 
| nickname                =  
| birth_name              =
 
| date_of_birth          = {{birth date and age|YYYY|MM|DD}}
 
| place_of_birth          =
 
| date_of_death          =
 
| place_of_death          =
 
| based_at                =
 
| height                  = {{height|ft=x|in=x}} or {{height|m=x}}
 
| weight                  = {{weight|lb=x}} or {{weight|kg=x}}
 
| event                  =
 
 
| country                =  
 
| country                =  
| years_active            =  
+
| residence              =  
| turned_pro             =
+
| birth_name             = <!-- if different from name or full_name -->
| handedness             =  
+
| 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            =
 +
| height                  = <!-- "X cm" or "X ft Y in" (auto conversion) -->
 +
| weight                  = <!-- "X kg" or "X lb" (auto conversion) -->
 +
| turnedpro              =
 +
| retired                =
 +
| plays                  =
 +
| coach                  =  
 
| racquet                =
 
| racquet                =
| coach                   =  
+
| website                = <!-- official website: {{URL|example.com}} -->
 +
| event                   =  
 
| highest_ranking        =  
 
| highest_ranking        =  
 
| date_of_highest_ranking =  
 
| date_of_highest_ranking =  
 
| current_ranking        =  
 
| current_ranking        =  
 
| date_of_current_ranking =  
 
| date_of_current_ranking =  
| played                  =
 
 
| titles                  =  
 
| titles                  =  
 
| finals                  =
 
| finals                  =
| medaltemplates =
+
| WorldOpenresult        =
}}</pre>
+
| medaltemplates         =
|}
+
| show-medals            = <!-- to collapse medal section set as: no -->
<br clear=right/>
+
| module                  =
 +
| updated                = <!-- date template last updated in article -->
 +
}}
 +
</pre>
 +
{{clear}}
 +
 
 +
== Example ==
 +
{{Infobox squash player
 +
| name                    = Nicol David
 +
| image                  = Nicol2009.jpg
 +
| caption                = Nicol Ann David holding her CIMB Malaysian Squash Open 2009 trophy.
 +
| full_name              = Nicol Ann David
 +
| nickname                = Duracell Bunny
 +
| country                = {{MAS}}
 +
| residence              = [[Amsterdam]], Netherlands
 +
| birth_date              = {{birth date and age|1983|8|26}}
 +
| birth_place            = [[Penang]], Malaysia
 +
| height                  = 163 cm
 +
| weight                  = 50 kg
 +
| turnedpro              = 2000
 +
| retired                = Active
 +
| plays                  = Right handed
 +
| coach                  = [[Liz Irving]]
 +
| racquet                = [[Prince Sports|Prince]]
 +
| website                = {{URL|www.nicoldavid.com}}
 +
| event                  = Women's singles
 +
| highest_ranking        = No. 1
 +
| date_of_highest_ranking = January 2006
 +
| current_ranking        = No. 1
 +
| date_of_current_ranking = December 2009
 +
| titles                  = 41
 +
| finals                  = 54
 +
| WorldOpenresult        = '''W''' (2005, [[2006 Women's World Open Squash Championship|2006]],
 +
[[2008 Women's World Open Squash Championship|2008]], [[2009 Women's World Open Squash Championship|2009]])
 +
| medaltemplates          =
 +
{{MedalSport | Women's [[squash (sport)|squash]] }}
 +
{{MedalCountry | {{MAS}} }}
 +
{{MedalCompetition | [[Commonwealth Games]] }}
 +
{{MedalSilver | [[2002 Commonwealth Games|2002 Manchester]] | [[Squash at the 2002 Commonwealth Games|Mixed doubles]] }}
 +
{{MedalCompetition | [[Asian Games]] }}
 +
{{MedalGold | [[1998 Asian Games|1998 Bangkok]] | [[Squash at the 1998 Asian Games|Individual]] }}
 +
{{MedalSilver | [[2002 Asian Games|2002 Busan]] | [[Squash at the 2002 Asian Games|Individual]] }}
 +
{{MedalGold | [[2006 Asian Games|2006 Doha]] | [[Squash at the 2006 Asian Games|Individual]] }}
 +
{{MedalCompetition | [[World Games]] }}
 +
{{MedalGold | [[World Games 2005|2005 Duisburg]] | [[Squash at the World Games 2005|Individual]] }}
 +
{{MedalGold | [[World Games 2009|2009 Kaohsiung]] | [[Squash at the World Games 2009|Individual]] }}
 +
| updated                = December 20, 2009
 +
}}
  
==Example==
+
<pre style="overflow:auto;">
{| style="background:transparent;"
+
{{Infobox squash player
|<pre>{{Infobox Squash player
+
| name                    = Nicol David
| playername              = Nicol David
+
| image                  = Nicol2009.jpg
| image                  = (optional)
+
| caption                = Nicol Ann David holding her CIMB Malaysian Squash Open 2009 trophy.
| size                    = 200px (optional)
+
| full_name              = Nicol Ann David
| caption                = Caption
+
| nickname               = Duracell Bunny
| nickname                = Duracell Bunny
 
| birth_name              = Nicol Ann David
 
| date_of_birth          = {{birth date and age|1983|8|26}}
 
| place_of_birth          = [[Penang]], [[Malaysia]]
 
| based_at               = [[Amsterdam]]
 
| height                  = {{height|m=1.65}}
 
| weight                  = 50kg
 
| event                  = Women's singles
 
 
| country                = {{MAS}}
 
| country                = {{MAS}}
| years_active            = 1994&ndash;2004
+
| residence              = [[Amsterdam]], Netherlands
| turned_pro             = 2000
+
| birth_date             = {{birth date and age|1983|8|26}}
| handedness              = right
+
| birth_place            = [[Penang]], Malaysia
| racquet                = Prince o3 Tour
+
| height                  = 163 cm
| coach                   = Liz Irving
+
| weight                  = 50 kg
| highest_ranking        = 1
+
| turnedpro              = 2000
| date_of_highest_ranking = January, 2006
+
| retired                = Active
| current_ranking        = 1
+
| plays                  = Right handed
| date_of_current_ranking = December, 2008
+
| coach                  = [[Liz Irving]]
| played                 = 86
+
| racquet                = [[Prince Sports|Prince]]
| titles                 = 34
+
| website                = {{URL|www.nicoldavid.com}}
| finals                  =
+
| event                   = Women's singles
}}</pre>
+
| highest_ranking        = No. 1  
|}
+
| date_of_highest_ranking = January 2006
 +
| current_ranking        = No. 1  
 +
| date_of_current_ranking = December 2009
 +
| titles                 = 41
 +
| finals                 = 54
 +
| WorldOpenresult        = '''W''' (2005, [[2006 Women's World Open Squash Championship|2006]],
 +
[[2008 Women's World Open Squash Championship|2008]], [[2009 Women's World Open Squash Championship|2009]])
 +
| medaltemplates          =
 +
{{MedalSport | Women's [[squash (sport)|squash]] }}
 +
{{MedalCountry | {{MAS}} }}
 +
{{MedalCompetition | [[Commonwealth Games]] }}
 +
{{MedalSilver | [[2002 Commonwealth Games|2002 Manchester]] | [[Squash at the 2002 Commonwealth Games|Mixed doubles]] }}
 +
{{MedalCompetition | [[Asian Games]] }}
 +
{{MedalGold | [[1998 Asian Games|1998 Bangkok]] | [[Squash at the 1998 Asian Games|Individual]] }}
 +
{{MedalSilver | [[2002 Asian Games|2002 Busan]] | [[Squash at the 2002 Asian Games|Individual]] }}
 +
{{MedalGold | [[2006 Asian Games|2006 Doha]] | [[Squash at the 2006 Asian Games|Individual]] }}
 +
{{MedalCompetition | [[World Games]] }}
 +
{{MedalGold | [[World Games 2005|2005 Duisburg]] | [[Squash at the World Games 2005|Individual]] }}
 +
{{MedalGold | [[World Games 2009|2009 Kaohsiung]] | [[Squash at the World Games 2009|Individual]] }}
 +
| updated                = December 20, 2009
 +
}}
 +
</pre>
 +
{{clear}}
 +
 
 +
== Notes ==
 +
* All fields are optional, so some of the field can be omitted if necessary.
 +
* The default value of image size is 180px, alteration of the value can be make in '''size'''.
 +
* '''highest_ranking''', '''current_ranking''', '''played''', '''titles''' must refer to [http://wispa.net/ here] (women) or [http://psa-squash.com here] (men).
 +
 
 +
== Embedding other templates ==
 +
The '''module''' parameter is used for embedding other templates into this infobox (see [[Wikipedia:Infobox modules]]).
  
==Notes==
+
<pre style="overflow: auto;">
*All fields are optional, so some of the field can be omitted if necessary.
+
{{Infobox squash player
*The default value of image size is 180px, alteration of the value can be make in '''size'''.
+
| name =  
*'''highest_ranking''', '''current_ranking''', '''played''', '''titles''' must refer to [http://wispa.net/]
+
| <!-- etc. -->
 +
| module =
 +
  {{Infobox ABC
 +
  | embed = yes <!-- or child=yes / subbox=yes -->
 +
  | <!-- etc. -->
 +
  }}
 +
}}
 +
</pre>
  
 
== Microformat==
 
== Microformat==
 
{{UF-hcard-person}}
 
{{UF-hcard-person}}
  
<includeonly>
+
== Tracking category ==
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
* {{clc|Pages using Infobox squash player with unknown parameters}}
 +
 
 +
<includeonly>{{Sandbox other||
 +
<!-- Categories go here and interwikis go in Wikidata. -->
 +
[[Category:Squash templates]]
 
[[Category:Sportsperson infobox templates|Squash player]]
 
[[Category:Sportsperson infobox templates|Squash player]]
 +
[[Category:Infobox templates with module parameter|Squash player]]
 +
[[Category:Infobox templates with updated parameter]]
 +
[[Category:Infobox templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 +
}}</includeonly>

Latest revision as of 18:08, 18 January 2021

Template:Uses Wikidata

Usage

Template:Parameter names example

{{Infobox squash player
| name                    = 
| image                   = <!-- formatted like this: Example.jpg -->
| alt                     = <!-- alternative text, see [[WP:ALT]] -->
| caption                 = <!-- brief text caption for the image -->
| full_name               = <!-- only use if different from name -->
| nickname                = 
| country                 = 
| residence               = 
| birth_name              = <!-- if different from name or 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             = 
| height                  = <!-- "X cm" or "X ft Y in" (auto conversion) -->
| weight                  = <!-- "X kg" or "X lb" (auto conversion) -->
| turnedpro               = 
| retired                 =
| plays                   = 
| coach                   = 
| racquet                 =
| website                 = <!-- official website: {{URL|example.com}} -->
| event                   = 
| highest_ranking         = 
| date_of_highest_ranking = 
| current_ranking         = 
| date_of_current_ranking = 
| titles                  = 
| finals                  =
| WorldOpenresult         =
| medaltemplates          =
| show-medals             = <!-- to collapse medal section set as: no -->
| module                  =
| updated                 = <!-- date template last updated in article -->
}}

Example

Nicol David
Nicol2009.jpg
Nicol Ann David holding her CIMB Malaysian Squash Open 2009 trophy.
Full nameNicol Ann David
Nickname(s)Duracell Bunny
Country Malaysia
ResidenceAmsterdam, Netherlands
Born (1983-08-26) August 26, 1983 (age 42)
Penang, Malaysia
Height163 cm (5 ft 4 in)
Weight50 kg (110 lb)
Turned Pro2000
RetiredActive
PlaysRight handed
Coached byLiz Irving
Racquet usedPrince
WebsiteTemplate:URL
Women's singles
Highest rankingNo. 1 (January 2006)
Current rankingNo. 1 (December 2009)
Title(s)41
Tour final(s)54
World OpenW (2005, 2006, 2008, 2009)
Last updated on: December 20, 2009.
{{Infobox squash player
| name                    = Nicol David
| image                   = Nicol2009.jpg
| caption                 = Nicol Ann David holding her CIMB Malaysian Squash Open 2009 trophy.
| full_name               = Nicol Ann David
| nickname                = Duracell Bunny 
| country                 = {{MAS}}
| residence               = [[Amsterdam]], Netherlands
| birth_date              = {{birth date and age|1983|8|26}}
| birth_place             = [[Penang]], Malaysia
| height                  = 163 cm
| weight                  = 50 kg
| turnedpro               = 2000
| retired                 = Active
| plays                   = Right handed
| coach                   = [[Liz Irving]]
| racquet                 = [[Prince Sports|Prince]]
| website                 = {{URL|www.nicoldavid.com}}
| event                   = Women's singles 
| highest_ranking         = No. 1 
| date_of_highest_ranking = January 2006
| current_ranking         = No. 1 
| date_of_current_ranking = December 2009
| titles                  = 41
| finals                  = 54
| WorldOpenresult         = '''W''' (2005, [[2006 Women's World Open Squash Championship|2006]],
[[2008 Women's World Open Squash Championship|2008]], [[2009 Women's World Open Squash Championship|2009]])
| medaltemplates          =
{{MedalSport | Women's [[squash (sport)|squash]] }}
{{MedalCountry | {{MAS}} }}
{{MedalCompetition | [[Commonwealth Games]] }}
{{MedalSilver | [[2002 Commonwealth Games|2002 Manchester]] | [[Squash at the 2002 Commonwealth Games|Mixed doubles]] }}
{{MedalCompetition | [[Asian Games]] }}
{{MedalGold | [[1998 Asian Games|1998 Bangkok]] | [[Squash at the 1998 Asian Games|Individual]] }}
{{MedalSilver | [[2002 Asian Games|2002 Busan]] | [[Squash at the 2002 Asian Games|Individual]] }}
{{MedalGold | [[2006 Asian Games|2006 Doha]] | [[Squash at the 2006 Asian Games|Individual]] }}
{{MedalCompetition | [[World Games]] }}
{{MedalGold | [[World Games 2005|2005 Duisburg]] | [[Squash at the World Games 2005|Individual]] }}
{{MedalGold | [[World Games 2009|2009 Kaohsiung]] | [[Squash at the World Games 2009|Individual]] }}
| updated                 = December 20, 2009
}}

Notes

  • All fields are optional, so some of the field can be omitted if necessary.
  • The default value of image size is 180px, alteration of the value can be make in size.
  • highest_ranking, current_ranking, played, titles must refer to here (women) or here (men).

Embedding other templates

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

{{Infobox squash player
| name = 
| <!-- etc. -->
| module =
  {{Infobox ABC
  | embed = yes <!-- or child=yes / subbox=yes -->
  | <!-- etc. -->
  }}
}}

Microformat

Template:UF-hcard-person

Tracking category