Difference between revisions of "Template:Infobox golf facility"
imported>Wjemather m (fix rogue bolding of designer names) |
imported>Frietjes (remove unused parameters) |
||
(60 intermediate revisions by 21 users not shown) | |||
Line 1: | Line 1: | ||
− | { | + | {{infobox |
− | | | + | | title = {{{name|{{{golf_facility_name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}} |
− | + | | titleclass = fn org | |
− | + | ||
− | + | | headerstyle = background-color: #4FA942; color: black; | |
− | {{ | + | |
− | } | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{imagesize|}}}}}}|sizedefault=frameless|alt={{{alt|}}}}} |
− | {{ | + | |
− | {{ | + | | caption = {{{caption|}}} |
− | {{ | + | |
− | }} | + | | header1 = <includeonly>Club information</includeonly> |
− | + | ||
− | | | + | | data2 = {{#if:{{{pushpin_map|}}}|{{Location map|{{{pushpin_map|}}} |
− | {{ | + | |alt = {{{pushpin_map_alt|}}} |
− | + | |relief = {{{pushpin_relief|{{{relief|}}}}}} | |
− | + | |coordinates = {{{coordinates|}}} | |
− | + | |float = center | |
− | }} | + | |mark = Map symbol golf course 02.png |
− | + | |marksize= 25 | |
− | + | |label = | |
− | {{ | + | |border = infobox |
− | + | |caption = {{{pushpin_map_caption|{{{map_caption|}}}}}} | |
− | + | |width = {{{pushpin_mapsize|250}}} | |
− | {{# | + | }}}} |
− | + | ||
− | { | + | | label3 = [[Geographic coordinate system|Coordinates]] |
− | {{ | + | | data3 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}} }} |
− | + | ||
− | { | + | | label4 = Location |
− | + | | data4 = {{{location|}}} | |
− | + | ||
− | + | | label5 = Elevation | |
− | + | | data5 = {{{elevation|}}} | |
− | + | ||
− | + | | label6 = Established | |
− | { | + | | data6 = {{{establishment|}}} |
− | {{ | + | |
− | + | | label7 = Type | |
− | + | | data7 = {{{type|}}} | |
− | + | ||
− | {{ | + | | label8 = Owned by |
− | {{ | + | | data8 = {{{owner|}}} |
− | + | ||
− | {{#if:{{{ | + | | label9 = Operated by |
− | + | | data9 = {{{operator|}}} | |
− | {{ | + | |
− | {{ | + | | label10 = Total holes |
− | }} | + | | data10 = {{{holes|}}} |
− | {{ | + | |
− | + | | label11 = [[:Category:Golf tournaments|Tournaments hosted]] | |
− | {{ | + | | data11 = {{{tournaments|}}} |
− | {{ | + | |
− | }} | + | | label12 = Greens |
− | + | | data12 = {{{greens|}}} | |
− | + | ||
− | {{ | + | | label13 = Fairways |
− | {{ | + | | data13 = {{{fairways|}}} |
− | }} | + | |
− | {{ | + | | label14 = Website |
− | + | | data14 = {{{website|}}} | |
− | {{ | + | |
− | }} | + | | header21 = {{#if:{{{course1|}}}{{{designer1|}}}{{{par1|}}}{{{length1|}}}{{{rating1|}}}{{{slope1|}}}{{{record1|}}} |
− | {{ | + | |{{Infobox golf facility/course |
− | + | | course = {{{course1|}}} | |
− | {{ | + | | designer = {{{designer1|}}} |
− | {{ | + | | par = {{{par1|}}} |
− | }} | + | | length = {{{length1|}}} |
− | {{ | + | | rating = {{{rating1|}}} |
− | + | | slope = {{{slope1|}}} | |
− | {{ | + | | record = {{{record1|}}} |
− | {{ | + | }} |
− | }} | + | }} |
− | {{ | + | |
− | + | | header22 = {{#if:{{{course2|}}}{{{designer2|}}}{{{par2|}}}{{{length2|}}}{{{rating2|}}}{{{slope2|}}}{{{record2|}}} | |
− | {{ | + | |{{Infobox golf facility/course |
− | + | | course = {{{course2|}}} | |
− | }} | + | | designer = {{{designer2|}}} |
− | {{#if:{{{ | + | | par = {{{par2|}}} |
− | + | | length = {{{length2|}}} | |
− | {{ | + | | rating = {{{rating2|}}} |
− | {{ | + | | slope = {{{slope2|}}} |
− | }} | + | | record = {{{record2|}}} |
− | + | }} | |
− | + | }} | |
− | {{ | + | |
− | {{ | + | | header23 = {{#if:{{{course3|}}}{{{designer3|}}}{{{par3|}}}{{{length3|}}}{{{rating3|}}}{{{slope3|}}}{{{record3|}}} |
− | + | |{{Infobox golf facility/course | |
− | {{ | + | | course = {{{course3|}}} |
− | + | | designer = {{{designer3|}}} | |
− | {{ | + | | par = {{{par3|}}} |
− | }} | + | | length = {{{length3|}}} |
− | + | | rating = {{{rating3|}}} | |
− | + | | slope = {{{slope3|}}} | |
− | {{ | + | | record = {{{record3|}}} |
− | {{ | + | }} |
− | }} | + | }} |
− | {{#if:{{{ | + | |
− | + | | header24 = {{#if:{{{course4|}}}{{{designer4|}}}{{{par4|}}}{{{length4|}}}{{{rating4|}}}{{{slope4|}}}{{{record4|}}} | |
− | {{ | + | |{{Infobox golf facility/course |
− | {{ | + | | course = {{{course4|}}} |
− | + | | designer = {{{designer4|}}} | |
− | + | | par = {{{par4|}}} | |
− | + | | length = {{{length4|}}} | |
− | {{ | + | | rating = {{{rating4|}}} |
− | {{ | + | | slope = {{{slope4|}}} |
− | + | | record = {{{record4|}}} | |
− | {{ | + | }} |
− | + | }} | |
− | {{ | + | |
− | {{ | + | | header25 = {{#if:{{{course5|}}}{{{designer5|}}}{{{par5|}}}{{{length5|}}}{{{rating5|}}}{{{slope5|}}}{{{record5|}}} |
− | }} | + | |{{Infobox golf facility/course |
− | { | + | | course = {{{course5|}}} |
− | + | | designer = {{{designer5|}}} | |
− | {{ | + | | par = {{{par5|}}} |
− | + | | length = {{{length5|}}} | |
− | + | | rating = {{{rating5|}}} | |
− | {{#if:{{{ | + | | slope = {{{slope5|}}} |
− | {{ | + | | record = {{{record5|}}} |
− | {{ | + | }} |
− | } | + | }} |
− | {{ | + | |
− | + | | header26 = {{#if:{{{course6|}}}{{{designer6|}}}{{{par6|}}}{{{length6|}}}{{{rating6|}}}{{{slope6|}}}{{{record6|}}} | |
− | {{ | + | |{{Infobox golf facility/course |
− | {{ | + | | course = {{{course6|}}} |
− | }} | + | | designer = {{{designer6|}}} |
− | {{ | + | | par = {{{par6|}}} |
− | + | | length = {{{length6|}}} | |
− | {{ | + | | rating = {{{rating6|}}} |
− | + | | slope = {{{slope6|}}} | |
− | }} | + | | record = {{{record6|}}} |
− | {{#if:{{{ | + | }} |
− | + | }} | |
− | {{ | + | |
− | {{ | + | | header27 = {{#if:{{{course7|}}}{{{designer7|}}}{{{par7|}}}{{{length7|}}}{{{rating7|}}}{{{slope7|}}}{{{record7|}}} |
− | } | + | |{{Infobox golf facility/course |
− | {{ | + | | course = {{{course7|}}} |
− | + | | designer = {{{designer7|}}} | |
− | {{ | + | | par = {{{par7|}}} |
− | {{ | + | | length = {{{length7|}}} |
− | }} | + | | rating = {{{rating7|}}} |
− | {{ | + | | slope = {{{slope7|}}} |
− | + | | record = {{{record7|}}} | |
− | {{ | + | }} |
− | {{ | + | }} |
− | }} | + | |
− | {{#if:{{{ | + | | header28 = {{#if:{{{course8|}}}{{{designer8|}}}{{{par8|}}}{{{length8|}}}{{{rating8|}}}{{{slope8|}}}{{{record8|}}} |
− | {{ | + | |{{Infobox golf facility/course |
− | {{ | + | | course = {{{course8|}}} |
− | }} | + | | designer = {{{designer8|}}} |
− | {{ | + | | par = {{{par8|}}} |
− | + | | length = {{{length8|}}} | |
− | {{ | + | | rating = {{{rating8|}}} |
− | {{ | + | | slope = {{{slope8|}}} |
− | }} | + | | record = {{{record8|}}} |
− | + | }} | |
− | + | }} | |
− | {{ | + | |
− | {{ | + | | header29 = {{#if:{{{course9|}}}{{{designer9|}}}{{{par9|}}}{{{length9|}}}{{{rating9|}}}{{{slope9|}}}{{{record9|}}} |
− | }} | + | |{{Infobox golf facility/course |
− | {{#if:{{{ | + | | course = {{{course9|}}} |
− | + | | designer = {{{designer9|}}} | |
− | {{ | + | | par = {{{par9|}}} |
− | {{ | + | | length = {{{length9|}}} |
− | } | + | | rating = {{{rating9|}}} |
− | {{ | + | | slope = {{{slope9|}}} |
− | + | | record = {{{record9|}}} | |
− | {{ | + | }} |
− | {{ | + | }} |
− | }} | + | |
− | {{ | + | | data30 = {{{nrhp|{{{embedded|{{{module|}}}}}}}}} |
− | + | ||
− | {{ | + | | data31 = {{#if:{{{image2|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image2}}}|size={{{image_size2|{{{imagesize2|}}}}}} }}{{#if:{{{caption2|}}}|<div>{{{caption2|}}}</div>}} }} |
− | {{ | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox golf facility with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox golf facility]] with unknown parameter "_VALUE_"<!--|ignoreblank=y-->| alt | caption | caption2 | coordinates | course1 | course2 | course3 | course4 | course5 | course6 | course7 | course8 | course9 | designer1 | designer2 | designer3 | designer4 | designer5 | designer6 | designer7 | designer8 | designer9 | elevation | embedded | establishment | fairways | golf_facility_name | greens | holes | image | image_size | image_size2 | image2 | imagesize | imagesize2 | length1 | length2 | length3 | length4 | length5 | length6 | length7 | length8 | length9 | location | map_caption | module | name | nrhp | operator | owner | par1 | par2 | par3 | par4 | par5 | par6 | par7 | par8 | par9 | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_mapsize | pushpin_relief | rating1 | rating2 | rating3 | rating4 | rating5 | rating6 | rating7 | rating8 | rating9 | record1 | record2 | record3 | record4 | record5 | record6 | record7 | record8 | record9 | relief | slope1 | slope2 | slope3 | slope4 | slope5 | slope6 | slope7 | slope8 | slope9 | tournaments | type | website }}<noinclude>{{documentation}}</noinclude> |
− | }} | ||
− | {{#if:{{{ | ||
− | {{ | ||
− | {{ | ||
− | }} | ||
− | {{ | ||
− | {{ | ||
− | |||
− | |||
− | |}<noinclude>{{ |
Latest revision as of 12:31, 16 May 2017
[[Category:Infobox templates|Template:Remove first word]]
![]() | 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. |