Difference between revisions of "Template:Infobox equestrian/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(copy of current template)
imported>Zyxw
(Allow automatic conversion of height and weight via Template:Infobox person/height and Template:Infobox person/weight, see examples at Template:Infobox equestrian/testcases.)
Line 44: Line 44:
 
| data11      = {{#if:{{{height_ft|}}}<!--
 
| data11      = {{#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}}}}} }}<!--
 
  -->}}
 
  -->}}
  
Line 50: Line 50:
 
| data12      = {{#if:{{{weight_lbs|{{{weight_lb|}}}}}}<!--
 
| data12      = {{#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}}}}} }}<!--
 
  -->}}
 
  -->}}
  

Revision as of 13:54, 20 November 2016

Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
Template documentation[view] [edit] [history] [purge]

Template:Person infobox header

Template:Uses Wikidata

Usage

Template:Parameter names example

{{Infobox equestrian
| honorific_prefix = 
| name             = 
| honorific_suffix = 
| native_name      = 
| native_name_lang = 
| image            = 
| image_size       = 
| alt              = 
| caption          = 
| full_name        = 
| other_names      = 
| nationality      = 
| discipline       = 
| birth_date       = 
| birth_place      = 
| death_date       = 
| death_place      = 
| resting_place    = 
| resting_place_coordinates = 
| hometown         = 
| homecountry      = 
| height           = 
| weight           = 
| horse            = 
| website          = 
| show-medals      = 
| medals           = 
}}

Parameters

discipline
FEI disciplines, Olympic
FEI disciplines, non-Olympic

Typically unused parameters

image_size 
use to override default image size
height 
use if height_ft / height_in is not appropriate
weight 
use if weight_lbs is not appropriate

Example

Sir
Mark Todd
Template:Post-nominals
Mark Todd Gandalf Barbury dressage 2008.jpg
Todd on Gandalf at the 2008 Barbury International Horse Trials
Personal information
Full nameMark James Todd
DisciplineEventing
Born (1956-03-01) 1 March 1956 (age 69)
Cambridge, New Zealand
{{Infobox equestrian
| honorific_prefix = Sir
| name             = Mark Todd
| honorific_suffix = {{post-nominals|country=NZL|KNZM|CBE|size=85%}}
| image            = Mark Todd Gandalf Barbury dressage 2008.jpg
| image_size       = 200px
| caption          = Todd on Gandalf at the 2008 Barbury International Horse Trials
| full_name        = Mark James Todd
| discipline       = [[Eventing]]
| birth_date       = {{birth date and age|1956|3|1|df=y}}
| birth_place      = [[Cambridge, New Zealand|Cambridge]], New Zealand
| medals           = 
{{MedalSport | [[Equestrianism|Equestrian]] }}
{{MedalCountry| {{NZL}} }}
{{MedalCount | total = yes
| [[Olympic Games]] | 2 | 1 | 3
| [[Eventing World Championships|World Championships]] | 2 | 1 | 1
}}
{{MedalCompetition|[[Equestrian at the Summer Olympics|Olympic Games]]}}
{{MedalGold|[[Equestrian at the 1984 Summer Olympics|1984 Los Angeles]]|[[Equestrian at the 1984 Summer Olympics – Individual eventing|Individual eventing]]}}
{{MedalGold|[[Equestrian at the 1988 Summer Olympics|1988 Seoul]]|[[Equestrian at the 1988 Summer Olympics – Individual eventing|Individual eventing]]}}
{{MedalSilver|[[Equestrian at the 1992 Summer Olympics|1992 Barcelona]]|[[Equestrian at the 1992 Summer Olympics – Team eventing|Team eventing]]}}
{{MedalBronze|[[Equestrian at the 1988 Summer Olympics|1988 Seoul]]|[[Equestrian at the 1988 Summer Olympics – Team eventing|Team eventing]]}}
{{MedalBronze|[[Equestrian at the 2000 Summer Olympics|2000 Sydney]]|[[Equestrian at the 2000 Summer Olympics – Individual eventing|Individual eventing]]}}
{{MedalBronze|[[Equestrian at the 2012 Summer Olympics|2012 London]]|[[Equestrian at the 2012 Summer Olympics – Team eventing|Team eventing]]}}
{{MedalCompetition|[[World Equestrian Games|World Championships]]}}
{{MedalGold|[[1990 World Equestrian Games|1990 Stockholm]]|Team eventing}}
{{MedalGold|[[1998 World Equestrian Games|1998 Rome]]|Team eventing}}
{{MedalSilver|[[1998 World Equestrian Games|1998 Rome]]|Individual eventing}}
{{MedalBronze|[[2010 World Equestrian Games|2010 Lexington]]|Team eventing}}
}}

Tracking category

See also

For articles about people
For articles about horses
For articles about breeds and colors