Template:Infobox landform: Difference between revisions
Jump to navigation
Jump to search
w>Hike395 (add more dimensions to compute zoom) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 07:40, 21 November 2024
This template uses Lua: |
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
The Template:Infobox landform formats a right-side infobox to be used in articles about geological features for which no other infobox exists.
Usage
{{{name}}}
{{{native_name}}} {{{other_name}}} | |
---|---|
{{{type}}} | |
[[File:{{{photo}}}|{{{photo_width}}}|alt={{{photo_alt}}}|{{{photo_caption}}}]] | |
Coordinates: {{{coordinates}}}{{{coords_ref}}} | |
Grid position | {{{grid_ref_UK}}} |
Location | {{{location}}} |
Range | {{{range}}} |
Part of | {{{part_of}}} |
Offshore water bodies | {{{water_bodies}}} |
Age | {{{age}}} |
Formed by | {{{formed_by}}} |
Orogeny | {{{orogeny}}} |
Geology | {{{geology}}} |
Etymology | {{{etymology}}} |
Nickname | {{{nickname}}} |
Native name | {{{native_name}}} Error {{native name checker}}: parameter value is malformed (help) |
Defining authority | {{{authority}}} |
Operator | {{{operator}}} |
Area | |
• Total | {{{area}}} |
Dimensions | |
• Length | {{{length}}} |
• Width | {{{width}}} |
• Depth | {{{depth}}} |
• Drop | {{{drop}}} |
• Height | {{{height}}} |
Elevation | {{{elevation_m}}} m ({{{elevation_ft}}} ft) {{{elevation_ref}}} |
Highest elevation | {{{highest_elevation}}} ({{{highest_point}}}) |
Surface elevation | {{{surface_elevation_m}}} m ({{{surface_elevation_ft}}} ft) {{{surface_elevation_ref}}} |
Volcanic arc/belt | {{{volcanic_arc/belt}}} |
Last eruption | {{{eruption}}} |
Topo map | {{{topo}}} |
Designation | {{{designation}}} |
{{{free_label_1}}} | {{{free_data_1}}} |
{{{free_label_2}}} | {{{free_data_2}}} |
{{{free_label_3}}} | {{{free_data_3}}} |
Website | {{{website}}} |
{{{embedded}}} |
<syntaxhighlight lang="wikitext" style="overflow:auto;">
Infobox landform | |
---|---|
Lua error in Module:Infobox_mapframe at line 164: attempt to index field 'wikibase' (a nil value). |
</syntaxhighlight>
<syntaxhighlight lang="wikitext" style="overflow:auto;">
Infobox landform | |
---|---|
Lua error in Module:Infobox_mapframe at line 164: attempt to index field 'wikibase' (a nil value). |
</syntaxhighlight>
Parameters
Parameter | Default value | Description |
---|---|---|
Lead section | ||
water | Assigning any value to this parameter will generate a blue header. Only articles about features that are predominantly water, such as maars and whirlpools, should use this option. The default is brown. | |
name | Wikidata label in the local language | Name of the landform. |
native_name | (P1559) | Name in local language – use {{native name}} or, for multiple names, use {{native name list}} |
other_name | Other name for the landform. See native_name if the name is in a different language.
| |
type | What type of landform the feature is. Required in order to generate a header. | |
Image and map | ||
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_width | 280px | The default image width in pixels. |
photo_alt | photo_caption |
Alt text for the photo. |
photo_caption | (P2096) stated on image | Description of the photograph. |
map | The name of a location map as per Template:Location map (e.g. Indonesia or Russia). The coordinates template ({{coord}}) positions a pushpin marker and label on the map automatically. Example see: Mount Everest. | |
map_width | 280px | |
map_caption | location |
Fill out if a map caption is desired. |
map_alt | Alt text for the map, primarily for visually impaired readers. See Alt text for maps. | |
map_relief | Any non-blank value will use the alternate map (typically a relief map) if the chosen location map has one | |
label | name |
Label given to the landform on the location map |
label_position | right | Location of the label in relation to the specific mark |
mark | ||
marker_size | ||
mapframe | on by default when no other maps present | Add a {{infobox mapframe}} map. See the documentation below in #Mapframe maps for more details on usage. |
coordinates | (P625) | Coordinates of the landform. |
coords_ref | N/A | Optional parameter to add a suffix to the coordinates parameter (such as a reference).
|
Location | ||
location | (P276) | Free-form field to describe the location. |
grid_ref | ||
grid_ref_UK | (P613) | If the landform is in Great Britain, the British grid reference. Use grid_ref_UK_ref to add a suffix reference.
|
grid_ref_Ireland | (P4091) | If the landform is in Ireland (whether Northern Ireland or the Republic), the Irish grid reference. Use grid_ref_Ireland_ref to add a suffix reference.
|
range | (P4552) | The mountain range that the landform is in. Note that this should be the specific subgroup (eg. Bernese Alps, not Alps). |
part_of | Group of relevant landforms the feature is a part of. | |
water_bodies | Any bodies of water the landform is associated with (eg. the Strait of Dover for the White Cliffs of Dover). | |
Geology | ||
age | Age of the rock. Geologic time scales may be useful here. | |
formed_by | Processes which led to the formation of the landform | |
orogeny | ||
geology | ||
Naming | ||
etymology | Origin of name | |
nickname | ||
authority | The authority which is responsible for the official naming of the landform | |
Operator | ||
operator | ||
Area | ||
area | (P2046) | Footprint of the mountain or peak, without auto-conversion. You may wish to use {{Convert|xxx|km2|mi2|abbr=on}}
|
area_km2 | Footprint of the mountain or peak in square kilometres, with auto-conversion. | |
area_mi2 | Footprint of the mountain or peak in square miles, with auto-conversion. | |
area_ref | N/A | Optional parameter to add a suffix to the area parameters (such as a reference).
|
Dimensions | ||
length | (P2043) | Length of the landform, without auto-conversion. You may wish to use {{Convert|xxx|km|mi|abbr=on}}
|
length_km | Length in kilometres, with auto-conversion. | |
length_mi | Length in miles, with auto-conversion. | |
length_ref | N/A | Optional parameter to add a suffix to the length parameters (such as a reference).
|
width | (P2049) | Width of thelandform, without auto-conversion. You may wish to use {{Convert|xxx|km|mi|abbr=on}}
|
width_km | Length in kilometres, with auto-conversion. | |
width_mi | Length in miles, with auto-conversion. | |
width_ref | N/A | Optional parameter to add a suffix to the width parameters (such as a reference).
|
depth_km | Depth of the landform in kilometres, with auto-conversion. | |
depth_mi | Depth in miles, with auto-conversion. | |
drop_km | Drop in kilometres, with auto-conversion. | |
drop_mi | Drop in miles, with auto-conversion. | |
height_m | Height of landform (bottom to top) in meters, with auto-conversion. | |
height_ft | Height of landform (bottom to top) in feet, with auto-conversion. | |
Elevation | ||
elevation | (P2044) | Elevation, without auto-conversion. You may wish to use {{Convert|xxx|m|ft|abbr=on}}
|
elevation_m | Elevation in metres, with auto-conversion. | |
elevation_ft | Elevation in feet, with auto-conversion. | |
elevation_ref | N/A | Optional parameter to add a suffix to the elevation parameters (such as a reference).
|
surface_elevation | (P2044) | Surface elevation, without auto-conversion. You may wish to use {{Convert|xxx|m|ft|abbr=on}}
|
surface_elevation_m | Surface elevation in metres, with auto-conversion. | |
surface_elevation_ft | Surface elevation in feet, with auto-conversion. | |
surface_elevation_ref | N/A | Optional parameter to add a suffix to the elevation parameters (such as a reference).
|
highest_point | Name or location of the highest point of the landform | |
highest_elevation | Elevation of the highest point | |
highest_coords | Coordinates of the highest point | |
Volcanism | ||
volcanic_arc/belt volcanic_arc volcanic_belt volcanic_field |
If the landform is a volcano, the arc, belt or field in which it is situated. Subsequent tags cause a more specific label to appear instead of the catch-all label. | |
eruption last_eruption |
The date of the last eruption if the landform is of volcanic origin. | |
Other | ||
topo | The name of the topographic map that contains the landform | |
Designation | Any designation the landform has, such as a protected area. | |
free_label_1 free_label_2 free_label_3 |
Additional tags that can be customised to add further content to the infobox. Provides the label on the left hand side of the infobox for the corresponding free_data_#
| |
free_data_1 free_data_2 free_data_3 |
Additional tags that can be customised to add further content to the infobox. Provides the data on the right hand side of the infobox for the corresponding free_label_#
| |
website | Any website of the landform. | |
embedded | Provides the ability to embed another infobox, such as Template:Infobox protected area, if relevant. |
Mapframe maps
- Basic parameters:
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: Enabled (onByDefault) if none of the other map parameters are present:
|pushpin_map=
,|map=
,|map_image=
- 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, the subsequent 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-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{{Coord|12.34|N|56.78|E}}
- mapframe-wikidata – Set to <syntaxhighlight lang="text" class="" style="" inline="1">yes</syntaxhighlight> to show shape/line features from the wikidata item, if any, when
|coord=
is set. Default: not specified
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: Enabled (onByDefault) if none of the other map parameters are present:
- Customise which features are displayed:
- mapframe-shape – Turn off display of shape feature by setting to <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. Use an inverse shape (geomask) instead of a regular shape by setting to <syntaxhighlight lang="text" class="" style="" inline="1">inverse</syntaxhighlight>. Default: not specified
- mapframe-point – Turn off display of point feature by setting to <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. Force point marker to be displayed by setting to <syntaxhighlight lang="text" class="" style="" inline="1">on</syntaxhighlight>. Default: not specified
- mapframe-line – Turn off display of line feature by setting to <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. 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.
P17
for Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P17),P131
for Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P131)). Default: not specified - mapframe-switcher – set to <syntaxhighlight lang="text" class="" style="" inline="1">auto</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">geomasks</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">zooms</syntaxhighlight> to enable Template:Switcher-style switching between multiple mapframes. Default: not specified
- <syntaxhighlight lang="text" class="" style="" inline="1">auto</syntaxhighlight> – switch geomasks found in Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P276) and Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (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.
- <syntaxhighlight lang="text" class="" style="" inline="1">geomasks</syntaxhighlight> – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter
- <syntaxhighlight lang="text" class="" style="" inline="1">zooms</syntaxhighlight> – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of <syntaxhighlight lang="text" class="" style="" inline="1">3</syntaxhighlight>), "zoomed out" is <syntaxhighlight lang="text" class="" style="" inline="1">1</syntaxhighlight>, and "zoomed midway" is the average
- 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.5
- mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
- mapframe-stroke-width – Width of line features, and outlines of shape features; default is "5". 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 <syntaxhighlight lang="text" class="" style="" inline="1">blank</syntaxhighlight> 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: 2
- 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.5
- 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
- mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
Example
Waterloo Bay | |
---|---|
Lua error in Module:Location_map at line 411: Malformed coordinates value. | |
Coordinates: Lua error: callParserFunction: function "#coordinates" was not found. | |
Grid position | D408037 |
Location | County Antrim, Northern Ireland |
Age | Jurassic, Triassic |
Elevation | 0 m |
Topo map | OSNI Discoverer 9 |
<syntaxhighlight lang="wikitext" style="overflow:auto;">
Waterloo Bay | |
---|---|
Lua error in Module:Location_map at line 411: Malformed coordinates value. | |
Coordinates: Lua error in Module:Coordinates at line 489: attempt to index field 'wikibase' (a nil value). | |
Grid position | D408037 |
Location | County Antrim, Northern Ireland |
Age | Jurassic, Triassic |
Elevation | 0 m |
Topo map | OSNI Discoverer 9 |
</syntaxhighlight>
Tracking categories
- Category:Pages using infobox landform with unknown parameters (0)
- Category:Pages using Infobox landform with no type (0)