Template:PoI

From Wikipedia, the free encyclopedia

[edit] Template documentation

Contents

[edit] Usage

This template creates a points of interest table row, with links to mapping resources using the latitude/longitude WGS84 coordinates system (in Great Britain, use {{PoIgb}} to also include OS Grid Refs). Please supply an accurate (but not over-precise) latitude and longitude as the 2nd and 3rd parameters.

Use {{PoI start}} as the table header row and {{PoI end}} for the footer.

The template uses {{coord}}; see that page for parameters.

Use {{PoIx}} if coordinates are missing.

[edit] Copyable code

Delete or overwrite parameters as appropriate

{{PoI start}}
{{PoI|nnnname|latitude|longitude|XX|note|display=inline,title}} 
{{PoIx|nnnname|note}}
{{PoI end}}

[edit] Parameters

  1. Name
  2. Latitude - use decimal value, negative for South
  3. Longitude - use decimal value, negative for West
  4. ISO country code (for coordinates' map link)
  5. Note- optional
  6. Display preference - optional, for coordinates; "display=inline" or "display=inline,title"; defaults to inline, which includes the coordinates in the table. Specify "display=inline,title" on only one of the rows if you want to also indicate coordinates for the whole article.

[edit] Example

{{PoI start}}
{{PoI|[[example|The first feature]]|52.4885|-2.0215|GB|A note about feature 1.}}
{{PoIx|Another feature|Details awaited}} 
{{PoI|Second feature|52.4962|-2.0090|GB|A note about the main feature|display=inline,title}} 
{{PoI end}}

Gives:


Point Coordinates
(links to map & photo sources)
Notes
The first feature 52°29′19″N 2°01′17″W / 52.4885, -2.0215 A note about feature 1.
Another feature Details awaited
Second feature 52°29′46″N 2°00′32″W / 52.4962, -2.0090Coordinates: 52°29′46″N 2°00′32″W / 52.4962, -2.0090 A note about the main feature


[edit] Microformat

The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

hCard uses HTML classes including:

  • "adr"
  • "county-name"
  • "fn"
  • "label"
  • "locality"
  • "nickname"
  • "note"
  • "org"
  • "region"
  • "street-address"
  • "vcard"

Geo is produced by calling {{coord}}, and uses HTML classes:

  • "geo"
  • "latitude"
  • "longitude"

Please do not rename or remove these classes.

When giving coordinates, please don't be overly precise.

[edit] Display options

Pages which use multiple instances of this template, can also use {{kml}} in their External links section, to offer a variety of ways of viewing or downloading the coordinates.