Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Template Data  







2 See also  














Template:CoordDec






Boarisch

Slovenščina

Tiếng Vit
 

Edit links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


A version of the {{Coord}} template where the latitude and longitude are specified by signed decimal numbers. It has been designed to work well with the Visual Editor/TemplateData system.

Usage[edit]

{{CoordDec| ''decimal latitude'' | ''decimal longitude'' | display=inline,title}}

Example

{{CoordDec| -41.289 | 174.777 | display=inline}} gives 41°17′20S 174°46′37E / 41.289°S 174.777°E / -41.289; 174.777

No alternate set of parameter are available for this template. See {{CoordDMS}} for angles specified in degrees minutes and seconds, and {{CoordDM}} for when just degrees and minutes are specified.

These coordinates are in degrees and minutes.

Optional parameters are all named parameters in the form name=value

Optional geodata coordinates parameters, the old geohack format with colon and underscore is not supported

Thus: {{CoordDec | -41.289 | 174.777 | dim=30 | region=US-WI | type=event | display=inline,title | name=accident site}}

Use |display=title (or|display=inline,title) once per article, for the subject of the article, where appropriate.

Per WP:ORDER, the template is placed in articles after any navigation templates, but before any Defaultsort templates, or Categories.

Template Data[edit]

Encodes the latitude and longitude coordinates of a location specified in degrees and minutes, provides a link to map of the location.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Latitude1

The latitude in decimal format with negative for south eg -79.38. Avoid excessive precision, 0.01° is approximately 1k m and 0.0001° is approximately 10 m

Numberrequired
Longitude2

The longitude in decimal format, negative for west eg -79.38. Avoid excessive precision, 0.01° is approximately 1k m and 0.0001° is approximately 10 m

Numberrequired
Displaydisplay

Where it is displayed. Can be one of: 'inline' in the body of the article (default), 'title' at the top of the article or 'inline,title' both

Stringoptional
Namename

a label to place on maps (default is PAGENAME)

Stringoptional
Notesnotes

text displayed immediately following the coordinates

Stringoptional
Formatformat

How the coordinates are displayed, either 'dec' or 'dms'

Stringoptional
Dimdim

approximate size of the object (in meters) used to scale the map to fit.

Stringoptional
Scalescale

Scale of map display for this object, e.g. scale of 300 is 1:300. Gets converted into ''dim'' internally using formula ''dim = scale / 10''. If both scale and dim are set, dim has precedence.

Stringoptional
Globeglobe

earth by default, can be one of earth, mercury, venus, moon, mars, phobos, deimos, ganymede, callisto, io, europa, mimas, enceladus, tethys, dione, rhea, titan, hyperion, iapetus, phoebe, miranda, ariel, umbriel, titania, oberon, triton and pluto

Stringoptional
Regionregion

[[ISO 3166-1 alpha-2]] country code (e.g. ''US'' or ''RU'') or an [[ISO 3166-2]] region code (e.g. ''US-FL'' or ''RU-MOS''). This parameter is always capitalised internally.

Stringoptional
Typetype

type of object with these coordinates, can be one of the following: country, satellite, state, adm1st, adm2nd, adm3rd, city, isle, mountain, river, waterbody, event, forest, glacier, airport, railwaystation, edu, pass, camera, landmark.

Stringoptional

See also[edit]


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:CoordDec&oldid=899052857"

Categories: 
Lua-based templates
Coordinates templates
Hidden category: 
Pages using gadget WikiMiniAtlas
 



This page was last edited on 27 May 2019, at 15:50 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki