Module talk:Coordinates/sandbox

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Examples[edit]

Functions:

  • deg2dms(degree, degree_precision, language)
  • {{#invoke:Coordinates/sandbox| deg2dms | 12.3456789}} will display "12° 20′ 44.44″"
  • {{#invoke:Coordinates/sandbox| deg2dms | 12.3456789 |1}} will display "12°"
  • {{#invoke:Coordinates/sandbox| deg2dms | 12.3456789 |1e-1}} will display "12° 21′"
  • {{#invoke:Coordinates/sandbox| deg2dms | 12.3456789 |1e-3}} will display "12° 20′ 44″"
  • {{#invoke:Coordinates/sandbox| deg2dms | 12.3456789 |1e-4}} will display "12° 20′ 44.4″"
  • {{#invoke:Coordinates/sandbox| deg2dms | 12.3456789 |1e-5}} will display "12° 20′ 44.44″"
  • lat_lon
  • {{#invoke:Coordinates/sandbox| lat_lon | lat=51.48 | lon=0}} will display "51° 28′ 48″ N, 0° 00′ 00″ E"
  • GeoHack_link
  • externalLinksSection
    {{#invoke:Coordinates/sandbox| externalLinksSection | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File}} displays "OpenStreetMap - Google Earth"
  • LocationTemplateCore
  • {{#invoke:Coordinates/sandbox| LocationTemplateCore | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File| attributes=elevation:10_heading:W | mode=camera | bare = 1| secondary=1}} displays "
    51° 28′ 48″ N, 0° 00′ 00″ E  Heading=270° Kartographer map based on OpenStreetMap.View this and other nearby images on: OpenStreetMap - Google Earthinfo
    "
  • {{#invoke:Coordinates/sandbox| LocationTemplateCore | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File| attributes=elevation:10_heading:W | mode=camera | bare = 0| secondary=1}} displays "
    Camera location51° 28′ 48″ N, 0° 00′ 00″ E  Heading=270° Kartographer map based on OpenStreetMap.View this and other nearby images on: OpenStreetMap - Google Earthinfo
    "
  • {{#invoke:Coordinates/sandbox| LocationTemplateCore | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File| attributes=elevation:10_heading:W | mode=camera | bare = 0}} displays
Camera location51° 28′ 48″ N, 0° 00′ 00″ E  Heading=270° Kartographer map based on OpenStreetMap.View this and other nearby images on: OpenStreetMap - Google Earthinfo
  • {{#invoke:Coordinates/sandbox| LocationTemplateCore | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File| attributes=elevation:10_heading:W | mode=camera | heading_style=north}} displays
Camera location51° 28′ 48″ N, 0° 00′ 00″ E  Heading=270° Kartographer map based on OpenStreetMap.View this and other nearby images on: OpenStreetMap - Google Earthinfo
  • {{#invoke:Coordinates/sandbox| LocationTemplateCore | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File| attributes=elevation:10_heading:W | mode=camera | link_style=icons}} displays
Camera location51° 28′ 48″ N, 0° 00′ 00″ E  Heading=270° Kartographer map based on OpenStreetMap.View this and other nearby images on: OpenStreetMap - Google Earthinfo

See testcases to see more examples.