Jump to content

Template:Infobox park/doc: Difference between revisions

From Wikifacta
en>Zackmann08
Cleaning up syntax using indent.js
 
m 1 revision imported
 
(No difference)

Latest revision as of 04:15, 28 August 2026

__EXPECTED_UNCONNECTED_PAGE__

This Infobox template can be used in articles about parks, gardens and nature reserves.

{{{name}}}
{{{other_name}}}
{{{native_name}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}]]
{{{image_caption}}}
[[File:{{{map_image}}}|{{{map_size}}}|alt={{{map_alt}}}]]
{{{map_caption}}}
Type{{{type}}}
Motto{{{motto}}}
Location{{{location}}}
Nearest city{{{nearest_city}}}
Nearest town{{{nearest_town}}}
OS grid{{{grid_ref_UK}}}{{{grid_ref_UK_note}}}
OSI/OSNI grid{{{grid_ref_Ireland}}}{{{grid_ref_Ireland_note}}}
Coordinates{{{coordinates}}}{{{coords_ref}}}
Area{{{area}}}
Elevation{{{elevation}}}
Authorized{{{authorized}}}
Created{{{created}}}
Established{{{established}}}
Designated{{{designated}}}
Opened{{{opened}}}
or {{{opening}}}
Closed{{{closed}}}
Founder{{{founder}}}
Designer{{{designer}}}
Etymology{{{etymology}}}
Owner{{{owner}}}
Administrator{{{administrator}}}
Manager{{{manager}}}
Operator{{{operator}}}
Visitors{{{visitation_num}}} (in {{{visitation_year}}}){{{visitation_ref}}}
Open{{{open}}}
Status{{{status}}}
Awards{{{awards}}}
Camp sites{{{camp_sites}}}
Hiking trails{{{hiking_trails}}}
Paths{{{paths}}}
Terrain{{{terrain}}}
Habitats{{{habitat}}}
Water{{{water}}}
Vegetation{{{vegetation}}}
Plants{{{plants}}}
Species{{{species}}}
Collections{{{collections}}}
Designation{{{designation}}}
Threatened by{{{disturbance}}}
Budget{{{budget}}}
Parking{{{parking}}}
Public transit
{{{public_transit}}}
{{{free_label}}}{{{free_data}}}
Facilities{{{facilities}}}
Other information{{{other_info}}}
Website{{{website}}}
{{{module}}}

This template provides many options. A very functional infobox can be created using the most commonly used parameters below.

{{Infobox park
| name                  = 
| other_name            = 
| native_name           = 
| native_name_lang      = 
| image                 = 
| image_size            = 
| image_alt             = 
| image_caption         = 
| map_image             = 
| map_alt               = 
| map_size              = 
| map_caption           = 
| type                  = 
| motto                 = 
| location              = 
| nearest_city          = 
| nearest_town          = 
| grid_ref_UK           = 
| grid_ref_UK_note      = 
| grid_ref_Ireland      = 
| grid_ref_Ireland_note = 
| coordinates           = 
| coords_ref            = 
| area                  = 
| elevation             = 
| authorized            = 
| created               = 
| established           = 
| designated            = 
| opened                = 
| opening               = 
| closed                = 
| founder               = 
| designer              = 
| etymology             = 
| owner                 = 
| administrator         = 
| manager               = 
| operator              = 
| visitation_num        = 
| visitation_year       = 
| visitation_ref        = 
| open                  = 
| status                = 
| awards                = 
| camp_sites            = 
| hiking_trails         = 
| paths                 = 
| terrain               = 
| habitat               = 
| water                 = 
| plants                = 
| vegetation            = 
| species               = 
| collections           = 
| designation           = 
| disturbance           = 
| budget                = 
| parking               = 
| public_transit        = 
| transport             = 
| free_label            = 
| free_data             = 
| other_info            = 
| facilities            = 
| website               = 
| module                = 
| child                 = 
}}

Parameters

[edit source]

Descriptions

[edit source]

This table describes all parameters which can be used in build park infobox. Only the name parameter must be assigned a value.

