Difference between revisions of "Template:Infobox racecourse"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Protected "Template:Infobox racecourse": semi-protection of high-usage templates to combat systematic vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefin...)
 
(22 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{| class="infobox vcard" style="font-size:90%;width:22em;"
+
{{ infobox
|- class="adr"
+
| bodyclass  = vcard
! class="fn org extended-address" style="font-size:110%;text-align:center;background:#DEDEE2;" colspan="2" | {{{Name}}}
+
| titleclass = adr fn org extended-address
|-
+
| titlestyle = background:inherit; border:1px solid #AAA; border-bottom:none; line-height:1.6em;
{{#if:{{{Image|}}} |
+
| title      = {{if empty|{{{Name|}}}|{{{name|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
{{!}} colspan="2" style="font-size:90%;text-align:center;padding-bottom:.5em;" {{!}} {{{Image}}} {{#if:{{{Caption|}}}|<br />{{{Caption}}}}}
+
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|}}}|alt={{{logo_alt|}}}}}
{{!}}-
+
| caption    = {{{logo_caption|}}}
}}
+
| image2    = {{#invoke:InfoboxImage|InfoboxImage|image={{if empty|{{{Image|}}}|{{{image|}}}}}|size={{if empty|{{{imagesize|}}}|{{{image_size|}}}}}|alt={{{alt|}}}}}
{{#if:{{{Website|}}} |
+
| caption2  = {{if empty|{{{Caption|}}}|{{{caption|}}}}}
{{!}} colspan="2" style="text-align:center;" {{!}} [{{{Website}}} Official site]
+
| label1    = Location
{{!}}-
+
| class1    = label
}}
+
| data1      = {{if empty|{{{Location|}}}|{{{location|}}}}}
|-
+
| label2    = [[Geographic coordinate system|Coordinates]]
| '''Location'''
+
| data2      = {{if empty|{{{coordinates|}}}|{{{Coordinates|}}}}}
| <span class="label">{{{Location}}}</span>
+
| label3    = Owned by
|-
+
| data3      = {{if empty|{{{Owner|}}}|{{{owner|}}}}}
{{#if:{{{Coordinates|}}}|
+
| label4    = Operated by
{{!}} '''[[Geographic coordinate system|Coordinates]]'''
+
| data4      = {{if empty|{{{Operator|}}}|{{{operator|}}}}}
{{!}} {{{Coordinates}}}
+
| label5    = Date opened
{{!}}-
+
| data5      = {{if empty|{{{Opened|}}}|{{{opened|}}}}}
}}
+
| label6    = Date closed
{{#if:{{{Owner|}}}|
+
| data6      = {{if empty|{{{Closed|}}}|{{{closed|}}}}}
{{!}} '''Owned by'''
+
| label7    = Capacity
{{!}} {{{Owner}}}
+
| data7      = {{if empty|{{{Capacity|}}}|{{{capacity|}}}}}
{{!}}-
+
| label8    = Screened on
}}
+
| data8      = {{if empty|{{{Channel|}}}|{{{channel|}}}}}
{{#if:{{{Opened|}}}|
+
| label9    = Race type
{{!}} '''Date opened'''
+
| data9      = {{if empty|{{{RaceType|}}}|{{{racetype|}}}}}
{{!}} {{{Opened}}}
+
| label10    = Course type
{{!}}-
+
| class10    = category
}}
+
| data10    = {{if empty|{{{CourseType|}}}|{{{coursetype|}}}}}
{{#if:{{{Capacity|}}}|
+
| label11    = Notable races
{{!}} '''Capacity'''
+
| data11    = {{if empty|{{{NotableRaces|}}}|{{{notableraces|}}}}}
{{!}} {{{Capacity}}}
+
| label12    = Live racing handle
{{!}}-
+
| data12    = {{if empty|{{{Handle|}}}|{{{handle|}}}}}
}}
+
| label13    = Attendance
{{#if:{{{Channel|}}}|
+
| data13    = {{if empty|{{{Attendance|}}}|{{{attendance|}}}}}
{{!}} '''Screened on'''
+
 
{{!}} {{{Channel}}}
+
| below      = {{#if:{{{Website|}}}{{{website|}}}|{{official website|1={{if empty|{{{Website|}}}|{{{website|}}}}}}}}}
{{!}}-
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox racecourse with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox racecourse]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | Attendance | attendance | Capacity | capacity | Caption | caption | Channel | channel | Closed | closed | coordinates | Coordinates | CourseType | coursetype | Handle | handle | Image | image | image_size | imagesize | Location | location | logo | logo_size | logo_alt | logo_caption | Name | name | NotableRaces | notableraces | Opened | opened | Operator | operator | Owner | owner | RaceType | racetype | Website | website | Prev | Next }}<noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here --></noinclude>
}}
 
{{#if:{{{RaceType|}}}|
 
{{!}} '''Race type'''
 
{{!}} {{{RaceType}}}
 
{{!}}-
 
}}
 
{{#if:{{{CourseType|}}}|
 
{{!}} '''Course type'''
 
{{!}} {{{CourseType}}}
 
{{!}}-
 
}}
 
{{#if:{{{NotableRaces|}}}|
 
{{!}} '''Notable Races'''
 
{{!}} {{{NotableRaces}}}
 
{{!}}-
 
}}
 
|}<noinclude>{{documentation}}</noinclude>
 

Latest revision as of 00:30, 19 January 2018

Script error: No such module "If empty".
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".

[[Category:Infobox templates|Template:Remove first word]]

50px Template documentation[view] [edit] [history] [purge]

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
[[Category:Infobox templates|Template:Remove first word]]
{{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