Difference between revisions of "Template:Infobox mountain/sandbox/doc"

From blackwiki
Jump to navigation Jump to search
imported>Rehman
(→‎Standard usage: update full code)
imported>Rehman
m
Line 119: Line 119:
 
| access                = {{{access}}}
 
| access                = {{{access}}}
 
}}
 
}}
−
=== Full code ===
+
 
 
<pre style="width:30em;">
 
<pre style="width:30em;">
 
{{Infobox mountain/sandbox
 
{{Infobox mountain/sandbox

Revision as of 15:08, 9 May 2020

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}}}
{{{photo_alt}}}
{{{photo_caption}}}
Highest point
Peak{{{highest}}},
{{{highest_location}}}
ElevationScript error: No such module "If empty". {{{elevation_ref}}}
{{{elevation_system}}}
ProminenceScript error: No such module "If empty". {{{prominence_ref}}}
Parent peak{{{parent_peak}}}
IsolationScript error: No such module "If empty". {{{isolation_ref}}}
Listing{{{listing}}}
Peak coordinates{{{coordinates}}} {{{coordinates_ref}}}
Dimensions
LengthScript error: No such module "If empty". Script error: No such module "If empty". {{{length_ref}}}
WidthScript error: No such module "If empty". Script error: No such module "If empty". {{{width_ref}}}
AreaScript error: No such module "If empty". {{{area_ref}}}
VolumeScript error: No such module "If empty". {{{volume_ref}}}
Naming
Etymology{{{etymology}}}
Nickname{{{nickname}}}
Native nameTemplate:Native name
English translation{{{translation}}}
Pronunciation{{{pronunciation}}}
Defining authority{{{authority}}}
Geography
Location{{{location}}}
Script error: No such module "If empty".{{{country}}}
{{{state_type}}}{{{state}}}
{{{region_type}}}{{{region}}}
{{{district_type}}}{{{district}}}
{{{settlement_type}}}{{{settlement}}}
Range coordinates{{{range_coordinates}}} {{{range_coordinates_ref}}}
Parent range{{{parent}}}
Borders on{{{border}}}
{{{part_type}}}{{{part}}}
OS grid{{{grid_ref_UK}}}
OSI/OSNI gridTemplate:OS coord
Topo map{{{topo_maker}}} Script error: No such module "If empty".
Biome{{{biome}}}
Geology
Formed by{{{formed_by}}}
Orogeny{{{orogeny}}}
Age of rockScript error: No such module "If empty".
Mountain type{{{type}}}
Type of rock{{{geology}}}
Script error: No such module "If empty".
Last eruption{{{last_eruption}}}
Climbing
First ascent{{{first_ascent}}}
Easiest route{{{easiest_route}}}
Normal route{{{normal_route}}}
Access{{{access}}}


{{Infobox mountain/sandbox
| name                  = 
| other_name            = 
| photo                 = 
| photo_size            = 
| photo_alt             = 
| photo_caption         = 
<!-- MAP CODE TBA -->
<!----------------------- HIGHEST POINT -->
| highest               = 
| highest_location      = 
| elevation             = 
| elevation_m           = 
| elevation_ft          = 
| elevation_ref         = 
| elevation_system      = 
| prominence            = 
| prominence_m          = 
| prominence_ft         = 
| prominence_ref        = 
| isolation             = 
| isolation_m           = 
| isolation_ft          = 
| isolation_ref         = 
| parent_peak           = 
| listing               = 
| coordinates           = 
| coordinates_ref       = 
<!----------------------- DIMENSIONS -->
| length                = 
| length_km             = 
| length_mi             = 
| length_orientation    = 
| length_ref            = 
| width                 = 
| width_km              = 
| width_mi              = 
| width_orientation     = 
| width_ref             = 
| area                  = 
| area_km2              = 
| area_mi2              = 
| area_ref              = 
| volume                = 
| volume_km2            = 
| volume_mi2            = 
| volume_ref            = 
<!----------------------- NAMING -->
| etymology             = 
| nickname              = 
| native_name           = 
| native_name_lang      = 
| translation           = 
| pronunciation         = 
| authority             = 
<!----------------------- GEOGRAPHY -->
| location              = 
| country               = 
| country_type          = 
| state                 = 
| state_type            = 
| region                = 
| region_type           = 
| district              = 
| district_type         = 
| settlement            = 
| settlement_type       = 
| range_coordinates     = 
| range_coordinates_ref = 
| parent                = 
| border                = 
| part                  = 
| part_type             = 
| grid_ref_UK           = 
| grid_ref_UK_ref       = 
| grid_ref_Ireland      = 
| grid_ref_Ireland_ref  = 
| topo_maker            = 
| topo_map              = 
| biome                 = 
<!----------------------- GEOLOGY -->
| formed_by             = 
| orogeny               = 
| age                   = 
| type                  = 
| geology               = 
| volcanic_region       = 
| last_eruption         = 
<!----------------------- CLIMBING -->
| first_ascent          = 
| easiest_route         = 
| normal_route          = 
| access                = 
}}

Parameters

Parameter Default value Description Template:Tooltip
name Wikidata label in the local language 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 Template:Property stated on image Description of the photograph.
<maps> TBA TBA
highest Template:Property with qualifier Template:Property Name of highest summit of a single mountain or peak in the range 0
highest_location Template:Property with qualifier Template:Property Location of highest summit 0
elevation Template:Property Summit elevation. You may also use elevation_m or elevation_ft for auto conversion, and elevation_ref to add a suffix note. 0
elevation_system Template:Property with qualifier Template:Property The elevation reference system that defines the elevation, e.g., NAVD88 or DE-NHN 0
prominence Template:Property Topographic prominence. You may also use prominence_m or prominence_ft for auto conversion, and prominence_ref to add a suffix note. 0
isolation Template:Property You may also use isolation_m or isolation_ft for auto conversion, and isolation_ref to add a suffix note. 0
isolation_parent Template:Property with qualifier Template:Property Name of the landform the summit is isolated from. 0
parent_peak Template:Property   0
listing Template:Property Name of a relevant list of mountains that the peak belongs to. See List of mountain lists for examples.
coordinates Template:Property Coordinates. You may also use coordinates_ref to add a suffix note.
length Template:Property You may also use length_km or length_mi for auto conversion, and length_note to add a suffix note.
length_orientation Template:Property with qualifier Template:Property as:
Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q34027) (for EW) or Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q36477) (for NS)
Length orientation.
width Template:Property You may also use width_km or width_mi for auto conversion, and width_note to add a suffix note.
width_orientation Template:Property with qualifier Template:Property as:
Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q34027) (for EW) or Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q36477) (for NS)
Width orientation
height Template:Property You may also use height_km2 or height_mi2 for auto conversion, and height_note to add a suffix note.
volume Template:Property You may also use volume_km3 or volume_mi3 for auto conversion, and volume_note to add a suffix note.
etymology Template:Property Origin of name
nickname Template:Property  
native_name Template:Property 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 Template:Property with qualifier Template:Property Translation of name to English (if name is not an English name)
pronunciation Template:Property 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 Template:Property For multiple countries use country1 to country18. Use country_type for custom label
state   For multiple countries use state1 to state18. Use state_type for custom label
region Template:Property For multiple countries use region1 to region23. Use region_type for custom label
district   For multiple countries use district1 to district18. Use district_type for custom label
settlement   For multiple countries use settlement1 to settlement18. Use district_type for custom label
range_coordinates   Add range_coordinates_note to add a suffix note.
range Template:Property 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 Template:Property For multiple borders use border1 border8. Use district_type for custom label
grid_ref_UK Template:Property If the mountain is in Great Britain, the British grid reference. Use grid_ref_UK_note to add a suffix note.
grid_ref_Ireland Template:Property 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
qid    
suppressfields    
fetchwikidata    
onlysourced    
child    
embed    
embedded    
misc    
module    

