Difference between revisions of "Template:Infobox individual golf tournament"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (use same location map marker as in Template:Infobox golf facility)
imported>Jopal22
(Moved map to the bottom of the infobox, as this is similar to the location the map used to be, and having a map and a logo gets too busy at the top of an infobox)
 
Line 7: Line 7:
 
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|alt={{{alt|}}}}}  
 
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|alt={{{alt|}}}}}  
 
| caption    = {{{caption|}}}
 
| caption    = {{{caption|}}}
 
| image2      = {{#if:{{{map|}}}
 
  |{{Location map|{{{map}}}
 
    | label = {{{map_label|}}}
 
    | relief = {{{map_relief|}}}
 
    | coordinates = {{{coordinates|}}}
 
    | position = {{{map_label_position|}}}
 
    | width = {{{map_size|}}}
 
    | caption = {{{map_caption|}}}
 
    | border = infobox
 
    | float = center
 
    | mark = Map symbol golf course 02.png
 
    | marksize = 25
 
    }} }}
 
  
 
| headerstyle = background:lavender
 
| headerstyle = background:lavender
Line 61: Line 47:
 
| data16      = {{{champion|{{{Champion|}}}}}}
 
| data16      = {{{champion|{{{Champion|}}}}}}
 
| data17      = {{{score|{{{Score|}}}}}}
 
| data17      = {{{score|{{{Score|}}}}}}
 +
 +
| header18    = {{#if:{{{map_caption|{{{Location Map|}}}}}}|Location Map}}
 +
 +
| data19      = {{#if:{{{map|}}}
 +
  |{{Location map|{{{map}}}
 +
    | label = {{{map_label|}}}
 +
    | relief = {{{map_relief|}}}
 +
    | coordinates = {{{coordinates|}}}
 +
    | position = {{{map_label_position|}}}
 +
    | width = {{{map_size|}}}
 +
    | caption = {{{map_caption|}}}
 +
    | border = infobox
 +
    | float = center
 +
    | mark = Map symbol golf course 02.png
 +
    | marksize = 25
 +
    }} }}
  
 
| below      = {{#if:{{{previous|}}}{{{next|}}}|
 
| below      = {{#if:{{{previous|}}}{{{next|}}}|

Latest revision as of 21:38, 20 April 2019

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

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

Usage

Template:Parameter names example

{{Infobox individual golf tournament
| name          = 
| image         = 
| caption       = 
| dates         = <!-- {{Start date|YYYY|MM|DD}}–<br />{{End date|YYYY|MM|DD}} -->
| location      = 
| coordinates   = 
| course        = 
| lang          = <!-- Defaults to US English. Value must be "uk" for British English -->
| org           = 
| tour          = 
| format        = 
| par           = 
| yardage       = 
| field         = 
| cut           = 
| purse         = 
| winners_share = 
| champion      = 
| score         = 
| map           = 
| map_label     = 
| map_caption   = 
| map_relief =
| map_label_position =
| map_size =
| previous      = 
| next          = 
}}

Examples

2018 WGC-Mexico Championship
Tournament information
DatesMarch 1–4, 2018
LocationNaucalpan, Mexico
Lua error: callParserFunction: function "#coordinates" was not found.
Course(s)Club de Golf Chapultepec
Tour(s)PGA Tour
European Tour
Statistics
Par71
Length7,345 yards (6,716 m)
Field64 players
CutNone
Prize fund$10,000,000
8,190,676
Winner's share$1,700,000
€1,392,415
Champion
United States Phil Mickelson
268 (−16), playoff
Location Map
Lua error in Module:Location_map at line 399: Malformed coordinates value.
Template:Succession links
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox individual golf tournament
| name          = 2018 WGC-Mexico Championship
| coordinates   = {{coord|19.431|N|99.244|W|region:MX-MEX_type:event}}
| dates         = March 1–4, 2018
| location      = [[Naucalpan]], [[Mexico]]
| course        = Club de Golf Chapultepec
| tour          = [[PGA Tour]]<br>[[European Tour]]
| par           = 71
| yardage       = {{convert|7345|yd|0}}
| field         = 64 players
| cut           = None
| purse         = [[United States dollar|$]]10,000,000<br>[[Euro|€]]8,190,676
| winners_share = $1,700,000<br>€1,392,415
| champion      = {{flagicon|USA}} [[Phil Mickelson]]
| score         = 268 (−16), playoff
| map           = Mexico#Mexico State of Mexico
| map_relief    = yes
| map_label     = Naucalpan
| map_caption   = Location in [[Mexico]]##Location in [[State of Mexico]]
| previous      = [[2017 WGC-Mexico Championship|2017]]
| next          = [[2019 WGC-Mexico Championship|2019]]
}}

Microformat

Template:UF-hcal

Tracking category

See also