Template:Mountain index row/doc

From MOASSpedia
Jump to navigation Jump to search

Usage

Every row in a mountain index article should call this template once.

Elevation in meters

{{Mountain index row
|Name    = <!-- Official name of the peak, without disambiguation -->
|Dab     = <!-- Disambiguator to distinguish peak, typically State or County,State. No parentheses -->
|GNIS    = <!-- GNIS number assigned by USGS, template takes care of link -->
|CGNDB   = <!-- Canadian database number for peak -->
|State   = <!-- Two-letter postal abbreviation -->
|Province= <!-- Full province name -->
|County  = <!-- Bare county name, no "County" or state -->
|Region  = <!-- If peak is not in a County, use this field instead (e.g., Alaska boroughs)
|Topo    =  <!-- Name of USGS topo map -->
|NTS     =  <!-- Name of National Topographic System (NTS) topo map -->
|Coord   =  <!-- {{coord|dd|mm|ss|N|dd|mm|ss|E|region:XX_type:mountain}} -->
|Elevation ft = <!-- Elevation in feet, as a plain unformatted number -->
<!-- OR -->
|Elevation m = <!-- Elevation in meters, as a plain unformatted number -->
<!-- END OR -->
|First   =  <!-- Set to 1 if this is the first row -->
|Last    =  <!-- Set to 1 if this is the last row  -->
}}

Examples

United States

{{Mountain index row|Name=Mount Lincoln|Dab=California|GNIS=262489|State=CA|County=Placer
   |Topo=Norden|Coord={{coord|39|17|16|N|120|19|41|W|}}|Elevation ft=8369|First=1}}
{{Mountain index row|Name=Mount Lincoln|Dab=Mesa County, Colorado|GNIS=174438|State=CO|County=Mesa
   |Topo=Cameo|Coord={{coord|39|08|09|N|108|21|09|W|}}|Elevation ft=6630}}
{{Mountain index row|Name=Mount Lincoln|Dab=Colorado|GNIS=179956|State=CO|County=Park
   |Topo=Alma|Coord={{coord|39|21|05|N|106|06|41|W|}}|Elevation ft=14265}}
{{Mountain index row|Name=Mount Lincoln|Dab=Massachusetts|GNIS=609176|State=MA|County=Hampshire
   |Topo=Belchertown|Coord={{coord|42|21|50|N|072|25|23|W|}}|Elevation ft=1230}}
{{Mountain index row|Name=Mount Lincoln|Dab=Nevada|GNIS=841648|State=NV|County=Churchill
   |Topo=Table Mountain|Coord={{coord|39|32|58|N|118|15|47|W|}}|Elevation ft=8566}}
{{Mountain index row|Name=Mount Lincoln|Dab=New Hampshire|GNIS=872176|State=NH|County=Grafton
   |Topo=Franconia|Coord={{coord|44|08|56|N|071|38|40|W|}}|Elevation ft=5085}}
{{Mountain index row|Name=Mount Lincoln|Dab=Oklahoma|GNIS=1102043|State=OK|County=Comanche
   |Topo=Quanah Mountain|Coord={{coord|34|42|45|N|098|43|17|W|}}|Elevation ft=2205}}
{{Mountain index row|Name=Mount Lincoln|Dab=Washington|GNIS=1522131|State=WA|County=Mason
   |Topo=Mount Skokomish|Coord={{coord|47|33|00|N|123|19|42|W|}}|Elevation ft=5764|Last=1}}

yields

NameUSGS linkStateCountyUSGS mapCoordinatesElevation
Mount Lincoln[1]CaliforniaPlacerNordenLua error: callParserFunction: function "#coordinates" was not found.8,369 ft2,551 m
Mount Lincoln[2]ColoradoMesaCameoLua error: callParserFunction: function "#coordinates" was not found.6,630 ft2,020 m
Mount Lincoln[3]ColoradoParkAlmaLua error: callParserFunction: function "#coordinates" was not found.14,265 ft4,348 m
Mount Lincoln[4]MassachusettsHampshireBelchertownLua error: callParserFunction: function "#coordinates" was not found.1,230 ft370 m
Mount Lincoln[5]NevadaChurchillTable MountainLua error: callParserFunction: function "#coordinates" was not found.8,566 ft2,611 m
Mount Lincoln[6]New HampshireGraftonFranconiaLua error: callParserFunction: function "#coordinates" was not found.5,085 ft1,550 m
Mount Lincoln[7]OklahomaComancheQuanah MountainLua error: callParserFunction: function "#coordinates" was not found.2,205 ft672 m
Mount Lincoln[8]WashingtonMasonMount SkokomishLua error: callParserFunction: function "#coordinates" was not found.5,764 ft1,757 m

Canada

{{Mountain index row|Name=Granite Peak|Dab=Purcell Mountains|CGNDB=JAWBE|Region=East Kootenay|Province=BC
   |NTS=082K07|Coord={{coord|50|27|00|N|116|35|00|W}}|First=1}}
{{Mountain index row|Name=Granite Peak|Dab=Pacific Ranges|CGNDB=JAWBF|Region=Bute Inlet|Province=BC
   |NTS=092K10|Coord={{coord|50|43|00|N|124|58|00|W}}|Last=1}}

yields

NameCGNDB linkProvinceRegionNTS mapCoordinates
Granite Peak[9]British ColumbiaEast Kootenay082K07Lua error: callParserFunction: function "#coordinates" was not found.
Granite Peak[10]British ColumbiaBute Inlet092K10Lua error: callParserFunction: function "#coordinates" was not found.

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.