Difference between revisions of "Template:Infobox golf facility"
imported>Thumperward (start bringing this into line with standard infobox stying) |
imported>Thumperward (clean this up) |
||
| Line 1: | Line 1: | ||
{| class="infobox" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em" | {| class="infobox" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em" | ||
| + | |+ class="fn org" style="font-weight: bold; font-size: 120%" | {{{golf_facility_name<includeonly>|{{PAGENAME}}</includeonly>}}} | ||
|- | |- | ||
| − | + | {{#if:{{{image|}}}| | |
| − | + | {{!}} colspan=2 style="text-align: center" {{!}} [[Image:{{{image}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|{{{width|225}}}x{{{height|250px}}}|}}|{{PAGENAME}}]] | |
| − | {{#if:{{{image|}}} | | + | {{!}}- |
| − | {{!}}colspan= | + | }} |
| − | + | {{#if:{{{caption|}}}| | |
| − | {{!-}} | + | {{!}} colspan=2 style="text-align: center" {{!}} {{{caption|}}} |
| + | {{!}}- | ||
}} | }} | ||
| + | ! colspan=2 style="text-align: center; background-color: #eedc82" | Club information | ||
|- | |- | ||
| − | + | {{#if:{{{location<includeonly>|</includeonly>}}}| | |
| − | + | ! Location | |
| − | {{#if:{{{location | + | {{!}} <span class="label">{{{location}}}</span> |
| − | + | {{!}}- | |
}} | }} | ||
| − | + | {{#if:{{{coordinates<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{coordinates | + | ! [[Geographic coordinate system|Coordinates]] |
| − | + | {{!}} {{{coordinates}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{establishment<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{establishment | + | ! Established |
| − | + | {{!}} {{{establishment}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{type<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{type | + | ! Type |
| − | + | {{!}} {{{type}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{owner<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{owner | + | ! Owned by |
| − | + | {{!}} {{{owner}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{operator<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{operator | + | ! Operated by |
| − | + | {{!}} {{{operator}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{holes<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{holes | + | ! Total holes |
| − | + | {{!}} {{{holes}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{tournaments<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{tournaments | + | ! [[:Category:Golf tournaments|Tournaments hosted]] |
| − | + | {{!}} {{{tournaments}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{website<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{website | + | ! Website |
| − | + | {{!}} {{{website}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{course1<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{course1 | + | {{!}} colspan=2 style="text-align: center; background-color:#4f7942; color: white" {{!}} {{{course1}}} |
| − | {{!}}colspan= | + | {{!}}- |
}} | }} | ||
| − | + | {{#if:{{{designer1<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{designer1 | + | ! [[golf course designer|Designed by]] |
| − | + | {{!}} {{{designer1}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{par1<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{par1 | + | ! [[Par (score)|Par]] |
| − | + | {{!}} {{{par1}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{length1<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{length1 | + | ! Length |
| − | + | {{!}} {{{length1}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{rating1<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{rating1 | + | ! [[Golf handicap#Course rating and slope|Course rating]] |
| − | + | {{!}} {{{rating1}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{record1<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{record1 | + | ! Course Record |
| − | + | {{!}} {{{record1}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{course2<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{course2 | + | {{!}} colspan=2 style="text-align: center; background-color:#4f7942; color: white" {{!}} {{{course2}}} |
| − | {{!}}colspan= | + | {{!}}- |
}} | }} | ||
| − | + | {{#if:{{{designer2<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{designer2 | + | ! [[golf course designer|Designed by]]''' {{!}}{{!}} {{{designer2}}} |
| − | + | {{!}}- | |
}} | }} | ||
| − | + | {{#if:{{{par2<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{par2 | + | ! [[Par (score)|Par]] |
| − | + | {{!}} {{{par2}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{length2<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{length2 | + | ! Length |
| − | + | {{!}} {{{length2}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{rating2<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{rating2 | + | ! [[Golf handicap#Course rating and slope|Course rating]] |
| − | + | {{!}} {{{rating2}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{record2<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{record2 | + | ! Course Record |
| − | + | {{!}} {{{record2}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{course3<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{course3 | + | {{!}} colspan=2 style="text-align: center; background-color:#4f7942; color: white" {{!}} {{{course3}}} |
| − | {{!}}colspan= | + | {{!}}- |
}} | }} | ||
| − | + | {{#if:{{{designer3<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{designer3 | + | ! [[golf course designer|Designed by]]''' {{!}}{{!}} {{{designer3}}} |
| − | + | {{!}}- | |
}} | }} | ||
| − | + | {{#if:{{{par3<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{par3 | + | ! [[Par (score)|Par]] |
| − | + | {{!}} {{{par3}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{length3<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{length3 | + | ! Length |
| − | + | {{!}} {{{length3}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{rating3<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{rating3 | + | ! [[Golf handicap#Course rating and slope|Course rating]] |
| − | + | {{!}} {{{rating3}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{record3<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{record3 | + | ! Course Record |
| − | + | {{!}} {{{record3}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{course4<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{course4 | + | {{!}} colspan=2 style="text-align: center; background-color:#4f7942; color: white" {{!}} {{{course4}}} |
| − | {{!}}colspan= | + | {{!}}- |
}} | }} | ||
| − | + | {{#if:{{{designer4<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{designer4 | + | ! Designed by |
| − | + | {{!}} {{{designer4}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{par4<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{par4 | + | ! [[Par (score)|Par]] |
| − | + | {{!}} {{{par4}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{length4<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{length4 | + | ! Length |
| − | + | {{!}} {{{length4}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{rating4<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{rating4 | + | ! [[Golf handicap#Course rating and slope|Course rating]] |
| − | + | {{!}} {{{rating4}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{record4<includeonly>|</includeonly>}}}| | |
| − | {{#if:{{{record4 | + | ! Course Record |
| − | + | {{!}} {{{record4}}} | |
| + | {{!}}- | ||
}} | }} | ||
| − | + | {{#if:{{{caption2|}}}| | |
| − | {{#if:{{{caption2|}}} | | + | {{!}} colspan=2 style="text-align: center; background-color: #c0c0c0" {{!}} {{{caption2|}}} |
| − | {{!}}colspan= | + | {{!}}- |
}} | }} | ||
| − | + | {{#if:{{{image2|}}}| | |
| − | {{#if:{{{image2|}}} | | + | {{!}} colspan=2 style="text-align: center" {{!}} [[Image:{{{image2}}}|{{#if:{{{imagesize2|}}}|{{{imagesize2}}}|{{{width|225}}}x{{{height|250px}}}|}}|{{PAGENAME}}]] |
| − | {{!}}colspan= | + | {{!}}- |
| − | {{! | ||
}} | }} | ||
| − | |}<noinclude> | + | |}<noinclude>{{doc}}</noinclude> |
| − | {{ | ||
Revision as of 10:30, 8 July 2009
| Club information | |
|---|---|
| Location | {{{location}}} |
| Coordinates | {{{coordinates}}} |
| Established | {{{establishment}}} |
| Type | {{{type}}} |
| Owned by | {{{owner}}} |
| Operated by | {{{operator}}} |
| Total holes | {{{holes}}} |
| Tournaments hosted | {{{tournaments}}} |
| Website | {{{website}}} |
| {{{course1}}} | |
| Designed by | {{{designer1}}} |
| Par | {{{par1}}} |
| Length | {{{length1}}} |
| Course rating | {{{rating1}}} |
| Course Record | {{{record1}}} |
| {{{course2}}} | |
| Designed by | {{{designer2}}} |
| Par | {{{par2}}} |
| Length | {{{length2}}} |
| Course rating | {{{rating2}}} |
| Course Record | {{{record2}}} |
| {{{course3}}} | |
| Designed by | {{{designer3}}} |
| Par | {{{par3}}} |
| Length | {{{length3}}} |
| Course rating | {{{rating3}}} |
| Course Record | {{{record3}}} |
| {{{course4}}} | |
| Designed by | {{{designer4}}} |
| Par | {{{par4}}} |
| Length | {{{length4}}} |
| Course rating | {{{rating4}}} |
| Course Record | {{{record4}}} |
| File:Lua-Logo.svg | This template uses Lua: |
Contents
Usage
- redirect Template:Parameter names example
{{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
Microformat
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. | Page | 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 =
| The above documentation is transcluded from Template:Infobox golf facility/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |