Template:CoordinateDMS

From OpenStreetMap Wiki
(Redirected from Template:CoordinateHMS)
Jump to: navigation, search
[Edit] [Octicons-sync.svgpurge] Template-info.svg Template documentation

Usage

  • {{CoordinateDMS|-49.25}} gives: −49°15′00″.
  • {{CoordinateDMS|7.0017}} gives: +7°00′06″.
  • {{CoordinateDMS|-49.25|South|North}} gives: 49°15′00″ South.
  • {{CoordinateDMS|7.0017|West|East}} gives: 7°00′06″ East.
  • {{CoordinateDMS|-49.25|lang=ja}} gives: −49度15分00秒.
  • {{CoordinateDMS|7.0017|lang=ja}} gives: +7度00分06秒.
  • {{CoordinateDMS|-49.25|南緯|北緯|lang=ja}} gives: 南緯49度15分00秒.
  • {{CoordinateDMS|7.0017|西経|東経|lang=ja}} gives: 東経7度00分06秒.

Note:

The lang parameter is optional, otherwise it takes as default value the language code inferred from the current page (using {{Langcode}}).
For example, Japanese uses kanjis (instead of maths symbols, with space separators) for angle units, and displays the hemisphere before the angle units.
If you don't specify any hemisphere in parameters 2 and 3, a '+' or '−' will be prepended to the value in degrees (angular units for Japanese are still used if you specify the language parameter).

See also