Difference between revisions of "Template:Coord/dms2dec"
Jump to navigation
Jump to search
imported>WOSlinker (remove {{pp-template}}) |
imported>Frietjes |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{{# | + | <includeonly>{{#invoke:Coordinates|dms2dec|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}</includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 16:27, 27 March 2017
{{Coord/dms2dec}} converts cardinal direction and degree-minutes-seconds to decimal coordinate.
Usage
{{coord/dms2dec|direction|degrees|minutes|seconds}}
Examples
{{Coord/dms2dec|N|10|20|35.67}} |
10.3432417 |
{{Coord/dms2dec|N|10|20|35}} |
10.34306 |
{{Coord/dms2dec|N|10|20|30}} |
10.34167 |
{{Coord/dms2dec|E|10|25.39}} |
10.42317 |
{{Coord/dms2dec|E|10|25}} |
10.417 |
{{Coord/dms2dec|S|10|20}} |
-10.333 |
{{Coord/dms2dec|W|11.341666}} |
-11.341666 |
{{Coord/dms2dec|W|11.3416}} |
-11.3416 |
{{Coord/dms2dec|W|11.34}} |
-11.34 |
{{Coord/dms2dec|W|11}} |
-11 |
| The above documentation is transcluded from Template:Coord/dms2dec/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |