Template:Infobox golf facility
![]() | This template uses Lua: |
Usage
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}]] {{{caption}}} | |
![]() | |
Club information | |
---|---|
Coordinates | 1°N 2°E / 1°N 2°E |
Location | {{{location}}} |
Established | {{{establishment}}} |
Type | {{{type}}} |
Owned by | {{{owner}}} |
Operated by | {{{operator}}} |
Total holes | {{{holes}}} |
Events hosted | {{{tournaments}}} |
Greens | {{{greens}}} |
Fairways | {{{fairways}}} |
Website | {{{website}}} |
{{{course1}}} | |
Designed by | {{{designer1}}} |
Par | {{{par1}}} |
Length | {{{length1}}} |
Course rating | {{{rating1}}} |
Slope rating | {{{slope1}}} |
Course record | {{{record1}}} |
{{{course2}}} | |
Designed by | {{{designer2}}} |
Par | {{{par2}}} |
Length | {{{length2}}} |
Course rating | {{{rating2}}} |
Slope rating | {{{slope2}}} |
Course record | {{{record2}}} |
{{{course3}}} | |
Designed by | {{{designer3}}} |
Par | {{{par3}}} |
Length | {{{length3}}} |
Course rating | {{{rating3}}} |
Slope rating | {{{slope3}}} |
Course record | {{{record3}}} |
{{{course4}}} | |
Designed by | {{{designer4}}} |
Par | {{{par4}}} |
Length | {{{length4}}} |
Course rating | {{{rating4}}} |
Slope rating | {{{slope4}}} |
Course record | {{{record4}}} |
{{{course5}}} | |
Designed by | {{{designer5}}} |
Par | {{{par5}}} |
Length | {{{length5}}} |
Course rating | {{{rating5}}} |
Slope rating | {{{slope5}}} |
Course record | {{{record5}}} |
{{{course6}}} | |
Designed by | {{{designer6}}} |
Par | {{{par6}}} |
Length | {{{length6}}} |
Course rating | {{{rating6}}} |
Slope rating | {{{slope6}}} |
Course record | {{{record6}}} |
{{{course7}}} | |
Designed by | {{{designer7}}} |
Par | {{{par7}}} |
Length | {{{length7}}} |
Course rating | {{{rating7}}} |
Slope rating | {{{slope7}}} |
Course record | {{{record7}}} |
{{{course8}}} | |
Designed by | {{{designer8}}} |
Par | {{{par8}}} |
Length | {{{length8}}} |
Course rating | {{{rating8}}} |
Slope rating | {{{slope8}}} |
Course record | {{{record8}}} |
{{{course9}}} | |
Designed by | {{{designer9}}} |
Par | {{{par9}}} |
Length | {{{length9}}} |
Course rating | {{{rating9}}} |
Slope rating | {{{slope9}}} |
Course record | {{{record9}}} |
{{{module}}} or: {{{embedded}}} or: {{{nrhp}}} | |
[[File:{{{image2}}}|{{{imagesize2}}}]] {{{caption2}}} |
{{Infobox golf facility
| name = <!-- name of the facility -->
| image = <!-- just name file name, no [[image:]] or size required -->
| imagesize = <!-- include units -->
| caption =
| pushpin_map = <!-- name of a location map (see Template:Location map) -->
| pushpin_relief = <!-- any non-blank value to display relief map, if available -->
| pushpin_mapsize = <!-- width of map (e.g., 220 without the px), default is 250 -->
| pushpin_map_alt = <!-- alternative text for map, see WP:ALT for details -->
| pushpin_map_caption = <!-- text displayed below map, overrides default caption -->
| coordinates =
| location =
| establishment = <!-- year -->
| type = <!-- public/private -->
| owner = <!-- name of organization/company -->
| operator = <!-- name of organization/company -->
| holes = <!-- total number of holes at club/resort -->
| tournaments = <!-- notable tournaments held (if any) -->
| greens = <!-- type of grass used -->
| fairways = <!-- type of grass used -->
| website =
| course1 = <!-- individual course name, can leave blank if same as article title -->
| designer1 =
| par1 =
| length1 =
| rating1 =
| slope1 =
| record1 =
| module = <!-- or 'embedded' or 'nrhp' -->
| image2 = <!-- a second image -->
| imagesize2 =
| caption2 =
}}
Additional courses
To add additional courses (up to 8 total) use
| course2 = <!-- if only one course: leave this entry and all below parts blank -->
| designer2 =
| par2 =
| length2 =
| rating2 =
| slope2 =
| record2 =
| course3 =
| designer3 =
| par3 =
| length3 =
| rating3 =
| slope3 =
| record3 =
| course4 =
| designer4 =
| par4 =
| length4 =
| rating4 =
| slope4 =
| record4 =
| course5 =
| designer5 =
| par5 =
| length5 =
| rating5 =
| slope5 =
| record5 =
| course6 =
| designer6 =
| par6 =
| length6 =
| rating6 =
| slope6 =
| record6 =
| course7 =
| designer7 =
| par7 =
| length7 =
| rating7 =
| slope7 =
| record7 =
| course8 =
| designer8 =
| par8 =
| length8 =
| rating8 =
| slope8 =
| record8 =
Embedding other templates
The module=
, embedded=
, or nrhp=
parameters can be used for embedding other templates into this infobox (see Wikipedia:Infobox modules):
{{Infobox golf facility
| name =
...
| module = <!-- or 'embedded' or 'nrhp' -->
{{Infobox ABC
| embed = yes <!-- or 'child=yes' or 'subbox=yes' -->
...
}}
}}
Coordinates
For coordinates, use {{coord}} with display=inline,title. Please do not be overly precise.
Mapframe maps
- Basic parameters:
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
- The default value of the mapframe parameter is also modified by the internal onByDefault parameter. Default: yes, unless
|map=
or|map_image=
is defined
- The default value of the mapframe parameter is also modified by the internal onByDefault parameter. Default: yes, unless
- mapframe-caption – Caption for the map. Default: blank (or if
|mapframe-geomask=
is set, "Location in geomask's label") - mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a
{{maplink}}
template, or another template that generates a mapframe map, or an image name. If used, the subsequent mapframe parameters will be ignored. Default: not specified - mapframe-id or id or qid – Id (Q-number) of Wikidata item to use. Default: item for current page
- mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g.
|coord=
. Default: coordinates from Wikidata{{Coord|12.34|N|56.78|E}}
- mapframe-wikidata – Set to
yes
to show shape/line features from the wikidata item, if any, when|coord=
is set. Default: yes
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
- Customise which features are displayed:
- mapframe-shape – Turn off display of shape feature by setting to
none
. Use an inverse shape (geomask) instead of a regular shape by setting toinverse
. Default: not specified - mapframe-point – Turn off display of point feature by setting to
none
. Force point marker to be displayed by setting toon
. Default: not specified - mapframe-line – Turn off display of line feature by setting to
none
. Default: not specified - mapframe-geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g.
P17
for country (P17),P131
for located in the administrative territorial entity (P131)). Default: not specified - mapframe-switcher – set to
auto
orgeomasks
orzooms
to enable Template:Switcher-style switching between multiple mapframes. Default: not specifiedauto
– switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.geomasks
– switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameterzooms
– switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of3
), "zoomed out" is1
, and "zoomed midway" is the average
- mapframe-shape – Turn off display of shape feature by setting to
- Other optional parameters:
- mapframe-frame-width or mapframe-width – Frame width. Default: 250
- mapframe-frame-height or mapframe-height – Frame height. Default: 200
- mapframe-shape-fill – Color used to fill shape features. Default: #606060
- mapframe-shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.5
- mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
- mapframe-stroke-width – Width of line features, and outlines of shape features; default is "5". Default: 5
- mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: golf
- Can also be set to
blank
to override any default marker symbol
- Can also be set to
- mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #ace1af
- mapframe-geomask-stroke-color or mapframe-geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
- mapframe-geomask-stroke-width – Width of outline of geomask shape. Default: 2
- mapframe-geomask-fill – Color used to fill outside geomask features. Default: #606060
- mapframe-geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.5
- mapframe-zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 12
- mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified
- mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
- mapframe-type – Set the type of the object, with the same usage as {{coord}}. Default: landmark
- mapframe-population – Set the population, useful with type="city", for {{Infobox dim}}. Default: not specified
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
TemplateData
TemplateData for Infobox golf facility
This is an infobox to describe individual golf courses.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of the facility
| String | optional |
Picture of course | image | A representative picture of the facility; just add the filename of a picture. | File | optional |
Picture Size | imagesize | Provide the unit in the value; for instance, "98 pixels" | String | optional |
Caption for picture | caption | no description | String | optional |
Year course established | establishment | no description | Number | optional |
Type of course | type | Typically only "Public" or "Private". | String | optional |
Owner of course | owner | This is the owner of the golf course; if the owner has a wikipedia entry, markup with "[[" and "]]". | String | optional |
Operator of course | operator | This is the operator of the golf course; if the owner has a wikipedia entry, markup with "[[" and "]]". | String | optional |
Holes count | holes | Number of holes in the course (e.g. 18) | Number | optional |
Greens | greens | Type of grass used | String | optional |
Fairways | fairways | Type of grass used | String | optional |
Tournaments held at course | tournaments | The tournaments listed should be notable, meaning they have wikipedia entries for them (markup with "[[" and "]]") | String | optional |
Website | website | If there is a website for the course, add it here. | String | optional |
The following parameters have not been added to the templatedata yet:
- pushpin_map =
- pushpin_relief =
- pushpin_mapsize =
- pushpin_map_alt =
- pushpin_map_caption =
- coordinates =
- location =
- course1 =
- designer1 =
- par1 =
- length1 =
- rating1 =
- slope1 =
- record1 =
- image2 =
- imagesize2 =
- caption2 =