Module talk:Coordinates/sandbox

From Wikimedia Commons, the free media repository
Jump to: navigation, 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"
  • {{#invoke:Coordinates/sandbox| externalLinksSection | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=Category}} displays "OpenStreetMap - Google Earth - Proximityrama"
  • {{#invoke:Coordinates/sandbox| externalLinksSection | globe = Earth| lat=51.48 | lon=0 | lang=ru | namespace=Category}} displays "OpenStreetMap - Google Планете Земля - Proximityrama"
  • {{#invoke:Coordinates/sandbox| externalLinksSection | globe = Mars| lat=51.48 | lon=0 | lang=en | namespace=File}} displays "Google Maps"
  • {{#invoke:Coordinates/sandbox| externalLinksSection | globe = Moon| lat=51.48 | lon=0 | lang=en | namespace=File}} displays "Google Maps"
  • 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  270° View this and other nearby images on: OpenStreetMap - Google Earth info
    "
  • {{#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 location 51° 28′ 48″ N, 0° 00′ 00″ E  270° View this and other nearby images on: OpenStreetMap - Google Earth info
    "
  • {{#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 location 51° 28′ 48″ N, 0° 00′ 00″ E  270° View this and other nearby images on: OpenStreetMap - Google Earth info
  • {{#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 location 51° 28′ 48″ N, 0° 00′ 00″ E  270° View this and other nearby images on: OpenStreetMap - Google Earth info
  • {{#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 location 51° 28′ 48″ N, 0° 00′ 00″ E  270° View this and other nearby images on: OpenStreetMap - Google Earth info

See testcases to see more examples.