Template:Infobox golf facility/doc

From The Democratikan Wiki
Revision as of 03:07, 15 February 2024 by Akarea (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

{{{name}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}]]
{{{caption}}}
Club information
Lua error in Module:Location_map at line 411: Malformed coordinates value.
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
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}}}

<syntaxhighlight lang="wikitext" style="overflow:auto">

Club information

</syntaxhighlight>

Additional courses

To add additional courses (up to 8 total) use <syntaxhighlight lang="wikitext" style="overflow:auto"> | course2 = | designer2 = | par2 = | length2 = | rating2 = | slope2 = | record2 = </syntaxhighlight> <syntaxhighlight lang="wikitext" style="overflow:auto"> | course3 = | designer3 = | par3 = | length3 = | rating3 = | slope3 = | record3 = </syntaxhighlight> <syntaxhighlight lang="wikitext" style="overflow:auto"> | course4 = | designer4 = | par4 = | length4 = | rating4 = | slope4 = | record4 = </syntaxhighlight> <syntaxhighlight lang="wikitext" style="overflow:auto"> | course5 = | designer5 = | par5 = | length5 = | rating5 = | slope5 = | record5 = </syntaxhighlight> <syntaxhighlight lang="wikitext" style="overflow:auto"> | course6 = | designer6 = | par6 = | length6 = | rating6 = | slope6 = | record6 = </syntaxhighlight> <syntaxhighlight lang="wikitext" style="overflow:auto"> | course7 = | designer7 = | par7 = | length7 = | rating7 = | slope7 = | record7 = </syntaxhighlight> <syntaxhighlight lang="wikitext" style="overflow:auto"> | course8 = | designer8 = | par8 = | length8 = | rating8 = | slope8 = | record8 = </syntaxhighlight>

Embedding other templates

The module=, embedded=, or nrhp= parameters can be used for embedding other templates into this infobox (see Wikipedia:Infobox modules): <syntaxhighlight lang="wikitext" style="overflow:auto">

...
Club information
Template:Infobox ABC

</syntaxhighlight>

Coordinates

For coordinates, use {{coord}} with display=inline,title. Please do not be overly precise.

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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox golf facility in articles based on its TemplateData.

TemplateData for Infobox golf facility

This is an infobox to describe individual golf courses.

Template parameters

ParameterDescriptionTypeStatus
Namename

The name of the facility

Default
default value
Stringoptional
Picture of courseimage

A representative picture of the facility; just add the filename of a picture.

Fileoptional
Picture Sizeimagesize

Provide the unit in the value; for instance, "98 pixels"

Stringoptional
Caption for picturecaption

no description

Stringoptional
Year course establishedestablishment

no description

Numberoptional
Type of coursetype

Typically only "Public" or "Private".

Stringoptional
Owner of courseowner

This is the owner of the golf course; if the owner has a wikipedia entry, markup with "[[" and "]]".

Stringoptional
Operator of courseoperator

This is the operator of the golf course; if the owner has a wikipedia entry, markup with "[[" and "]]".

Stringoptional
Holes countholes

Number of holes in the course (e.g. 18)

Numberoptional
Greensgreens

Type of grass used

Stringoptional
Fairwaysfairways

Type of grass used

Stringoptional
Tournaments held at coursetournaments

The tournaments listed should be notable, meaning they have wikipedia entries for them (markup with "[[" and "]]")

Stringoptional
Websitewebsite

If there is a website for the course, add it here.

Stringoptional

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 =