Template:Poi/doc

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with "<noinclude>__NOTOC__</noinclude>''POI'' stands for ''point of interest''. In a wiki article it denotes some geographic location like a city, port ...")
Line 26: Line 26:
Here the coordinates are defined by ''lat'' and ''lon'' parameters represented in decimal degrees (negative values denote either S or W hemispheres).
Here the coordinates are defined by ''lat'' and ''lon'' parameters represented in decimal degrees (negative values denote either S or W hemispheres).
-
A value of the ''type'' parameter should be one of: '''waypoint, berth, marina, anchorage, buoy''' (for mooring buoy field)''', officials, shopping, facilities, service, other''' ({{red| anything else?}}).
+
A value of the '''type''' parameter should be one of: ''waypoint, berth, anchorage, buoy ''(for mooring buoy field)'', officials, provisioning''(for grocery stores, markets and supermarkets)'', facilities, service, catering ''(for restaurants, caffes, eateries, etc.)''accomodation, beach, other''.
Note that the ''name'' parameter creates a 3rd level heading (<nowiki>===</nowiki>).
Note that the ''name'' parameter creates a 3rd level heading (<nowiki>===</nowiki>).

Revision as of 10:57, 3 February 2016

POI stands for point of interest. In a wiki article it denotes some geographic location like a city, port or an anchorage. Such a POI must have a name and a type, also it should have some geographic coordinates and a description text.

There are two styles in using this template.

Usage


Template:Coord style
{{poi |DD|M.M|N|DDD|M.M|E|
| type=
| name=
| text=
}}

Coordinates in this format are quite useful then Template:Coord locations are converted into Template:Poi and similar templates.

In this case the coordinates of a location are represented by 6 positional parameters. The first 3 parameters are: round number degrees of latitude, minutes of latitude, N or S for hemisphere. The further 3 parameters are the similar to the first group, but they denote the longitude part of a coordinate.

NB: Mind a vertical bar "|" at the end of coordinate parameters.

Lat, Lon style
{{poi | lat= | lon=
| type=
| name=
| text=
}}

Here the coordinates are defined by lat and lon parameters represented in decimal degrees (negative values denote either S or W hemispheres).

A value of the type parameter should be one of: waypoint, berth, anchorage, buoy (for mooring buoy field), officials, provisioning(for grocery stores, markets and supermarkets), facilities, service, catering (for restaurants, caffes, eateries, etc.)accomodation, beach, other.

Note that the name parameter creates a 3rd level heading (===).

Examples


Template:Coord style:

{{poi |41|14.633|N|009|08.904|E|
| type= anchorage
| name= Cala Spinosa
| text= A narrow bay W of Baia di Santa Reparata, good holding on sandy patches.
}}

Expands to:

Cala Spinosa

Cala Spinosa/wiki/Template:Poi/doc#Cala_Spinosa
Anchorage icon Cala Spinosa [[Template:Poi/doc#Cala Spinosa|Cala Spinosa]] 41°14.633′N, 009°08.904′E
A narrow bay W of Baia di Santa Reparata, good holding on sandy patches.

Lat, Lon style:

{{poi | lat=41.24875 | lon=9.2117833333333
| type=anchorage
| name=Porto quadro
| text=A smaller bay, closer to Santa Teresa Gallura, but unsuitable with W - NW winds. There is an ugly hotel complex on the shore.
}}

Gives:

Porto quadro

Porto quadro/wiki/Template:Poi/doc#Porto_quadro
Anchorage icon Porto quadro [[Template:Poi/doc#Porto quadro|Porto quadro]] 41°14.925'N, 009°12.707'E
A smaller bay, closer to Santa Teresa Gallura, but unsuitable with W - NW winds. There is an ugly hotel complex on the shore.
Personal tools
advertisement
Friends of Cruisers Wiki