Template:Infobox mountain/doc: Difference between revisions
meta>Rehman consolidate - more updates to follow |
meta>Jonesey95 Fix Linter errors |
||
Line 213: | Line 213: | ||
== Template Data == | == Template Data == | ||
{{Collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}} | {{Collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}} | ||
{{TemplateData header|nolink=1}} | {{TemplateData header|nolink=1}} | ||
<templatedata> | <templatedata> | ||
Line 558: | Line 555: | ||
} | } | ||
</templatedata>}} | </templatedata>}} | ||
{{collapse bottom}} | |||
== Sample Wikidata items == | == Sample Wikidata items == |
Revision as of 05:04, 30 March 2020
This template page is in the process of an expansion or major restructuring, and is not yet ready for use. You are welcome to assist in its construction by editing it as well. This template was placed by User:Rehman. If this template page has not been edited in several days, please remove this template. If you are the editor who added this template and you are actively editing, please be sure to replace this template with {{in use}} during the active editing session. Click on the link for template parameters to use.
This template was last edited by [[User:meta>Jonesey95|meta>Jonesey95]] ([[User talk:meta>Jonesey95|talk]] | [[Special:Contributions/meta>Jonesey95|contribs]]) 4 years ago. (Update timer) |
This is a documentation subpage for Template:Infobox mountain. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 28,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Wikidata-enabled
Simply add {{Infobox mountain}}
to the top of an article, and the data will be automatically included from Wikidata. If necessary, these values can be overridden by passing local values to the relevant parameters in the article:
{{Infobox mountain | name = [local value] }}
To add data to Wikidata, please see the Parameters section below.
Standard usage
{{{name}}} | |||
---|---|---|---|
{{{other_name}}} | |||
[[File:{{{photo}}}|{{{photo_size}}}|alt={{{photo_alt}}}|upright=1]] | |||
Highest point | |||
Elevation | {{{elevation}}} {{{elevation_ref}}} | ||
Prominence | {{{prominence}}} {{{prominence_ref}}} | ||
Parent peak | {{{parent_peak}}} | ||
Isolation | {{{isolation}}} to {{{isolation_parent}}} {{{isolation_ref}}} | ||
Listing | {{{listing}}} | ||
Coordinates | {{{coordinates}}} {{{coordinates_ref}}} | ||
Naming | |||
Etymology | {{{etymology}}} | ||
Native name | [{{{native_name}}}] Error: {{Native name}}: unrecognized language tag: {{{native_name_lang}}} (help) (language?) | ||
English translation | {{{translation}}} | ||
Pronunciation | {{{pronunciation}}} | ||
Geography | |||
[[File:{{{map_image}}}|{{{map_size}}}|alt={{{map_alt}}}|upright=1.16]] {{{map_caption}}}
| |||
Location | {{{location}}} | ||
Country | {{{country}}} | ||
State | {{{state}}} | ||
Region | {{{region}}} | ||
District | {{{district}}} | ||
Parent range | {{{range}}} | ||
OS grid |
| ||
OSI/OSNI grid |
| ||
Topo map | {{{topo}}} | ||
Geology | |||
Age of rock | {{{age}}} | ||
Mountain type | {{{type}}} | ||
Type of rock | {{{geology}}} | ||
Volcanic arc | {{{volcanic_arc}}} | ||
Last eruption | {{{last_eruption}}} | ||
Climbing | |||
First ascent | {{{first_ascent}}} | ||
Easiest route | {{{easiest_route}}} | ||
Normal route | {{{normal_route}}} | ||
Access | {{{access}}} | ||
{{{embedded}}} |
Without photo_size | |
---|---|
[[File:{{{photo}}}|300px|alt={{{photo_alt}}}|upright=1]] |
The following parameters can be used to create an infobox for a mountain, hill, massif, or a mountain or hill range. Please remove parameters that are unlikely to be useful.
{{Infobox mountain | name = {{subst:PAGENAME}} | other_name = | etymology = | native_name = | native_name_lang = | translation = | pronunciation = | photo = | photo_size = | photo_alt = | photo_caption = | map = | map_image = | map_alt = | map_caption = | map_relief = | map_size = | location = | label = | label_position = | elevation = | elevation_m = | elevation_ft = | elevation_ref = | prominence = | prominence_m = | prominence_ft = | prominence_ref = | isolation = | isolation_km = | isolation_mi = | isolation_ref = | parent_peak = | listing = | range = | coordinates = | coordinates_ref = | topo = | type = | age = | geology = | volcanic_arc = | volcanic_belt = | volcanic_field = | volcanic_arc/belt = | last_eruption = | first_ascent = | easiest_route = | normal_route = | access = | child = | embedded = }}
Parameters
Parameter | Default value | Description |
---|---|---|
name | Wikidata label in English | Name of the mountain, peak or hill. |
other_name | Other name for the mountain, if relatively well known. Quotes can be used as normal to italicize or bold the text if desired. Use native_name instead, if other name is in a different language from main name. Use {{lang}} to denote language if non-English.
| |
photo | Image on Wikidata | Photograph of the mountain. Preferably a distance shot to show most/all of the mountain rather than a view from the summit. |
photo_size | 300px | The image width in pixels. |
photo_alt | photo_caption |
Alt text for the photo. |
photo_caption | (P2096) stated on image | Description of the photograph. |
<maps> | TBA | TBA |
highest | (P2044) with qualifier (P2561) | Name of highest summit of a single mountain or peak in the range |
highest_location | (P2044) with qualifier (P276) | Location of highest summit |
elevation | (P2044) | Summit elevation. You may also use elevation_m or elevation_ft for auto conversion, and elevation_ref to add a suffix note.
|
elevation_system | (P2044) with qualifier (P459) | The elevation reference system that defines the elevation, e.g., NAVD88 or DE-NHN |
prominence | (P2660) | Topographic prominence. You may also use prominence_m or prominence_ft for auto conversion, and prominence_ref to add a suffix note.
|
isolation | (P2659) | You may also use isolation_m or isolation_ft for auto conversion, and isolation_ref to add a suffix note.
|
isolation_parent | ||
parent_peak | (P3137) | |
listing | (P361) | Name of a relevant list of mountains that the peak belongs to. See List of mountain lists for examples. |
coordinates | (P625) | Coordinates. You may also use coordinates_ref to add a suffix note.
|
length | (P2043) | You may also use length_km or length_mi for auto conversion, and length_note to add a suffix note.
|
length_orientation | (P2043) with qualifier (P7469) as: (Q34027) (for EW) or (Q36477) (for NS) |
Length orientation. |
width | (P2049) | You may also use width_km or width_mi for auto conversion, and width_note to add a suffix note.
|
width_orientation | (P2049) with qualifier (P7469) as: (Q34027) (for EW) or (Q36477) (for NS) |
Width orientation |
height | (P2046) | You may also use height_km2 or height_mi2 for auto conversion, and height_note to add a suffix note.
|
volume | (P2234) | You may also use volume_km3 or volume_mi3 for auto conversion, and volume_note to add a suffix note.
|
etymology | (P138) | Origin of name |
nickname | (P1449) | |
native_name | (P1559) | Name in local language. If more than one, separate using {{Plain list}} and {{native_name}}. ISO 639-2 code to be added to native_name_lang .
|
translation | (P1559) with qualifier (P2441) | Translation of name to English (if name is not an English name) |
pronunciation | (P898) | Use an appropriate IPA-xx template, replacing 'xx' with the ISO code for the language. (See {{IPA-en}} for English.) |
location | Free-form field describing location of range, similar to {{Infobox mountain}}. | |
country | (P17) | For multiple countries use country1 country18 . Use country_type for custom label
|
state | For multiple countries use state1 state18 . Use state_type for custom label
| |
region | (P131) | For multiple countries use state1 state18 . Use region_type for custom label
|
district | For multiple countries use district1 district18 . Use district_type for custom label
| |
district | For multiple countries use district1 district18 . Use district_type for custom label
| |
range_coordinates | Add range_coordinates_note to add a suffix note.
| |
range | (P4552) | Mountain range that the mountain/massif/range belongs to, if applicable. The specific range subgroup should be provided instead of any major mountain system unless there is no applicable subgroup. For example, use Teton Range and not Rocky Mountains, or Bernese Alps not Alps. |
border | (P47) | For multiple borders use border1 border8 . Use district_type for custom label
|
grid_ref_UK | (P613) | If the mountain is in Great Britain, the British grid reference. Use grid_ref_UK_note to add a suffix note.
|
grid_ref_Ireland | (P4091) | If the mountain is in Ireland (whether Northern Ireland or the Republic), the Irish grid reference. Use grid_ref_Ireland_note to add a suffix note.
|
topo_maker | The publisher of the topographic map that contains the range | |
topo | The name of the topographic map that contains the range | |
topo_map | ||
biome | Biome(s) for range | |
formed_by | ||
orogeny | ||
age | Age of the rock. Geologic time scales may be useful here. Use period , period1 through period5 for multiple values.
| |
type | ||
rock | Type of the rock mountain is made from. Use geology , geology1 through geology5 , for multiple types.
| |
volcanic_arc/belt | If the mountain is a volcano. Alternatives: volcanic_arc , volcanic_belt , volcanic_field
| |
last_eruption | The date of the last eruption if the mountain is of volcanic origin. | |
first_ascent | Date of the first ascent, if known. Typically, this is the first recorded ascent but not necessarily the first true ascent. If it is quite probable the peak/mountain was ascended by local people before then, a footnote should be added. | |
easiest_route | The easiest route to the summit. Some possibilities include Hike, Scramble or any of the YDS grades. | |
normal_route | ||
access |
Advanced uses
Parameter | Default value | Description |
---|---|---|
child | ||
embed | ||
embedded | ||
misc | ||
module |
Template Data
TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for this template in articles based on this TemplateData.
TemplateData for Infobox mountain This template is used to create an infobox for an article about a mountain.
|
Sample Wikidata items
Examples
A mountain infobox without a map
Mount Shasta | |
---|---|
Highest point | |
Elevation | 14,179 feet (4,322 m) |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
Geography | |
Location | California, USA |
Parent range | Cascades |
Topo map | USGS Mount Shasta |
Geology | |
Age of rock | Less than 593 ka |
Mountain type | Composite volcano |
Last eruption | 1786 |
Climbing | |
First ascent | 1854 by E.D. Pearce and party |
Easiest route | rock/ice |
{{Infobox mountain | name = Mount Shasta | photo = Mt Shasta from the northwest-750px.JPG | photo_size = <!-- omitted to display at user's default size --> | photo_alt = A large mountain rises in the distance over shrubs and trees, its peak covered with snow. | photo_caption = Mount Shasta and Shastina from the Butte Valley (North-East) | elevation = {{convert|14179|ft|m|0}} | location = [[California]], USA | range = [[Cascade Range|Cascades]] | prominence = | coordinates = {{coord|41|24|33|N|122|11|42|W|region:US-CA_type:mountain|display=inline<!--,title-->}} | topo = [[United States Geological Survey|USGS]] Mount Shasta | type = [[Composite volcano]] | age = Less than 593 [[kiloannum|ka]] | last_eruption = 1786 | first_ascent = 1854 by E. D. Pearce and party | easiest_route = rock/ice | listing = }}
A mountain infobox with a map
K2 | |
---|---|
Highest point | |
Elevation | 8,611 m (28,251 ft) |
Prominence | 4,017 m (13,179 ft) |
Listing | 2nd highest on Earth |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
Geography | |
Script error: No such module "Location map".
| |
Location | Taxkorgan Tajik Autonomous County, Xinjiang, China/ Gilgit-Baltistan, Pakistan |
Parent range | Karakoram |
Climbing | |
First ascent | July 1954 by Lacedelli and Compagnoni |
Easiest route | Rock, snow and ice climb |
{{Infobox mountain | name = K2 | photo = K2 2006b.jpg | photo_size = 400px <!-- if a size in pixels is specified, the image will not display any larger than 280px --> | photo_alt = A large angular white mountain, with steeply sloped sides mostly covered with snow. | photo_caption = K2 in Summer | elevation_m = 8611 | elevation_ref = | prominence_m = 4017 | listing = [[Eight-thousander|2nd highest on Earth]] | location = [[Taxkorgan Tajik Autonomous County]], [[Xinjiang]], China/[[Northern Areas, Pakistan]] | range = [[Karakoram]] | topo = | first_ascent = July 1954 by Lacedelli and Compagnoni | easiest_route = Rock, snow and ice climb | map = Pakistan | label_position = right | map_alt = K2 is located on the far northwest border of Pakistan, next to China | map_caption = Location on Pakistan/China border | map_size = 300 | coordinates = {{coord|35|52|57|N|76|30|48|E|type:mountain|display=inline<!--,title-->}} }}
Tracking categories
- Category:Pages using infobox mountain with unknown parameters (0)
- Category:No local image but image on Wikidata (0) – Used by this and other infoboxes (via Template:Wikidata image) to track articles where the infobox has no image but Wikidata has an image name. To exclude articles from this category, update the infobox to display an image or add
|nocat_wdimage=yes
.
Microformat
The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.
If it has a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
hCard uses HTML classes including:
- adr
- agent
- category
- county-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- region
- street-address
- uid
- url
- vcard
Geo is produced by calling {{coord}}, and uses HTML classes:
- geo
- latitude
- longitude
Please do not rename or remove these classes nor collapse nested elements which use them.
Precision
When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name=
parameter.