Difference between revisions of "Template:Infobox racecourse"
Jump to navigation
Jump to search
imported>Plastikspork m (moved Template:Infobox Racecourse to Template:Infobox racecourse: MOS for Infoboxes) |
imported>Plastikspork (Allow upper or lowercase) |
||
| Line 1: | Line 1: | ||
{| class="infobox vcard" style="font-size:90%;width:22em;" | {| class="infobox vcard" style="font-size:90%;width:22em;" | ||
|- class="adr" | |- class="adr" | ||
| − | ! class="fn org extended-address" style="font-size:110%;text-align:center;background:#DEDEE2;" colspan="2" | {{{Name}}} | + | ! class="fn org extended-address" style="font-size:110%;text-align:center;background:#DEDEE2;" colspan="2" | {{{Name|{{{name|{{PAGENAME}}}}}}}} |
|- | |- | ||
| − | {{#if:{{{Image|}}} | | + | {{#if:{{{Image|{{{image|}}}}}} | |
| − | {{!}} colspan="2" style="font-size:90%;text-align:center;padding-bottom:.5em;" {{!}} {{{Image}}} {{#if:{{{Caption|}}}|<br />{{{Caption}}}}} | + | {{!}} colspan="2" style="font-size:90%;text-align:center;padding-bottom:.5em;" {{!}} {{{Image|{{{image|}}}}}}{{#if:{{{Caption|{{{caption|}}}}}}|<br />{{{Caption|{{{caption}}}}}}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if:{{{Website|}}} | | + | {{#if:{{{Website|{{{website|}}}}}} | |
| − | {{!}} colspan="2" style="text-align:center;" {{!}} [{{{Website}}} Official | + | {{!}} colspan="2" style="text-align:center;" {{!}} [{{{Website|{{{website|}}}}}} Official website] |
{{!}}- | {{!}}- | ||
}} | }} | ||
|- | |- | ||
| '''Location''' | | '''Location''' | ||
| − | | <span class="label">{{{Location}}}</span> | + | | <span class="label">{{{Location|{{{location}}}}}}</span> |
|- | |- | ||
| − | {{#if:{{{Coordinates|}}}| | + | {{#if:{{{Coordinates|{{{coordinates|}}}}}}| |
{{!}} '''[[Geographic coordinate system|Coordinates]]''' | {{!}} '''[[Geographic coordinate system|Coordinates]]''' | ||
| − | {{!}} {{{Coordinates}}} | + | {{!}} {{{Coordinates|{{{coordinates}}}}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if:{{{Owner|}}}| | + | {{#if:{{{Owner|{{{owner|}}}}}}| |
{{!}} '''Owned by''' | {{!}} '''Owned by''' | ||
| − | {{!}} {{{Owner}}} | + | {{!}} {{{Owner|{{{owner}}}}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if:{{{Opened|}}}| | + | {{#if:{{{Opened|{{{opened|}}}}}}| |
{{!}} '''Date opened''' | {{!}} '''Date opened''' | ||
| − | {{!}} {{{Opened}}} | + | {{!}} {{{Opened|{{{opened}}}}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if:{{{Capacity|}}}| | + | {{#if:{{{Capacity|{{{capacity|}}}}}}| |
{{!}} '''Capacity''' | {{!}} '''Capacity''' | ||
| − | {{!}} {{{Capacity}}} | + | {{!}} {{{Capacity|{{{capacity}}}}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if:{{{Channel|}}}| | + | {{#if:{{{Channel|{{{channel|}}}}}}| |
{{!}} '''Screened on''' | {{!}} '''Screened on''' | ||
| − | {{!}} {{{Channel}}} | + | {{!}} {{{Channel|{{{channel}}}}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if:{{{RaceType|}}}| | + | {{#if:{{{RaceType|{{{racetype|}}}}}}| |
{{!}} '''Race type''' | {{!}} '''Race type''' | ||
| − | {{!}} {{{RaceType}}} | + | {{!}} {{{RaceType|{{{racetype}}}}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if:{{{CourseType|}}}| | + | {{#if:{{{CourseType|{{{coursetype|}}}}}}| |
{{!}} '''Course type''' | {{!}} '''Course type''' | ||
| − | {{!}} {{{CourseType}}} | + | {{!}} {{{CourseType|{{{coursetype}}}}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if:{{{NotableRaces|}}}| | + | {{#if:{{{NotableRaces|{{{notableraces|}}}}}}| |
{{!}} '''Notable Races''' | {{!}} '''Notable Races''' | ||
| − | {{!}} {{{NotableRaces}}} | + | {{!}} {{{NotableRaces|{{{notableraces}}}}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
|}<noinclude>{{documentation}}</noinclude> | |}<noinclude>{{documentation}}</noinclude> | ||
Revision as of 14:23, 17 February 2010
| Infobox racecourse | |
|---|---|
| Location | {{{location}}} |
| 30px | This template uses Lua: |
Contents
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
| Aintree Racecourse | |
|---|---|
| Aintree Racecourse in 2006.jpg The racecourse in 2006 | |
| Official website | |
| Location | Aintree, Merseyside, England |
| Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
| Owned by | Jockey Club Racecourses |
| Date opened | 7 July 1829 |
| Screened on | Racing UK |
| Course type | National Hunt |
| Notable Races | Grand National |
{{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
Tracking category
| The above documentation is transcluded from Template:Infobox racecourse/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. |