Difference between revisions of "Template:Infobox horseracing personality"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(renumber)
imported>Zyxw
(Allow automatic conversion of height and weight via Template:Infobox person/height and Template:Infobox person/weight, alternative parameter names)
Line 10: Line 10:
 
  }}
 
  }}
  
| image       = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#invoke:Wikidata|claim|P18}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
+
| image       = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#invoke:Wikidata|claim|P18}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
| caption     = {{{caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}
+
| caption     = {{{caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}
  
| label1       = Native name
+
| label1     = Native name
|  data1       = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}}
+
|  data1     = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}}
  
| label2       = Full name
+
| label2     = Full name
|  data2       = {{{fullname|}}}
+
|  data2     = {{{full_name|{{{fullname|}}}}}}
  
| label3       = Other&nbsp;names
+
| label3     = Other&nbsp;names
|  data3       = {{{other_names|}}}
+
|  data3     = {{{other_names|}}}
  
| label4       = Nickname
+
| label4     = Nickname
|  data4       = {{{nickname|}}}
+
|  data4     = {{{nickname|}}}
| class4       = nickname
+
| class4     = nickname
  
| label6       = Occupation
+
| label6     = Occupation
|  data6       = {{{occupation|}}}
+
|  data6     = {{{occupation|}}}
| class6       = role
+
| class6     = role
  
| label7       = Born
+
| label7     = Born
|  data7       = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}} }}  
+
|  data7     = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}} }}  
  
| label8       = Died
+
| label8     = Died
|  data8       = {{br separated entries|{{{death_date|}}}|{{{death_place|}}} }}  
+
|  data8     = {{br separated entries|{{{death_date|}}}|{{{death_place|}}} }}  
  
| label9       = Resting place
+
| label9     = Resting place
|  data9       = {{br separated entries|{{{resting_place|}}}|{{{resting_place_coordinates|}}}}}
+
|  data9     = {{br separated entries|{{{resting_place|}}}|{{{resting_place_coordinates|}}}}}
  
| label10     = Nationality
+
| label10     = Nationality
|  data10     = {{{nationality|}}}
+
|  data10     = {{{nationality|}}}
| class10     = category
+
| class10     = category
  
| label12     = Spouse
+
| label12     = Spouse
|  data12     = {{{spouse|}}}
+
|  data12     = {{{spouse|}}}
  
| label13     = Children
+
| label13     = Children
|  data13     = {{{children|}}}
+
|  data13     = {{{children|}}}
  
| label14     = Height
+
| label14     = Height
|  data14     = {{#if:{{{height_ft|}}}<!--
+
|  data14     = {{#if:{{{height_ft|}}}<!--
 
  -->|{{height|ft = {{{height_ft|0}}}|in = {{{height_in|0}}}}}<!--
 
  -->|{{height|ft = {{{height_ft|0}}}|in = {{{height_in|0}}}}}<!--
  -->|{{{height|}}}<!--
+
  -->|{{#if: {{{height|}}} | {{Infobox person/height|{{{height}}}}} }}<!--
 
  -->}}
 
  -->}}
  
| label15     = Weight
+
| label15     = Weight
|  data15     = {{#if:{{{weight_lbs|{{{weight_lb|}}}}}}<!--
+
|  data15     = {{#if:{{{weight_lbs|{{{weight_lb|}}}}}}<!--
 
  -->|{{convert|{{{weight_lbs|{{{weight_lb|0}}}}}}|lb|kg stlb|abbr=on}}<!--
 
  -->|{{convert|{{{weight_lbs|{{{weight_lb|0}}}}}}|lb|kg stlb|abbr=on}}<!--
  -->|{{{weight|}}}<!--
+
  -->|{{#if: {{{weight|}}} | {{Infobox person/weight|{{{weight}}}}} }}<!--
 
  -->}}
 
  -->}}
  
| label17     = Career winnings
+
| label17     = Career winnings
|  data17     = {{{career winnings|}}}
+
|  data17     = {{{career winnings|}}}
  
| label18     = Career wins
+
| label18     = Career wins
|  data18     = {{{career wins|}}}
+
|  data18     = {{{career wins|}}}
| rowclass18   = note
+
| rowclass18 = note
  
| header20     = {{#if:{{{race|}}}|Major racing wins}}
+
| header20   = {{#if:{{{race|}}}|Major racing wins}}
  
|  data21     = {{{race|}}}
+
|  data21   = {{{race|}}}
  
| header23     = {{#if:{{{awards|}}}|Racing awards}}
+
| header23   = {{#if:{{{awards|}}}|Racing awards}}
  
|  data24     = {{{awards|}}}
+
|  data24   = {{{awards|}}}
  
| header26     = {{#if:{{{honours|}}}|Honours|{{#if:{{{honors|}}}|Honors}}}}
+
| header26   = {{#if:{{{honours|}}}|Honours|{{#if:{{{honors|}}}|Honors}}}}
  
|  data27     = {{{honours|{{{honors|}}}}}}
+
|  data27   = {{{honours|{{{honors|}}}}}}
  
| header29     = {{#if:{{{memorials|}}}|Memorials}}
+
| header29   = {{#if:{{{memorials|}}}|Memorials}}
  
|  data30     = {{{memorials|}}}
+
|  data30   = {{{memorials|}}}
  
 
| header32    = {{#if:{{{horses|}}}|Significant horses}}
 
| header32    = {{#if:{{{horses|}}}|Significant horses}}
Line 88: Line 88:
 
|  data33    = {{{horses|}}}
 
|  data33    = {{{horses|}}}
  
| header35    = {{#if:{{{url|}}}|Website}}
+
| header35    = {{#if:{{{website|{{{url|}}}}}}|Website}}
  
|  data36    = {{{url|}}}
+
|  data36    = {{{website|{{{url|}}}}}}
  
 
|  data40    = {{{module|}}}
 
|  data40    = {{{module|}}}
  
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox horseracing personality with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox horseracing personality]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | awards | birth_date | birth_place | caption | career wins | career winnings | children | death_date | death_place | fullname | height | height_ft | height_in | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | honors | honours | horses | image | image_size | image_upright | memorials | module | name | nationality | native_name | native_name_lang | nickname | occupation | other_names | race | resting_place | resting_place_coordinates | spouse | updated | url | weight | weight_lb | weight_lbs }}<noinclude>
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox horseracing personality with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox horseracing personality]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | awards | birth_date | birth_place | caption | career wins | career winnings | children | death_date | death_place | full_name | fullname | height | height_ft | height_in | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | honors | honours | horses | image | image_size | image_upright | memorials | module | name | nationality | native_name | native_name_lang | nickname | occupation | other_names | race | resting_place | resting_place_coordinates | spouse | updated | url | website | weight | weight_lb | weight_lbs }}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
 
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
 
</noinclude>
 
</noinclude>

Revision as of 09:24, 19 February 2017

Script error: No such module "Wikidata".
Script error: No such module "Wikidata".

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata

Usage

Template:Parameter names example

{{Infobox horseracing personality
| honorific_prefix = 
| name             = 
| honorific_suffix = 
| image            = 
| image_size       = <!-- DISCOURAGED per WP:IMGSIZE. Use image_upright. -->
| image_upright    = 
| alt              = 
| caption          = 
| native_name      = 
| native_name_lang = 
| full_name        = 
| other_names      = 
| nickname         = 
| occupation       = 
| birth_date       = <!-- {{Birth date and age|YYYY|MM|DD|df=y}} -->
| birth_place      = 
| death_date       = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD|df=y}} -->
| death_place      = 
| resting_place    = 
| resting_place_coordinates = 
| nationality      = 
| spouse           = 
| children         = 
| height           = <!-- {{convert|x|ft|y|in|m|2|abbr=on}} or {{convert|x|m|ftin|0|abbr=on}} -->
| weight           = <!-- use if weight_lbs is not appropriate -->
| career winnings  = 
| career wins      = 
| race             = 
| awards           = 
| honors           = <!--or |honours= -->
| memorials        = 
| horses           = 
| website          = 
| module           = 
}}

Separate multiple values using {{Plainlist}} or {{Flatlist}}.

Parameters

honorific_prefix 
name 
honorific_suffix 
image 
image_size 
image_upright 
alt 
caption 
native_name 
name in local language. If more than one, separate using {{Plain list}}
native_name_lang 
ISO 639-2 code e.g. "fr" for French. If more than one, use {{lang}} instead
full_name 
other_names 
nickname 
occupation 
birth_date 
Use {{Birth date and age}}, or {{Birth date}} if dead.
birth_place 
death_date 
Use {{Death date and age}} if dead.
death_place 
resting_place 
Location of grave, ashes, etc.
resting_place_coordinates 
Precise coordinates of grave, etc.; use {{coord}}
nationality 
spouse 
children 
height 
Height. MUST be cited in body of article. Use {{convert}}
weight 
Weight. MUST be cited in body of article.
career winnings 
career wins 
race 
awards 
honors or honours 
memorials 
Monuments, notable things named after the person
horses 
website or url 
Official website
module 
Embedded template, e.g. Olympics medal record

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 horseracing personality | 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 horseracing personality
| name = 
| <!-- etc. -->
| module = 
  {{Infobox ABC
  | embed = yes <!-- or child=yes / subbox=yes-->
  | <!-- etc. -->
  }}
}}

Microformat

Template:UF-hcard-person

Tracking category

See also

For articles about people

For articles about horses

For articles about breeds and colors