Difference between revisions of "Template:Infobox racecourse/doc"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(Removed one sitelink migrated to an item on Wikidata)
imported>Zyxw
(note modules used, add {{Parameter names example}}, update blank template, add example, add category, misc formatting)
 
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
 +
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
  
 
== Usage ==
 
== Usage ==
 +
{{Parameter names example | name  | logo | logo_size | logo_alt | logo_caption | image | image_size | alt | caption | location | coordinates | owner | operator | opened | closed | capacity | channel | racetype | coursetype | notableraces | handle | attendance | website }}
 +
 +
<pre style="overflow:auto">
 
{{Infobox racecourse
 
{{Infobox racecourse
|name        = {{{name}}}
+
| name        = <!-- REQUIRED -->
|image        = {{{image}}}
+
| logo        =
|caption      = {{{caption}}}
+
| logo_size    =
|location    = {{{location}}}
+
| logo_alt    =
|coordinates  = {{{coordinates}}}
+
| logo_caption =
|owner        = {{{owner}}}
+
| image        =  
|operator    = {{{operator}}}
+
| image_size  =
|opened      = {{{opened}}}
+
| alt          =
|closed      = {{{closed}}}
+
| caption      =  
|channel      = {{{channel}}}
+
| location    = <!-- REQUIRED -->
|racetype    = {{{racetype}}}
+
| coordinates  = <!-- use {{Coord}} -->
|coursetype  = {{{coursetype}}}
+
| owner        =  
|notableraces = {{{notableraces}}}
+
| operator    =  
|handle      = {{{handle}}}
+
| opened      =  
|attendance  = {{{attendance}}}
+
| closed      =  
|website      = {{{website}}}
+
| capacity    =
 +
| channel      =  
 +
| racetype    =  
 +
| coursetype  =  
 +
| notableraces =  
 +
| handle      =  
 +
| attendance  =  
 +
| website      = <!-- http://example.com -->
 
}}
 
}}
 +
</pre>
 +
{{clear}}
 +
 +
== Example ==
 +
{{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
 +
}}
 +
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
 
{{Infobox racecourse
 
{{Infobox racecourse
|name        = <!-- REQUIRED -->
+
| name        = Aintree Racecourse
|image        =
+
| logo        = Aintree Racecourse Logo.jpg
|caption      =
+
| image        = Aintree Racecourse in 2006.jpg
|location    = <!-- REQUIRED -->
+
| caption      = The racecourse in 2006
|coordinates  =
+
| location    = [[Aintree]], [[Merseyside]], England
|owner        =
+
| coordinates  = {{coord|53|28|37|N|2|56|30|W|type:landmark_region:GB|display=inline,title}}
|operator    =
+
| owner        = [[Jockey Club]] Racecourses
|opened      =
+
| operator    =  
|closed      =
+
| opened      = 7 July 1829
|channel      =
+
| closed      =
|racetype    =
+
| capacity    =  
|coursetype  =
+
| channel      = [[Racing UK]]
|notableraces =
+
| racetype    =  
|handle      =
+
| coursetype  = [[National Hunt]]
|attendance  =
+
| notableraces = [[Grand National]]
|website      =
+
| handle      =  
}}</pre>
+
| attendance  =  
 +
| website      = http://aintree.thejockeyclub.co.uk
 +
}}
 +
</pre>
 +
{{clear}}
  
==Microformat==
+
== Microformat ==
 
{{UF-hcard-geo}}
 
{{UF-hcard-geo}}
  
Line 50: Line 90:
 
<!-- CATEGORIES HERE, THANKS -->
 
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:Sports infobox templates|Racecourse]]
 
[[Category:Sports infobox templates|Racecourse]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 19:24, 2 March 2017

Usage

Template: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".
Template: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

Template:UF-hcard-geo

Tracking category