Template:Coord/doc

From Eamon Wiki
Jump to navigation Jump to search

The coord template adds geographic coordinates to a page, useful for representing the location of articles about real-world places. The coordinates normally appear in the upper right corner of the page and link to a Wikimedia tool called GeoHack with lots of map-viewing options.

Parameters

Latitude

The latitude of the location expressed in decimal, ideally with no more than about four to five decimal places. Use negative values for the southern hemisphere.

Longitude

The longitude of the location expressed in decimal, ideally with no more than about four to five decimal places. Use negative values for the western hemisphere.

Type and Dim

These parameters are optional: you can include neither, one, or both. "Type" indicates the class of the object whose coordinates you're listing, drawn from this list. "Dim" indicates the approximate diameter of the object in meters, used to set the default map scale. If including both, delimit them with an underscore.

For example, the coordinates for the annual KansasFest convention use type:event_dim:500.

Display

This parameter is also optional and controls how and where the coordinates are shown:

  • display=inline (the default) to display in the body of the article only,
  • display=title to display at the top of the article only, or
  • display=inline,title to display in both places.

Examples

Some example code:

  • {{Coord|48.8583|2.2945|type:landmark_dim:500}}: Coordinates for the Eiffel Tower, displayed inline.
  • {{Coord|37.3348|-122.0090|dim:1000|display=title}}: Coordinates for Apple headquarters, displayed near the title.

Some example pages with coordinates:

External links