Difference between revisions of "Template:Infobox equestrian/sandbox"
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". |
![]() | This is the template sandbox page for Template:Infobox equestrian (diff). See also the companion subpage for test cases. |
Template:Person infobox header
![]() | This template uses Lua: |
Contents
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
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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() Todd on Gandalf at the 2008 Barbury International Horse Trials | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Personal information | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Full name | Mark James Todd | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Discipline | Eventing | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Born | Cambridge, New Zealand | 1 March 1956||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Medal record
|
{{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
- {{Infobox named horse}}
- {{Infobox racehorse}}
- For articles about breeds and colors
The above documentation is transcluded from Template:Infobox equestrian/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |