Template:Infobox glacier/doc: Difference between revisions
m (syntaxhighlight lang="wikitext") |
m (1 revision imported) |
(No difference)
|
Latest revision as of 03:03, 15 February 2024
File:Edit-copy green.svg | This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
File:Lua-Logo.svg | 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:{{{photo}}}|{{{photo_width}}}|alt={{{photo_alt}}}]] | |
Lua error in Module:Location_map at line 411: Malformed coordinates value. | |
Type | {{{type}}} |
Location | {{{location}}} |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found.{{{coords_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.
<syntaxhighlight lang="wikitext" style="overflow:auto;">
</syntaxhighlight>
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.
|
photo image_name |
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 and maximum value 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 220px. For example, photo_width=200 and not photo_width=200px .
|
photo_alt image_alt |
Alt text for the photo, for visually impaired readers. See WP:ALT. |
photo_caption |
The caption that will appear below the image if one is required. |
map |
The name of the location map to be displayed. See Map display methods. To use a static image, use |map_image=
|
map_image |
The file name of a static map image to be displayed. To use a location map, use |map= .
|
map_width map_size |
Can change the display width of the map. The default is 240px and the maximum width is 272px 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. |
map_relief |
When map_relief=0, turns off relief maps. This is functional only when a location map template is used to display a map. See below. |
label |
A text message that will be displayed next to the marker. |
label_position |
Specifies the position of a label with respect to the marker. If a label_position is specified and label is not defined then the value assigned name will be displayed.
|
mark |
The image to use for the marker. The default is File:Red pog.svg. See Template:Location map for more information. |
mark_width |
The display width of the marker image in pixels. The default is 8. |
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. |
coords 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.
|
coords_ref 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.
Map display methods
Display a marker on a map using a template and geographic coordinates
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.
- 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 | |
---|---|
Lua error in Module:Location_map at line 411: Malformed coordinates value. | |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
<syntaxhighlight lang="wikitext">
Four Corners, Canada | |
---|---|
Lua error in Module:Location_map at line 411: Malformed coordinates value. | |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
</syntaxhighlight>
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.
Using the {{Coord}} template for coordinates
Gannett Glacier | |
---|---|
File:Gannet Peak with Gannett Glacier.jpg | |
Type | Mountain glacier |
Location | Fremont County, Wyoming, USA |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
Area | 3.63 km2 (897 acres) (in 1999) |
Terminus | Moraine |
Status | Retreating |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Gannett Glacier | |
---|---|
File:Gannet Peak with Gannett Glacier.jpg | |
Type | Mountain glacier |
Location | Fremont County, Wyoming, USA |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
Area | 3.63 km2 (897 acres) (in 1999) |
Terminus | Moraine |
Status | Retreating |
</syntaxhighlight>
With a map
Eyjafjallajökull | |
---|---|
File:Eyjafjallajokull Gigjokull in ash.jpg | |
Lua error in Module:Location_map at line 411: Malformed coordinates value. | |
Location | Iceland |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
Area | 100 km2 (40 sq mi) |
Status | Most recently (as of May 2010) |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Eyjafjallajökull | |
---|---|
File:Eyjafjallajokull Gigjokull in ash.jpg | |
Lua error in Module:Location_map at line 411: Malformed coordinates value. | |
Location | Iceland |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
Area | 100 km2 (40 sq mi) |
Status | Most recently (as of May 2010) |
</syntaxhighlight>
Note that glaciers lying south of the equator and east of the Prime Meridian to the International Date Line will use "S" and "E" in their coordinates.
Microformat
The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.
If the place or venue has an "established", "founded", "opened" or similar date that is specific to the day, use {{start date}} unless the date is before 1583 CE. If it has a URL, use {{URL}}.
hCard uses HTML classes including:
- adr
- category
- country-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- street-address
- url
- vcard
Please do not rename or remove these classes nor collapse nested elements which use them.
Tracking category