Template:Infobox racecourse/doc: Difference between revisions

From The Global Wiki
Jump to navigation Jump to search
en>Zyxw
(note modules used, add {{Parameter names example}}, update blank template, add example, add category, misc formatting)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 01:10, 18 January 2023

Usage

Script error: No such module "Parameter names example".

{{Infobox racecourse
| name         = <!-- REQUIRED -->
| logo         = 
| logo_size    = 
| logo_alt     = 
| logo_caption = 
| image        = 
| image_size   = 
| alt          = 
| caption      = 
| location     = <!-- REQUIRED -->
| coordinates  = <!-- use {{Coord}} -->
| owner        = 
| operator     = 
| opened       = 
| closed       = 
| capacity     = 
| channel      = 
| racetype     = 
| coursetype   = 
| notableraces = 
| handle       = 
| attendance   = 
| website      = <!-- http://example.com -->
}}

Example

Script error: No such module "If empty".
File:Aintree Racecourse Logo.jpg
Script error: No such module "If empty".
Script error: No such module "If empty".
LocationScript error: No such module "If empty".
CoordinatesScript error: No such module "If empty".
Owned byScript error: No such module "If empty".
Operated byScript error: No such module "If empty".
Date openedScript error: No such module "If empty".
Date closedScript error: No such module "If empty".
CapacityScript error: No such module "If empty".
Screened onScript error: No such module "If empty".
Race typeScript error: No such module "If empty".
Course typeScript error: No such module "If empty".
Notable racesScript error: No such module "If empty".
Live racing handleScript error: No such module "If empty".
AttendanceScript error: No such module "If empty".
Script error: No such module "Official website".
{{Infobox racecourse
| name         = Aintree Racecourse
| logo         = Aintree Racecourse Logo.jpg
| image        = Aintree Racecourse in 2006.jpg
| caption      = The racecourse in 2006
| location     = [[Aintree]], [[Merseyside]], England
| coordinates  = {{coord|53|28|37|N|2|56|30|W|type:landmark_region:GB|display=inline,title}}
| owner        = [[Jockey Club]] Racecourses
| operator     = 
| opened       = 7 July 1829
| closed       = 
| capacity     = 
| channel      = [[Racing UK]]
| racetype     = 
| coursetype   = [[National Hunt]]
| notableraces = [[Grand National]]
| handle       = 
| attendance   = 
| website      = http://aintree.thejockeyclub.co.uk
}}

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes nor collapse nested elements which use them.

Precision

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.

Tracking category