Difference between revisions of "Template:Infobox horse race/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zimbabweed
m (+class)
imported>Zyxw
m (note Lua modules used, add template category)
Line 4: Line 4:
 
     please; interwikis to Wikidata (see [[Wikipedia:Wikidata]]).
 
     please; interwikis to Wikidata (see [[Wikipedia:Wikidata]]).
 
  -------------------------------------------------------------------->
 
  -------------------------------------------------------------------->
 +
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
 +
 
== Usage ==
 
== Usage ==
 
{{generic template demo| name| horse race| image| image size| image alt| caption| location| date| distance| winning horse| winning time| final odds| winning jockey| winning trainer| winning owner| conditions| surface| attendance| previous| next}}
 
{{generic template demo| name| horse race| image| image size| image alt| caption| location| date| distance| winning horse| winning time| final odds| winning jockey| winning trainer| winning owner| conditions| surface| attendance| previous| next}}
Line 74: Line 76:
 
| next            = [[2016 Kentucky Derby|2016]]
 
| next            = [[2016 Kentucky Derby|2016]]
 
}}</pre>
 
}}</pre>
 +
 
== Tracking category ==
 
== Tracking category ==
 
* {{clc|Pages using infobox horse race with unknown parameters}}
 
* {{clc|Pages using infobox horse race with unknown parameters}}
Line 82: Line 85:
 
  -------------------------------------------------------------------->
 
  -------------------------------------------------------------------->
 
[[Category:Horse racing templates]]
 
[[Category:Horse racing templates]]
[[Category:sports infobox templates|Horse race]]
+
[[Category:Sports infobox templates|Horse race]]
 +
[[Category:Templates that add a tracking category]]
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Revision as of 17:31, 10 February 2019

Usage

  1. redirect Template:Parameter names example
{{Infobox horse race
| name            = 
| class           = 
| horse race      = 
| image           = 
| caption         = 
| location        = 
| date            = 
| distance        = 
| winning horse   = 
| winning time    = 
| final odds      = 
| winning jockey  = 
| winning trainer = 
| winning owner   = 
| conditions      = 
| surface         = 
| attendance      = 
| previous        = 
| next            = 
}}

Example

This is an example for the 2015 Kentucky Derby.

Script error: No such module "If empty".
Kentucky Derby
Grade I stakes race
LocationChurchill Downs
DateMay 2, 2015 (2015-05-02)
Distance1 14 mi (10 furlongs; 2,012 m)
Winning horseAmerican Pharoah
Winning time2:03.02
Final odds2.9 to 1
JockeyVictor Espinoza
TrainerBob Baffert
OwnerZayat Stables
ConditionsFast
SurfaceDirt
Attendance170,513
Template:Succession links
{{Infobox horse race
| name            = 141st Kentucky Derby
| class           = [[Graded stakes race|Grade I stakes race]]
| horse race      = [[Kentucky Derby]]
| image           = <!-- Commented out: [[File:2015-kderby-logo.jpg|250px]] -->
| caption         = Official logo for the 2015 Kentucky Derby
| location        = [[Churchill Downs]]
| date            = {{Start date|2015|5|2}}
| distance        = {{convert|1+1/4|mi|furlong m|0|abbr=on}}
| winning horse   = [[American Pharoah]]
| winning time    = 2:03.02
| final odds      = 2.9 to 1
| winning jockey  = [[Victor Espinoza]]
| winning trainer = [[Bob Baffert]]
| winning owner   = Zayat Stables
| conditions      = Fast
| surface         = Dirt
| attendance      = 170,513
| previous        = [[2014 Kentucky Derby|2014]]
| next            = [[2016 Kentucky Derby|2016]]
}}

Tracking category