Template:Coordinates/doc: Difference between revisions

Template page
Content added Content deleted
(doc page created)
 
No edit summary
Line 3: Line 3:
This links directly to the Wikimedia Foundation Labs GeoHack mapping service. All that is required are decimal figures for Latitude N/W and Longitude S/E.
This links directly to the Wikimedia Foundation Labs GeoHack mapping service. All that is required are decimal figures for Latitude N/W and Longitude S/E.
==Example==
==Example==
Example: <code><nowiki>{{coordinates|{{PAGENAME}}|50.0505|N|2.6856|E}}</nowiki></code> which renders as {{coordinates|{{PAGENAME}}|50.0505|N|2.6856|E|°}}
Example: <code><nowiki>{{coordinates|{{PAGENAME}}|50.0505|N|2.6856|E}}</nowiki></code> which renders as {{coordinates|{{PAGENAME}}|50.0505|N|2.6856|E|°}}


*<code><nowiki>{{PAGENAME}}</nowiki></code> provides the name of the page in the link to the map page
*<code><nowiki>{{PAGENAME}}</nowiki></code> provides the name of the page in the link to the map page
*N/W = North and West (which only go with Latitude)
*N/W = North and West (which only go with Latitude)
*S/E = South and East (which only go with Longitude)
*S/E = South and East (which only go with Longitude)
*° is purely for aesthetics in the rendered output of the link for the decimal degrees


<!--Template categories here-->
<!--Template categories here-->

Revision as of 00:06, 2 April 2020

This is a documentation subpage for Template:Coordinates.
It contains usage information, categories and other content that is not part of the original template page.


Usage

This links directly to the Wikimedia Foundation Labs GeoHack mapping service. All that is required are decimal figures for Latitude N/W and Longitude S/E.

Example

Example: {{coordinates|{{PAGENAME}}|50.0505|N|2.6856|E}} which renders as Latitude: Coordinates/doc°50.0505 / Longitude: N°2.6856

  • {{PAGENAME}} provides the name of the page in the link to the map page
  • N/W = North and West (which only go with Latitude)
  • S/E = South and East (which only go with Longitude)


Cookies help us deliver our services. By using our services, you agree to our use of cookies.