Skabelon:Infobox park/doc
Dette er dokumentationsundersiden til Skabelon:Infobox park. Denne side indeholder information om brug, kategorier samt andet indhold, som ikke er en del af den oprindelige skabelonside. |
If the park is a natural protected area listed by IUCN, then editors should use {{Infobox protected area}}. |
Denne skabelon bruger Lua: |
{{{name}}} | |
---|---|
{{{alt_name}}} | |
[[File:{{{photo}}}|325px|alt={{{photo_alt}}}]] | |
Type | {{{type}}} |
Placering | {{{location}}} |
Nærmeste by | {{{nearest_city}}} |
OS grid | {{{grid_ref_UK}}} |
OSI/OSNI grid | {{{grid_ref_Ireland}}} |
Koordinater | {{{coordinates}}} |
Område | {{{area}}} |
Højde | {{{elevation}}} |
Authoriseret | {{{authorized}}} |
Lukket | {{{closed}}} |
Stifter | {{{founder}}} |
Designer | {{{designer}}} |
Etymologi | {{{etymology}}} |
Ejes af | {{{owner}}} |
Administeret af | {{{administrator}}} |
Besøgende | {{{visitation_num}}} (in {{{visitation_year}}}){{{visitation_ref}}} |
Open | {{{open}}} |
Status | {{{status}}} |
Hæder | {{{awards}}} |
Campingplads | {{{camp_sites}}} |
Vandreruter | {{{hiking_trails}}} |
Terræn | {{{terrain}}} |
Vand | {{{water}}} |
Plants | {{{plants}}} |
Species | {{{species}}} |
Samlinger | {{{collections}}} |
Benævnelse | {{{designation}}} |
Truet af | {{{disturbance}}} |
Budget | {{{budget}}} |
Parkering | {{{parking}}} |
Adgang til offentlig transport | {{{publictransit}}} |
{{{free_label}}} | {{{free_data}}} |
Anden information | {{{other_info}}} |
Website | {{{website}}} |
{{{embedded}}} |
This Infobox template can be used in articles about parks and gardens.
Usage
[rediger kildetekst]This template provides many options. A very functional infobox can be created using the most commonly used parameters below.
Most commonly used parameters
[rediger kildetekst]{{Infobox park | name = | photo = | photo_width = | photo_alt = | photo_caption = | map = | map_width = | type = | location = | nearest_city = | coordinates = | area = | created = | operator = | visitation_num = | status = | designation = | open = }}
Full syntax
[rediger kildetekst]{{Infobox park | name = | alt_name = | native_name = | native_name_lang = | photo = | photo_width = | photo_alt = | photo_caption = | map = | map_alt = | map_width = | map_caption = | relief = | label = | label_position = | mark = | mark_width = | x = | y = | x% = | y% = | grid_ref_UK = | grid_ref_Ireland = | coordinates = | coords_ref = |
| type = | location = | nearest_city = | area = | elevation = | authorized = | created = | established = | designated = | opening = | opened = | closed = | founder = | designer = | etymology = | owner = | administrator = | manager = | operator = | visitation_num = | visitation_year = | visitation_ref = | open = | status = | awards = | camp_sites = | hiking_trails = | terrain = | water = | plants = | species = | collections = | designation = | disturbance = | budget = | parking = | publictransit = | free_label = | free_data = | other_info = | website = | child = | embedded = }} |
Parameters
[rediger kildetekst]Descriptions
[rediger kildetekst]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 .
|
alt_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 name in the local language 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. |
photo |
The name of an image file to be displayed. No special formatting is needed. |
photo_width |
Can be used to change the display width of the image. The default width is 240 pixels and maximum is 272px,. 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 180px or less. For example, photo_width=200 and not photo_width=200px . This template allows photo_width=frameless . See Photo display parameters below.
|
photo_alt |
Alt text for the photo, for visually impaired readers. See Wikipedia:ALT. |
photo_caption |
The caption that will appear below the image if one is required. |
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. |
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. |
Map related parameters | |
map |
The name of the map to be displayed. See Map display methods below. |
map_width |
Can change the display width the map. The default width is 240 pixels and maximum is 272px, 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 Wikipedia:ALT. |
map_caption |
The caption that appears below the map if one is required. |
label |
A text message that will be displayed next to the mark. Works with label_position below. Seldom used.
|
label_position |
Specifies the position of a label with respect to the mark. This is not functional when using the pixel coordinates method for map display. Valid values are left , right , top and bottom . See label above.
|
relief |
Selects a relief map when assigned any value. This is not functional when using the pixel coordinates method for map display. See Map display methods. |
mark |
The image used for the mark on a map. The default is Red pog.svg. Look here for other images. |
x y |
Specifies the position of the location marker on a map image. The coordinates of the marker in pixels based on a map with a width of 1000 pixels. The template will scale these values for proper display. See below. |
x% y% |
Specifies the position of the location marker on a map image. x% specifies the percentage of the distance across the image from the left edge and y% specifies the percentage of the distance down from the top edge. See below.
|
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_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. |
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. |
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.
|
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. |
administrator manager operator owner |
The agency or organization which controls or owns the park. See below. |
budget |
Owner/ operator's planned annual expenditure. |
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."
|
designation |
The legal protection offered to the park. |
awards |
Any awards given to the park; for example, Green Flag Award in the UK. |
disturbance |
Threats to the park, e.g. logging, urban development. |
habitat |
Type(s) of habitat(s). |
plants |
Number of individual plants grown. |
species |
Number of species grown. |
collections |
Notable plant collections. |
parking |
Information on the park's parking facilities (e.g. number of spaces or lots). |
publictransit |
The nearest public transport stop. |
free_label |
Customisable label. |
free_data |
Data field used with free_label .
|
child |
Used to embed this template in another. See below. |
embedded |
Used to embed another template in this one. See below. |
website |
Website. Use {{URL}}. |
Photo display parameters
[rediger kildetekst]The parameter photo_width
allows several options:
Option | Description |
---|---|
photo_width= |
If no value is assigned, the photo image will display with a width of 240px. |
photo_width=<n> |
Where n is any numeric value, the photo image will display with a width of n pixels. The maximum width is 272px. |
photo_width=frameless |
The photo image will display with a default width of 220px, however, if a user is logged in, they can change this value here. If this option is used, the upright parameter is made available. For example, |photo_width=frameless|upright=1.2 will cause the image to display with a width of (220 * 1.2)px or 264px. More information about this parameter can be found here.
|
photo_width=upright |
The photo image will display with a default width of 170px. This is equivalent to [[File:Example.jpg|frameless|upright]] using wiki image syntax. More information about the upright option can be found here.
|
Alternate parameters
[rediger kildetekst]A few cells allow alternate parameter names which can be used to generate an appropriate label. Editors should probably not be overly concerned with using the correct label unless using the wrong label would be a blatant error.
To display the date the park was created use the most appropriate parameter below:
authorized
→ Authorizedcreated
→ Createddesignated
→ Designatedestablished
→ Establishedopened
→ Openedopening
→ Opening
To display the name of the entity which manages the park use the most appropriate parameter below:
administrator
→ Administered bymanager
→ Managed byoperator
→ Operated byowner
→ Owned by
Examples
[rediger kildetekst]Tank Hill Park | |
---|---|
Type | Natural Area |
Placering | San Francisco, California |
Koordinater | 37°45′36″N 122°26′51″V / 37.76000°N 122.44750°V |
Område | 2,87 acres (1,16 ha)* |
Skabt | 1977 |
Drives af | San Francisco Recreation and Parks |
{{Infobox park | name = Tank Hill Park | alt_name = | photo = Tank Hill, San Francisco.jpg | photo_width = 256 | photo_alt = | photo_caption = Tank Hill from below | map = San Francisco County | map_width = 208 | map_caption = | type = Natural Area | location = [[San Francisco]], [[California]] | coordinates = {{coord|37|45|36|N|122|26|51|W|region:US-CA_source:gnis|display=inline}} | area = {{convert|2.87|acre|2}} | created = {{start date|1977}} | operator = San Francisco Recreation and Parks | visitation = | open = }}
Edworthy Park | |
---|---|
Location of Edworthy Park in Calgary | |
Type | Urban park |
Placering | Calgary, Alberta |
Koordinater | 51°03′41″N 114°09′23″V / 51.06139°N 114.15639°V |
Område | 1,27 km2 (0,49 sq mi)* |
Drives af | City of Calgary |
Open | All year |
{{Infobox park | name = Edworthy Park | photo = Calgary-Edworthy Park.JPG | photo_width = | photo_caption = Bow River seen from Edworthy Park | type = [[Urban park]] | location = [[Calgary]], [[Alberta]] | coordinates = {{coord|51|03|41|N|114|09|23|W}} | area = {{convert|1.27|km2|abbr=on|2}} | operator = [[Calgary|City of Calgary]] | visitation = | open = All year | map = Calgary street map.png | map_width = 192 | map_alt = | map_caption = Location of Edworthy Park in Calgary | x = 335 | y = 467 }}
Map display methods
[rediger kildetekst]Any image of a map showing the location of the park can be used. There are three methods by which maps showing a marker can be generated.
Display a marker on a map using a template and geographic coordinates
[rediger kildetekst]A marker can be superimposed on a map using one of a set of special map templates. To display a marker, the geographic coordinates must be specified using the {{Coord}} template inside the |coordinates=
parameter. See the documentation for {{Location map}}. The parameters for this template map to a subset of the parameters used by {{Location map}}. A map template can be found using these sources:
- List of templates – Many of the listed items are redirects and a few templates may not function as expected.
- en::Category:Location map templates - templates sorted by category.
- Special:WhatLinksHere/Template:Location map/Info – a search that might help.
- Special:PrefixIndex/Module:Location map/data/ – another search that might help.
- Special:Prefixindex/Template:Location map – another search that might help.
All of the names begin with the words "Location map" followed by the area covered. The value you need to specify is the area name. The map template for Canada is Location map/data/Canada. In this case specify |map=Canada
.
Four Corners, Canada | |
---|---|
Example using geographic coordinates | |
Koordinater | 60°00′00″N 102°00′00″V / 60.00000°N 102.00000°V |
{{Infobox park | name = Four Corners, Canada | map = Canada | map_caption = Example using geographic coordinates | coordinates = {{coord|60|00|00|N|102|00|00|W|display=inline,title}} }}
By default, {{Coord}} displays in the infobox only in the page title. Parameter |display=inline,title
can be added to make the coordinates display at the top of the page as well.
Display a marker on any map image using the x
and y
parameters
[rediger kildetekst]The values for the x
and y
parameters are the pixel coordinates of the location mark when the image is scaled to a width of 1000 pixels.
x
is the pixel offset for the mark from the left edge of an image 1000px wide.y
is the pixel offset for the mark from the top edge of an image 1000px wide.
There are at least two ways of obtaining these values:
- Download the image from the image's file page to your computer. Open the image in a graphics editor, such as GIMP or XnView. Scale (resize) the image to a width of 1000px and then note the x, y coordinates when the cursor points to the desired location. Use these values directly.
- Download the image from the image's file page to your computer. Open the image in any image viewer that displays the coordinates of the cursor position, such as Paint from Microsoft. Note the x, y coordinates when the cursor points to the location. Then:
- 1000 •x'/w = x and 1000 •y'/w = y
- where x' and y' are the cursor coordinates, w is the width of the image displayed on your computer and x and y are the values to assign to the
x
andy
parameters.
- where x' and y' are the cursor coordinates, w is the width of the image displayed on your computer and x and y are the values to assign to the
Four Corners, Canada | |
---|---|
Example using the x and y parameters |
{{Infobox park | name = Four Corners, Canada | map = Canada location map.svg | map_caption = Example using the x and y parameters | x = 369 | y = 487 }}
Display a marker on any map image using the x%
and y%
parameters
[rediger kildetekst]- x% specifies the percent of the distance across the image from the left edge.
- y% specifies the percent of the distance down from the top edge.
In the following example the marker is 36.9% of the way across and 57.4% of the way down.
Four Corners, Canada | |
---|---|
Example using the x% and y% parameters |
{{Infobox park | name = Four Corners, Canada | map = Relief map of Canada.png | map_caption = Example using the x% and y% parameters | x% = 36.9 | y% = 57.4 }}
Template embedding
[rediger kildetekst]This template can be embedding in another infobox template by adding the code |child=yes
. To embed another template in this one use |embedded={{Infobox ...
.
Microformat
[rediger kildetekst]The articles created using this template include an hCard microformat. For more information read this.
Tracking categories
[rediger kildetekst]- Kategori:Park articles requiring maintenance (0) – for infoboxes using the
|name=
parameter - Kategori:Pages using infobox park with unknown parameters (0)
Se også
[rediger kildetekst]- {{Infobox street}}
- {{Infobox urban feature}}