Field name Description
name Required. The name of the park. It will be displayed at the top of the infobox. In most cases this should be the same as the article name less any disambiguation. For example, if the article title is Hyde Park, London then name=Hyde Park.
other_name If there is a common English name for the park use it for the name parameter. This parameter can be used to display the full name if different from name or for an alternate English name if it is commonly used. If you would like to italicize the text use wiki markup.
native_name name in local language. If more than one, separate using {{plainlist}}.
native_name_lang ISO 639-2 code e.g. "fr" for French. If more than one, use {{lang}} instead.
image The name of an image file to be displayed. No special formatting is needed.
image_size Can be used to change the display width of the image. The default width is 250 pixels and maximum is 325 pixels. Images with a horizontal orientation (landscape mode) will generally display well at the default setting. An image with vertical orientation (portrait mode) may need to be adjusted to 180 pixels or less. For example, image_size=200 and not image_size=200px. This template allows image_size=frameless. See Photo display parameters below.
image_alt Alternative text for the image, for visually impaired readers. See WP:ALT.
image_caption The caption that will appear below the image if one is required.
Map related parameters
map_image The file name of a static map image to be displayed. To use a location map, use |pushpin_map=.
map_width Can change the display width the map. The default width is 250 pixels and maximum is 272 pixels, but usually the map can be smaller. For example, map_width=200 and not map_width=200px.
map_alt Alt text for the map. See WP:ALT.
map_caption The caption that appears below the map if one is required.
Type, Location, Motto, Nearest city
type
location The location of the park. Don't be too precise. County, state and country are good in the USA. If the park is within a city specify the city, state and country. If the park is in multiple counties just list the state and country. For areas in other countries adjust accordingly.
motto
nearest_city
nearest_town
Recommended if the area is not within a city or town. It could be a city with a major airport or a large gateway town where supplies and lodging are available. Use the most appropriate parameter.
Coordinates-related parameters
grid_ref_UK If the park is in Great Britain, the British grid reference. For parks outside of Great Britain, this field is not applicable and therefore should be removed if it is present.
grid_ref_UK_note If grid_ref_UK is used, this will add a note (e.g., for a reference) immediately after.
grid_ref_Ireland If the park is in Ireland (whether Northern Ireland or the Republic), the Irish grid reference. For parks outside Ireland, this field is not applicable and therefore should be removed if it is present.
grid_ref_UK_Ireland If grid_ref_Ireland is used, this will add a note (e.g., for a reference) immediately after.
coordinates For the {{coord}} template. The parameters |format=dms and |display=inline,title are recommended. Its coordinates can be used with the location map. (Unless a value for type: is provided, the template will automatically use type:landmark. See the {{Coord}} page for more info.)
coords_ref Strongly recommended. Specify a citation for the coordinates using <ref>...</ref> tags.
Other parameters
area Area of the protected park. Usually in acres or square miles for US locations and hectares or square kilometres elsewhere. The {{convert}} template should be used. Very small areas might be specified in square feet, square yards or square metres.
elevation Elevation of the park if it is noteworthy. The {{convert}} template should be used.
authorized
created
established
designated
opened
opening
The date the park was created. See below. Use {{start date}}. For example, for Yosemite National Park, use {{start date|1890|10|1}}.
closed The date of closure or disestablishment, if applicable.
founder The person who founded the park or garden.
designer The person who designed the park or garden.
etymology The etymology of parks name. Should be very brief or only included in the text of the article.
owner
administrator
manager
operator
The agency or organization which controls or owns the park. See below.
visitation_num The number of visitors in a recent year if known.
visitation_year The year during which the number of visitors was counted.
visitation_ref Used with the visitation parameters above. Highly recommended. Specify the a citation for the visitation data using <ref>...</ref> tags.
open The hours, days, or months that the park is open.
status The status of the park. e.g. "Closed for restoration", or "Closed due to budgetary considerations." Sometimes used as an alternative to open. e.g. "Open all year."
awards Any awards given to the park; for example, Green Flag Award in the UK.
camp_sites
hiking_trails
paths
terrain
habitat
Type(s) of terrain or habitat(s).
water
plants
vegetation
Number of individual plants grown.
species Number of species grown.
collections Notable plant collections.
designation The legal protection offered to the park.
disturbance Threats to the park, e.g. logging, urban development.
budget Owner/ operator's planned annual expenditure.
parking Information on the park's parking facilities (e.g. number of spaces or lots).
public_transit The nearest public transport stop.
free_label Customisable label.
free_data Data field used with free_label.
other_info
facilities
website Website. Use {{URL}}.
embedded Used to embed another template in this one. See below.
child Used to embed this template in another. See below.

Examples