Template Data

Click the [show] link to the right to display the TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Infobox mountain/sandbox

This template is used to create an infobox for an article about a mountain.

Template parameters

ParameterDescriptionTypeStatus
Namename

Name of the mountain, peak or hill. If more than one mountain by the name exists, the article is likely disambiguated but this name in the infobox should be the undisambiguated name. For example, Mount Columbia (for Mount Columbia (Canada) or Mount Columbia (Colorado).

Stringrequired
Other nameother_name

An alternate English name for the mountain, e.g., "Mount McKinley" for Denali. Quotes can be used as normal to italicize or bold the text if desired.

Stringoptional
Etymologyetymology

The etymology of the name

Stringoptional
Native namenative_name

The name of the mountain in the local language, if not English.

Stringoptional
ISO 639 language codenative_name_lang

The ISO 639 code for the language of the mountain name (if not English). e.g., "fr" for French

Stringoptional
Languagelanguage

Language of mountain name.

Stringoptional
Translationtranslation

Translation of the mountain's name into English

Stringoptional
Pronunciationpronunciation

Use an appropriate IPA-xx template, replacing 'xx' with the ISO code for the language. (See {{IPA-en}} for English.)

Stringoptional
Photophoto

Photograph of the mountain. Preferably a distance shot to show most/all of the mountain rather than a view from the summit. Do not include the "File:" prefix. If uploading a new image, please put them on Commons so they can be easily used by the other language Wikipedias. If the only image available is less than 280px wide, you can use the photo_size parameter to indicate its size.

Stringoptional
Photo altphoto_alt

Alt text for the photo, primarily for visually impaired readers. See Wikipedia:Alternative text for images.

Stringoptional
Photo captionphoto_caption

Description of the photograph which is displayed below. Include the month and year if known.

Stringoptional
Mapmap

The name of a location map as per Template:Location map (e.g. Indonesia or Russia). The coordinate fields position a pushpin coordinate marker and label on the map automatically. Example see: Mount Everest. For a static image, use map_image

Stringoptional
Mapmap_image

The file name of a static map image to be displayed. For a [[Template:location map|location map]], use map

Stringoptional
Map altmap_alt

Alt text for the map, primarily for visually impaired readers. See [[Wikipedia:Alternative text for images#Maps]].

Stringoptional
Map captionmap_caption

Fill out if a map caption is desired. If not specified, location will be used.

Stringoptional
Locationlocation

Province or state first, followed by country. For USA, the county is optional but if given, be provided before the state. If a pushpin map is being used, the location will be used for the map's caption unless the map_caption parameter is set.

Stringoptional
Map reliefmap_relief

If a location map template is specified, this template will attempt to display a relief map if one is available. To force the default map image to display set to 0.

Stringoptional
Labellabel

Label to be used for the mountain's location on the map. If not specified, the value of the name parameter is used.

Stringoptional
Label positionlabel_position

The position of the label on the pushpin map relative to the pushpin coordinate marker. Valid options are {left, right, top, bottom, none}.

Default
right
Lineoptional
Elevationelevation

Maximum height of the mountain. If the mountain has multiple high points, use the highest. Metres should be used first for all mountains outside of the United States and feet for those within the U.S. For conversions, use elevation_m for metres to feet or elevation_ft for feet to metres. This field is required.

Stringoptional
Elevation (meters)elevation_m

Maximum height of the mountain, metres.

Stringoptional
Elevation (feet)elevation_ft

Maximum height of the mountain, feet.

Stringoptional
Elevation refelevation_ref

Reference for the elevation using the standard <ref> </ref> tags. If elevation_m/elevation_ft was used, the reference must be supplied using this parameter.

Stringoptional
Prominenceprominence

The clean topographic prominence of the summit. For conversions, use prominence_m for metres to feet or prominence_ft for feet to metres.

Stringoptional
Prominence (meters)prominence_m

The clean topographic prominence of the summit, metres.

Stringoptional
Prominence (feet)prominence_ft

The clean topographic prominence of the summit, feet.

Stringoptional
Prominence refprominence_ref

Reference for the prominence using the standard <ref> </ref> tags.

Stringoptional
Parent peakparent_peak

In computation of prominence, peaks form a hierarchy: this is the parent of the peak in the hierarchy. For more information, see Line parent.

Stringoptional
Listinglisting

Name of a relevant list of mountains that the peak belongs to. See List of mountain lists for examples.

Stringoptional
Rangerange

Mountain range 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.

Stringoptional
Coordinatescoordinates coords

The latitude and longitude of the summit using the {{coord}} template with display=inline,title. If the article uses a geolinks template in the external links section, do not use the display parameter.

Stringoptional
Topotopo

Topographic map

Stringoptional
Grid ref (UK)grid_ref_UK

Ordnance Survey (UK) grid reference for the mountain, passed to {{gbm4ibx}}.

Stringoptional
Notes for grid_ref_UKgrid_ref_UK_note

Notes for grid_ref_UK, e.g., a citation.

Unknownoptional
Grid ref (Ireland)grid_ref_Ireland

Ordnance Survey(Ireland) grid reference for the mountain, passed to {{iem4ibx}}.

Stringoptional
Notes for grid_ref_Irelandgrid_ref_Ireland_note

Notes for grid_ref_Ireland, e.g., a citation.

Unknownoptional
Coordinate typecoord_type

Type, from [[Wikipedia:WikiProject Geographical coordinates/type:]].

Default
mountain
Stringoptional
Regionregion_code

Either a two character ISO 3166-1 alpha-2 country code or an ISO 3166-2 region code. See [[Wikipedia:COORD REGION]].

Lineoptional
Sourcesource

The source of the coordinate data. See [[Wikipedia:COORD SOURCE]].

Stringoptional
Formatformat

Format to display degrees in the coordinate listing. dms for degree, minutes, second output (the default), or dec for decimal degree output.

Default
dms
Lineoptional
Coordinates refcoordinates_ref

For any references regarding the coordinates reported. <ref> </ref> tags must be used.

Stringoptional
Typetype

The type of mountain — see List of mountain types.

Lineoptional
Ageage

Age of the rock. Geologic time scales may be useful here.

Lineoptional
Volcanic arcvolcanic_arc

If the mountain is a volcano, arc in which it is situated.

Stringoptional
Volcanic beltvolcanic_belt

If the mountain is a volcano, belt in which it is situated.

Stringoptional
Volcanic fieldvolcanic_field

If the mountain is a volcano, field in which it is situated.

Stringoptional
Volcanic arc/beltvolcanic_arc/belt

If the mountain is a volcano, arc/belt in which it is situated.

Stringoptional
Last eruptionlast_eruption

The date of the last eruption if the mountain is of volcanic origin. Only use Unknown if a verifiable source such as the Global Volcanism Program states it as such.

Stringoptional
First ascentfirst_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.

Stringoptional
Easiest routeeasiest_route

The easiest route to the summit. Some possibilities include Hike, Scramble or any of the YDS grades.

Stringoptional
Embeddedembedded

Another Infobox to place within the mountain infobox. The other infobox will show up at the end of the mountain infobox. The other infobox needs to have its "embed" or "child" parameter set to 1 or yes, as appropriate.

Stringoptional
Childchild

"yes" if the mountain infobox is embedded inside another Infobox

Lineoptional
Map widthmap_size map_width

Width of the map, in pixels. Must be entered as a number. The default value is 250.

Default
250
Numberoptional
Photo sizephoto_size

Width of the photo, if less than 280px.

Numberoptional

Sample Wikidata items

Tracking categories

Microformat

Template:UF-hcard-geo