Template:Infobox glacier
| Infobox glacier |
|---|
| This template uses Lua: |
This template can be used to create an infobox for an article about a glacier. It is part of the Glaciers WikiProject.
Usage
| {{{name}}} | |
|---|---|
| {{{other_name}}} | |
| [[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}|upright=1.05]] {{{caption}}} | |
| [[File:{{{image_map}}}|{{{map_size}}}]] {{{map_caption}}} | |
| Type | {{{type}}} |
| Location | {{{location}}} |
| Coordinates | 0°N 0°E / 0°N 0°E{{{coordinates_ref}}} |
| Area | {{{area}}} |
| Length | {{{length}}} |
| Width | {{{width}}} |
| Thickness | {{{thickness}}} |
| Highest elevation | {{{elevation_max}}} |
| Lowest elevation | {{{elevation_min}}} |
| Terminus | {{{terminus}}} |
| Status | {{{status}}} |
| {{{embedded}}} | |
The markup below can be pasted into a new article. See below for working examples.
{{Infobox glacier
| child =
| name =
| other_name =
| image =
| image_size =
| image_upright =
| image_alt =
| caption =
| pushpin_map =
| pushpin_caption =
| image_map =
| map_caption =
| type =
| location =
| coordinates =
| coordinates_ref =
| area =
| length =
| width =
| thickness =
| elevation_max =
| elevation_min =
| terminus =
| status =
| embedded =
}}
Parameter descriptions
This table describes all parameters which can be used in building infoboxes. Only the name parameter must be assigned a value.
| Parameter | Description |
|---|---|
name |
Required. The name of the glacier area. 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 Columbia Glacier (Washington) then name=Columbia Glacier.
|
other_name |
If there is a common English name for the glacier 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.
|
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. Images with a horizontal orientation (landscape mode) will generally display well at the default setting. Currently, |image_size= is limited to be no larger than 288px
|
image_upright |
Can be used to change the display width of the image, relative to user preference for image size. The default is 1.05 . Currently, |image_upright= is limited to be no larger than 1.15
|
image_alt |
Alt text for the photo, for visually impaired readers. See WP:ALT. |
caption |
The caption that will appear below the image if one is required. |
pushpin_map |
The name of the location map to be displayed. See Map display methods. To use a static image, use |image_map=
|
image_map |
The file name of a static map image to be displayed. To use a location map, use |map=.
|
map_size |
Can change the display width of the map. The default is 240px and the maximum width is 272px For example, map_size=200 and not map_size=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 |
The type of glacier. For example: Alpine, valley, or continental. See Glacier#Types. |
location |
The location of the glacier. Don't be too precise. Mountain, county, state and country are good in the USA. If the glacier is in multiple counties, just list the state and country. For areas in other countries, adjust accordingly. |
coordinates
|
For the {{Coord}} template. Will generate a location marker if a map is used. See the Coord template documentation for information on adding type, source, format, region, and display data. Using display:inline,title is recommended.
|
coordinates_ref |
Strongly recommended. Specify a citation for the coordinates using <ref>...</ref> tags.
|
area |
Area of the glacier. Usually in acres for US locations and hectares elsewhere. The {{Convert}} template should be used. Very small glaciers might be specified in square yards or square metres. |
length |
The length of the glacier. |
width |
The width of the glacier. |
thickness |
The thickness of the glacier. |
terminus |
The terminus of the glacier. |
status |
The status of the glacier. For example, is the glacier receding. |
Wikilinks may be appropriate for some of the infobox fields.
Pushpin map
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=
|
Any non-blank value (1, yes, etc.) will cause the template to display the map specified in the map definition template as image1, which is usually a relief map; see the example at Location map+/relief. Other numerical values such as 2 or 3 will display image2 or image3, if those images are defined.
|
N/A |
|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 File:Blue pog.svg |
File:Blue 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 params
- Basic {{Infobox mapframe}} parameters:
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
- 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=. Default: coordinates from Wikidata d:Property:P625{{Coord|12.34|N|56.78|E}} - 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
yesto show all shape/line features from OpenStreetMap. Default: not specified
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
- Customise which features are displayed:
- mapframe-point – Turn off display of point feature by setting to
none. Force point marker to be displayed by setting toon. Default: not specified - mapframe-shape – Turn off display of shape feature by setting to
none. Force display of shape by setting toon. Use an inverse shape (geomask) instead of a regular shape by setting toinverse. Default: not specified - mapframe-line – Turn off display of line feature by setting to
none. Force display of line by setting toon. Default: not specified - mapframe-geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g.
P17for country (P17),P131for located in the administrative territorial entity (P131)). Default: not specified - mapframe-switcher – set to
autoorgeomasksorzoomsto enable Template:Switcher-style switching between multiple mapframes. Default: not specifiedauto– switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.geomasks– switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameterzooms– switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of3), "zoomed out" is1, and "zoomed midway" is the average
- mapframe-point – Turn off display of point feature by setting to
- Other optional parameters:
- mapframe-frame-width or mapframe-width – Frame width. Default: 270
- 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: natural
- Can also be set to
blankto override any default marker symbol
- Can also be set to
- 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: 8
- 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
TemplateData for Infobox glacier
TemplateData
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Infobox to summarize information about a glacier article
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