[edit source]
Tank Hill Park
Tank Hill from below
Lua error in Module:Infobox_mapframe at line 51: attempt to index field 'wikibase' (a nil value).
TypeMunicipal Park and Natural Area
LocationSan Francisco, California, U.S.
Coordinates37°45′36″N 122°26′51″W / 37.76000°N 122.44750°W / 37.76000; -122.44750
Area2.87 acres (1.16 ha)
Created1977 (1977)
OperatorSan Francisco Recreation and Parks
{{Infobox park
| name          = Tank Hill Park
| other_name    = 
| image         = Tank Hill, San Francisco.jpg
| image_size    = 256
| image_alt     = 
| image_caption = Tank Hill from below
| type          = Municipal Park and Natural Area
| location      = [[San Francisco]], [[California]]
| coordinates   = {{coord|37|45|36|N|122|26|51|W|region:US-CA_source:gnis|display=inline<!--,title-->}}
| area          = {{convert|2.87|acre|2}}
| created       = {{start date|1977}}
| operator      = San Francisco Recreation and Parks
}}
Edworthy Park
Bow River seen from Edworthy Park
Infobox park/doc is located in Calgary
Infobox park/doc
Location within Calgary
TypeUrban park
LocationCalgary, Alberta, Canada
Coordinates51°03′41″N 114°09′23″W / 51.06139°N 114.15639°W / 51.06139; -114.15639
Area1.27 km2 (0.49 sq mi)
OperatorCity of Calgary
OpenAll year
{{Infobox park
| name          = Edworthy Park
| image         = Calgary-Edworthy Park.JPG
| image_size    = 
| image_alt     = 
| image_caption = Bow River seen from Edworthy Park
| pushpin_map   = Canada Calgary
| type          = [[Urban park]]
| location      = [[Calgary, Alberta]], Canada
| coordinates   = {{coord|51|03|41|N|114|09|23|W|display=inline<!--,title-->}}
| area          = {{convert|1.27|km2|abbr=on|2}}
| operator      = [[Calgary|City of Calgary]]
| open          = All year
}}

Map display methods

[edit source]

Pushpin map

[edit source]

Below are the parameters used by Module:Location map to produce the pushpin map in this Infobox. These parameters are available for editors to set in articles that use this infobox.

Parameter Description Default
|pushpin_map= The map(s) to display. For example, specifying England will use the values for England in Module:Location map/data/England.Multiple maps can be shown by providing a list of map names separated by #. For multiple maps, the first is shown by default. A reader can select the others with radio buttons. N/A
|pushpin_caption= The text of a caption to be displayed below the map. If not provided a default caption will be generated. Multiple captions can be shown when separated by ## (that's two). Location within MAPNAME
|pushpin_relief= 0/false/off will cause the template to display the map defined as image (generally not a relief map). 1/true/on will cause the template to display the map defined as image1 (generally a relief map). Any non-zero numeric value such as 2 or 3 will display image2 or image3, if those images are defined. Any other non-empty value will cause display of image1. See the example at Location map+/relief. 1
|pushpin_label= The text of the label to display next to the identifying mark; a wikilink can be used. You can enclose the label inside of {{nowrap}} if you want to make sure that it stays on a single line. N/A
|pushpin_label_size= The font size to use for the label, given as a percentage of the normal font size (<100=smaller, >100=larger); the default size is 90. Do not include %. For example, use |pushpin_label_size=80, not |pushpin_label_size=80%. If set to 0, the label is only displayed when the user hovers over the mark. 90
|pushpin_label_position= The position of the label relative to the identifying mark; valid values are left, right, top, bottom and none. This defaults to either left or right, depending on the coordinates of the marker and its position relative to the right border of the map image. When |pushpin_label_position=none, any defined label will not be displayed with the mark, but it will be used to create the default caption. N/A
|pushpin_mark= The name of an image file to display as the identifying mark; the default is Red pog.svg . See examples at Commons:Location markers and Commons:Category:Map icons. Red pog.svg
|pushpin_mark_size= The size of the identifying mark in pixels. Do not include px 8
|pushpin_alt= Alt text for map; used by screen readers. See WP:ALT. N/A
|pushpin_background= The background color to use for the label; see Web colors. The default is no background color, which shows the map image behind the label. N/A
|pushpin_map_size= Determines the width of the map in pixels, overriding any default values; do not include px. N/A

Mapframe parameters

[edit source]
  • Basic {{Infobox mapframe}} parameters:
    • mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no if a pushpin map or map image is specified, yes otherwise
      • Internal onByDefault parameter: not specified
    • mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g. |coord={{Coord|12.34|N|56.78|E}}. Default: coordinates from Wikidata d:Property:P625
    • 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, most 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-wikidata – Set to yes to show all shape/line features from OpenStreetMap. Default: not specified
  • Customise which features are displayed:
  • 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.1
    • mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
      • mapframe-line-stroke-color or mapframe-line-stroke-colour – Color of line features. Default: #ff0000
      • mapframe-shape-stroke-color or mapframe-shape-stroke-colour – Color of outlines of shape features. Default: #ff0000
    • mapframe-stroke-width – Width of line features, and outlines of shape features. Default: 2
      • mapframe-shape-stroke-width – Width of outlines of shape features. Default: 2
      • mapframe-line-stroke-width – Width of line features. Default: 5
    • mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: park
      • Can also be set to blank to override any default marker symbol
    • mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #5E74F3
    • 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: 1
    • 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.25
    • 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: 10
    • 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 / not specified / not specified / 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: not specified
    • mapframe-population – Set the population, useful with type="city", for {{Infobox dim}}. Default: not specified


TemplateData

[edit source]

Tracking categories

[edit source]

See also

[edit source]