Template:Poi/doc
From CruisersWiki
(→Type: attention) |
(lat/lon new style) |
||
Line 3: | Line 3: | ||
In a wiki article a POI 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. | In a wiki article a POI 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. | ||
- | |||
====Usage==== | ====Usage==== | ||
---- | ---- | ||
- | |||
<pre><nowiki>{{poi | <pre><nowiki>{{poi | ||
| lat= | lon= | | lat= | lon= | ||
Line 18: | Line 16: | ||
}}</nowiki></pre> | }}</nowiki></pre> | ||
- | + | The coordinates are defined by ''lat'' and ''lon'' parameters represented in decimal degrees (negative values denote either S or W hemispheres). Alternatively coordinates could be written in a ''compound'' form like: | |
- | + | ||
- | + | ||
<pre><nowiki>{{poi | <pre><nowiki>{{poi | ||
- | |DD | + | | lat= DD M.M N | lon= DDD M.M E |
| type= | | type= | ||
| name= | | name= | ||
Line 28: | Line 24: | ||
}}</nowiki></pre> | }}</nowiki></pre> | ||
- | Coordinates in this format are quite useful when [[Template:Coord]] locations are converted into [[Template:Poi]] and similar templates | + | where degrees, decimal minutes and hemisphere symbol (N, S, E, W) are separated by a single space. Coordinates in this format are quite useful when [[Template:Coord]] locations are converted into [[Template:Poi]] and similar templates. |
- | + | ||
- | + | ||
=====Type===== | =====Type===== | ||
Line 53: | Line 47: | ||
====Examples==== | ====Examples==== | ||
---- | ---- | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
<pre><nowiki> | <pre><nowiki> | ||
{{poi | {{poi | ||
- | |lat=41.23762|lon=9.1968 | + | | lat=41.23762| lon=9.1968 |
- | |type=berth | + | | type=berth |
- | |name=Lega Navale di Santa Teresa Gallura | + | | name=Lega Navale di Santa Teresa Gallura |
- | |url=http://www.leganavale.it/strutture/s_teresa_di_gallura/s_teresa_di_gallura | + | | url=http://www.leganavale.it/strutture/s_teresa_di_gallura/s_teresa_di_gallura |
- | |text= A private yacht club located at the small Eastern inlet just before the marina | + | | text= A private yacht club located at the small Eastern inlet just before the marina |
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 82: | Line 60: | ||
Gives: | Gives: | ||
{{poi | {{poi | ||
- | |lat=41.23762|lon=9.1968 | + | | lat=41.23762| lon=9.1968 |
- | |type=berth | + | | type=berth |
- | |name=Lega Navale di Santa Teresa Gallura | + | | name=Lega Navale di Santa Teresa Gallura |
- | |url=http://www.leganavale.it/strutture/s_teresa_di_gallura/s_teresa_di_gallura | + | | url=http://www.leganavale.it/strutture/s_teresa_di_gallura/s_teresa_di_gallura |
- | |text= A private yacht club located at the small Eastern inlet just before the marina | + | | text= A private yacht club located at the small Eastern inlet just before the marina |
}} | }} | ||
- | |||
<pre><nowiki> | <pre><nowiki> | ||
- | {{poi| lat=41.18005|lon=9.3881|zoom=15 | + | {{poi| lat=41.18005| lon=9.3881| zoom=15 |
| type=buoy | | type=buoy | ||
| name=Palau buoy field | | name=Palau buoy field | ||
Line 100: | Line 77: | ||
Produces: | Produces: | ||
- | {{poi| lat=41.18005|lon=9.3881|zoom=15 | + | {{poi| lat=41.18005| lon=9.3881| zoom=15 |
| type=buoy | | type=buoy | ||
| name=Palau buoy field | | name=Palau buoy field | ||
Line 108: | Line 85: | ||
}} | }} | ||
- | |||
- | |||
<pre><nowiki> | <pre><nowiki> | ||
{{Poi | lat=37.12665 | lon=26.85269 | type= harbour | {{Poi | lat=37.12665 | lon=26.85269 | type= harbour | ||
- | |name= Lakki |altname= Λακκί | zoom= 15 | + | | name= Lakki |altname= Λακκί | zoom= 15 |
| portofentry= Yes | | portofentry= Yes | ||
| image= Greece_Leros_Lakki_m.jpg | | image= Greece_Leros_Lakki_m.jpg | ||
Line 122: | Line 97: | ||
Gives: | Gives: | ||
{{Poi | lat=37.12665 | lon=26.85269 | type= harbour | {{Poi | lat=37.12665 | lon=26.85269 | type= harbour | ||
- | |name= Lakki |altname= Λακκί | zoom= 15 | + | | name= Lakki |altname= Λακκί | zoom= 15 |
| portofentry= Yes | | portofentry= Yes | ||
| image= Greece_Leros_Lakki_m.jpg | | image= Greece_Leros_Lakki_m.jpg | ||
Line 128: | Line 103: | ||
| imagewidth= 300px | | imagewidth= 300px | ||
| text= This is the main harbor of the island. It is located on the W side of the island. [http://www.hri.org/infoxenios/english/dodecanese/leros/towns.html#Laki Lakki] is a deep inlet and it is the largest harbor of the Dodecanese, affording all-round protection. On the NW side of the harbor there is small [[Agmar_Lakki_Marina|marina]] operated by [http://www.agmar.gr/ ''Agmar'']. ''See [[Agmar Lakki Marina]]''. | | text= This is the main harbor of the island. It is located on the W side of the island. [http://www.hri.org/infoxenios/english/dodecanese/leros/towns.html#Laki Lakki] is a deep inlet and it is the largest harbor of the Dodecanese, affording all-round protection. On the NW side of the harbor there is small [[Agmar_Lakki_Marina|marina]] operated by [http://www.agmar.gr/ ''Agmar'']. ''See [[Agmar Lakki Marina]]''. | ||
+ | }} | ||
+ | |||
+ | |||
+ | ... and ''compound'' style: | ||
+ | |||
+ | <pre><nowiki>{{poi | ||
+ | | lat = 41 14.633 N | lon= 009 08.904 E | ||
+ | | type= anchorage | ||
+ | | name= Cala Spinosa | ||
+ | | text= A narrow bay W of Baia di Santa Reparata, good holding on sandy patches. | ||
+ | }}</nowiki></pre> | ||
+ | |||
+ | Expands to: | ||
+ | {{poi | ||
+ | | lat = 41 14.633 N | lon= 009 08.904 E | ||
+ | | type= anchorage | ||
+ | | name= Cala Spinosa | ||
+ | | text= A narrow bay W of Baia di Santa Reparata, good holding on sandy patches. | ||
}} | }} | ||
[[Category:Templates|Poi/doc]] | [[Category:Templates|Poi/doc]] |
Revision as of 15:57, 17 January 2017
This template is used to list POIs (POI stands for point of interest).
In a wiki article a POI 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.
Usage
{{poi | lat= | lon= | portofentry= | type= | name= | image= | imagetext= | imagewidth= | text= }}
The coordinates are defined by lat and lon parameters represented in decimal degrees (negative values denote either S or W hemispheres). Alternatively coordinates could be written in a compound form like:
{{poi | lat= DD M.M N | lon= DDD M.M E | type= | name= | text= }}
where degrees, decimal minutes and hemisphere symbol (N, S, E, W) are separated by a single space. Coordinates in this format are quite useful when Template:Coord locations are converted into Template:Poi and similar templates.
Type
A value of the type parameter should be one of:
- anchorage
- berth (for marinas and other moorings at harbour quays, piers, etc.)
- buoy (for mooring buoys)
- provisions (for grocery stores, markets and supermarkets)
- chandler (for yacht's stores)
- eatingout (for restaurants, caffes, eateries, etc.)
- officials
- facilities
- fuel
- service
- accommodation
- beach
- waypoint
- danger
- attention
- other
Examples
{{poi | lat=41.23762| lon=9.1968 | type=berth | name=Lega Navale di Santa Teresa Gallura | url=http://www.leganavale.it/strutture/s_teresa_di_gallura/s_teresa_di_gallura | text= A private yacht club located at the small Eastern inlet just before the marina }}
Gives:
{{poi| lat=41.18005| lon=9.3881| zoom=15 | type=buoy | name=Palau buoy field | text=Just SE entrance to the marina. When the marina is full the yachts are sent to moor there. {{Note}} anchorage in the bay is not allowed. The buoy field is operated by the marina. A dinghy doc is located at the port side of the entrance to the marina. }}
Produces:
Palau buoy field
Just SE entrance to the marina. When the marina is full the yachts are sent to moor there. Note: anchorage in the bay is not allowed.
The buoy field is operated by the marina. A dinghy doc is located at the port side of the entrance to the marina.{{Poi | lat=37.12665 | lon=26.85269 | type= harbour | name= Lakki |altname= Λακκί | zoom= 15 | portofentry= Yes | image= Greece_Leros_Lakki_m.jpg | imagetext= Chart of Lakki Harbor | imagewidth= 300px | text= This is the main harbor of the island. It is located on the W side of the island. [http://www.hri.org/infoxenios/english/dodecanese/leros/towns.html#Laki Lakki] is a deep inlet and it is the largest harbor of the Dodecanese, affording all-round protection. On the NW side of the harbor there is small [[Agmar_Lakki_Marina|marina]] operated by [http://www.agmar.gr/ ''Agmar'']. ''See [[Agmar Lakki Marina]]''. }}
Gives:
Lakki
... and compound style:
{{poi | lat = 41 14.633 N | lon= 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: