Difference between revisions of "Template:Infobox horseracing personality"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(reduce processing overhead from large numerical gaps, need to insert a gap? try User:Frietjes/infoboxgap.js)
imported>RexxS
(Undid revision 757608834 by Frietjes (talk) there's no processing overhead - see Module:Infobox lines 29–40)
Line 13: Line 13:
 
| caption      = {{{caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}
 
| caption      = {{{caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}
  
| label1       = Native name
+
| label5       = Native name
data1       = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}}
+
data5       = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}}
  
| label2     = Full name
+
| label10     = Full name
data2     = {{{fullname|}}}
+
data10     = {{{fullname|}}}
  
| label3     = Other&nbsp;names
+
| label15     = Other&nbsp;names
data3     = {{{other_names|}}}
+
data15     = {{{other_names|}}}
  
| label4     = Nickname
+
| label17     = Nickname
data4     = {{{nickname|}}}
+
data17     = {{{nickname|}}}
| class4     = nickname
+
| class17     = nickname
  
| label5     = Occupation
+
| label20     = Occupation
data5     = {{{occupation|}}}
+
data20     = {{{occupation|}}}
| class5     = role
+
| class20     = role
  
| label6     = Born
+
| label25     = Born
data6     = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}} }}  
+
data25     = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}} }}  
  
| label7     = Died
+
| label30     = Died
data7     = {{br separated entries|{{{death_date|}}}|{{{death_place|}}} }}  
+
data30     = {{br separated entries|{{{death_date|}}}|{{{death_place|}}} }}  
  
| label8     = Resting place
+
| label35     = Resting place
data8     = {{br separated entries|{{{resting_place|}}}|{{{resting_place_coordinates|}}}}}
+
data35     = {{br separated entries|{{{resting_place|}}}|{{{resting_place_coordinates|}}}}}
  
| label9     = Nationality
+
| label40     = Nationality
data9     = {{{nationality|}}}
+
data40     = {{{nationality|}}}
| class9     = category
+
| class40     = category
  
| label10     = Spouse
+
| label45     = Spouse
data10     = {{{spouse|}}}
+
data45     = {{{spouse|}}}
  
| label11     = Children
+
| label50     = Children
data11     = {{{children|}}}
+
data50     = {{{children|}}}
  
| label12     = Height
+
| label55     = Height
data12     = {{#if:{{{height_ft|}}}<!--
+
data55     = {{#if:{{{height_ft|}}}<!--
 
  -->|{{height|ft = {{{height_ft|0}}}|in = {{{height_in|0}}}}}<!--
 
  -->|{{height|ft = {{{height_ft|0}}}|in = {{{height_in|0}}}}}<!--
 
  -->|{{{height|}}}<!--
 
  -->|{{{height|}}}<!--
 
  -->}}
 
  -->}}
  
| label13     = Weight
+
| label60     = Weight
data13     = {{#if:{{{weight_lbs|{{{weight_lb|}}}}}}<!--
+
data60     = {{#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|}}}<!--
 
  -->|{{{weight|}}}<!--
 
  -->}}
 
  -->}}
  
| label14     = Career winnings
+
| label65     = Career winnings
data14       = {{{career winnings|}}}
+
data65       = {{{career winnings|}}}
  
| label15     = Career wins
+
| label70     = Career wins
data15     = {{{career wins|}}}
+
data70     = {{{career wins|}}}
| rowclass15   = note
+
| rowclass70   = note
  
| header16     = {{#if:{{{race|}}}|Major racing wins}}
+
| header75     = {{#if:{{{race|}}}|Major racing wins}}
  
data17     = {{{race|}}}
+
data77     = {{{race|}}}
  
| header18     = {{#if:{{{awards|}}}|Racing awards}}
+
| header80     = {{#if:{{{awards|}}}|Racing awards}}
  
data19     = {{{awards|}}}
+
data82     = {{{awards|}}}
  
| header20     = {{#if:{{{honours|}}}|Honours|{{#if:{{{honors|}}}|Honors}}}}
+
| header85     = {{#if:{{{honours|}}}|Honours|{{#if:{{{honors|}}}|Honors}}}}
  
data21     = {{{honours|{{{honors|}}}}}}
+
data87     = {{{honours|{{{honors|}}}}}}
  
| header22     = {{#if:{{{memorials|}}}|Memorials}}
+
| header90     = {{#if:{{{memorials|}}}|Memorials}}
  
data23     = {{{memorials|}}}
+
data92     = {{{memorials|}}}
  
| header24   = {{#if:{{{horses|}}}|Significant horses}}
+
| header100   = {{#if:{{{horses|}}}|Significant horses}}
  
data25   = {{{horses|}}}
+
data102   = {{{horses|}}}
  
| header26   = {{#if:{{{url|}}}|Website}}
+
| header105   = {{#if:{{{url|}}}|Website}}
  
data27   = {{{url|}}}
+
data107   = {{{url|}}}
  
data28   = {{{module|}}}
+
data110   = {{{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 | 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>

Revision as of 22:38, 31 December 2016

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