Difference between revisions of "Template:Infobox horseraces"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
[[Category:Infobox templates|Template:Remove first word]]
imported>Plastikspork (Fix) |
imported>Frietjes (use infobox and move doc to doc page) |
||
| Line 1: | Line 1: | ||
| − | { | + | {{Infobox |
| − | | | + | | above = ''{{{class}}} race'' {{#if:{{{last run|}}}|<small>''(discontinued)''</small>}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | == | + | | bodystyle = width:24em; font-size:90%; |
| − | + | ||
| − | + | | subheaderstyle = font-size:125%; font-weight:bold; | |
| − | + | | subheaderclass = fn | |
| − | + | | subheader = {{{horse race}}} | |
| − | + | ||
| − | + | | abovestyle = font-size:110%; background:#{{#switch:{{lc:{{{surface}}}}}|grass|turf=77DD77|DACAA5}} | |
| − | + | | headerstyle = background:#{{#switch:{{lc:{{{surface}}}}}|grass|turf=77DD77|DACAA5}} | |
| − | + | ||
| − | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image = {{{image|}}} | size = {{{image size|}}} | sizedefault = frameless | alt = {{{image alt|}}} }} | |
| − | + | | caption = {{{caption|}}} | |
| − | + | ||
| − | + | | label1 = Location | |
| − | + | | data1 = {{{location}}} | |
| − | + | ||
| − | + | | label2 = Inaugurated | |
| − | + | | data2 = {{{inaugurated<includeonly>|</includeonly>}}} | |
| − | + | ||
| − | + | | label3 = Last run | |
| − | + | | data3 = {{{last run<includeonly>|</includeonly>}}} | |
| − | }}</ | + | |
| − | [[ | + | | label4 = Race type |
| − | + | | data4 = {{{race type}}} | |
| + | |||
| + | | label5 = Sponsor | ||
| + | | data5 = {{{sponsor<includeonly>|</includeonly>}}} | ||
| + | |||
| + | | label6 = Website | ||
| + | | data6 = {{{website<includeonly>|</includeonly>}}} | ||
| + | |||
| + | | header10 = Race information | ||
| + | |||
| + | | label11 = Distance | ||
| + | | data11 = {{{distance}}} | ||
| + | |||
| + | | label12 = Record | ||
| + | | data12 = {{{record<includeonly>|</includeonly>}}} | ||
| + | |||
| + | | label13 = Surface | ||
| + | | data13 = {{{surface<includeonly>|</includeonly>}}} | ||
| + | |||
| + | | label14 = Track | ||
| + | | data14 = {{#switch:{{lc:{{{surface|}}}}} | ||
| + | | grass | turf = {{#invoke:string|replace|{{#invoke:string|replace|{{{track<includeonly>|</includeonly>}}}|^[Gg]rass[, ]*||plain=false}}|^[Tt]urf[, ]*||plain=false}} | ||
| + | | dirt = {{#invoke:string|replace|{{{track<includeonly>|</includeonly>}}}|^[Dd]irt[, ]*||plain=false}} | ||
| + | | #default = {{{track<includeonly>|</includeonly>}}} | ||
| + | }} | ||
| + | |||
| + | | label15 = Qualification | ||
| + | | data15 = {{{qualification}}} | ||
| + | |||
| + | | label16 = Weight | ||
| + | | data16 = {{{weight<includeonly>|</includeonly>}}} | ||
| + | |||
| + | | label17 = Purse | ||
| + | | data17 = {{{purse<includeonly>|</includeonly>}}} | ||
| + | |||
| + | | label18 = Bonuses | ||
| + | | data18 = {{{bonuses<includeonly>|</includeonly>}}} | ||
| + | }}<noinclude> | ||
| + | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 13:51, 10 June 2014
| {{{class}}} race | |
|---|---|
| {{{horse race}}} | |
| Location | {{{location}}} |
| Inaugurated | {{{inaugurated}}} |
| Last run | {{{last run}}} |
| Race type | {{{race type}}} |
| Sponsor | {{{sponsor}}} |
| Website | {{{website}}} |
| Race information | |
| Distance | {{{distance}}} |
| Record | {{{record}}} |
| Surface | {{{surface}}} |
| Track | {{{track}}} |
| Qualification | {{{qualification}}} |
| Weight | {{{weight}}} |
| Purse | {{{purse}}} |
| Bonuses | {{{bonuses}}} |
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
Contents
Usage
| {{{class}}} race (discontinued) | |
|---|---|
| {{{horse race}}} | |
| [[File:{{{image}}}|frameless]] {{{caption}}} | |
| Location | {{{location}}} |
| Inaugurated | {{{inaugurated}}} |
| Last run | {{{last run}}} |
| Race type | {{{race type}}} |
| Sponsor | {{{sponsor}}} |
| Website | {{{website}}} |
| Race information | |
| Distance | {{{distance}}} |
| Record | {{{record}}} |
| Surface | {{{surface}}} |
| Track | {{{track}}} |
| Qualification | {{{qualification}}} |
| Weight | {{{weight}}} |
| Purse | {{{purse}}} |
| Bonuses | {{{bonuses}}} |
{{Infobox horseraces
| class =
| horse race =
| image =
| caption =
| location =
| inaugurated = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| last run =
| race type =
| sponsor =
| website =
| distance =
| record =
| surface = <!-- Turf / Dirt / Synthetic -->
| track = <!-- Right-handed / Left-handed / Straight -->
| qualification =
| weight =
| purse =
| bonuses =
}}
Parameters
Separate multiple values using {{Plainlist}} or {{Flatlist}}.
- class
- horse race
- image
- caption
- location
- inaugurated
- Use {{Start date}}
- last run
- race type
- sponsor
- website
- distance
- record
- surface
- Turf / Dirt
- track
- Right-handed / Left-handed / Straight
- qualification
- weight
- purse
- bonuses
Example
| Grade I race | |
|---|---|
| Belmont Stakes | |
![]() The final and longest leg of the United States Triple Crown | |
| Location | Belmont Park Elmont, New York |
| Inaugurated | Template:Start date and age |
| Race type | Thoroughbred |
| Website | Template:URL |
| Race information | |
| Distance | 1 1⁄2 miles (12 furlongs) |
| Record | 2:24, Secretariat (1973) |
| Surface | Dirt |
| Track | Left-handed |
| Qualification | 3-year-olds |
| Weight | Colt/Gelding: 126 pounds (57 kg); Filly: 121 pounds (55 kg) |
| Purse | US$1.5 million 1st: $800,000 |
{{Infobox horseraces
|class = Grade I
|horse race = Belmont Stakes
|image = [[File:Belmont8 1999-05.jpg|235px]]
|caption = The final and longest leg of the United States Triple Crown
|location = [[Belmont Park]]<br /> [[Elmont, New York|Elmont]], [[New York (state)|New York]]
|inaugurated = {{start date and age|1867|p=y}}
|race type = Thoroughbred
|website = {{URL|http://www.belmontstakes.com/}}
|distance = {{convert|1+1/2|mi|furlong}}
|record = 2:24, [[Secretariat (horse)|Secretariat]] ([[1973 Belmont Stakes|1973]])
|surface = Dirt
|track = Left-handed
|qualification = 3-year-olds
|weight = [[Colt (horse)|Colt]]/[[Gelding]]: {{convert|126|lb}}; [[Filly]]: {{convert|121|lb}}
|purse = US$1.5 million <br/> 1st: $800,000
|bonuses =
}}
Tracking category
| The above documentation is transcluded from Template:Infobox horseraces/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
