Template:Poi/doc

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(Added missing options)
m (Type: Added harbour, alphabetical)
 
(12 intermediate revisions not shown)
Line 1: Line 1:
-
<p><span class="fck_mw_noinclude" _fck_mw_customtag="true" _fck_mw_tagname="noinclude">__NOTOC__</span>This template is used to list POIs (<i>POI</i> stands for <a href="http://en.wikipedia.org/wiki/Point_of_interest" class="extiw" title="wikipedia:Point of interest"><i>point of interest</i></a>).
+
<noinclude>__NOTOC__</noinclude>This template is used to list POIs (''POI'' stands for [[wikipedia:Point of interest|''point of interest'']]).
-
</p><p>In a wiki article a POI denotes some geographic location like a city, port or an anchorage. Such a POI <i>must</i> have a name and a type, also it <i>should</i> have some geographic coordinates and a description text.
+
 
-
</p><p>There are two styles in using this template.
+
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.
-
</p>
+
 
-
<h4>Usage</h4>
+
====Usage====
-
<hr />
+
----
-
<h5>Lat, Lon style</h5>
+
<pre><nowiki>{{poi  
-
<pre>{{poi  
+
| lat= | lon=
| lat= | lon=
 +
| portofentry=
| type=
| type=
| name=
| name=
 +
| image=
 +
| imagetext=
 +
| imagewidth=
| text=
| text=
-
}}</pre>
+
}}</nowiki></pre>
-
<p>Here the coordinates are defined by <i>lat</i> and <i>lon</i> parameters represented in decimal degrees (negative values denote either S or W hemispheres).
+
 
-
</p>
+
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:
-
<h5>DD°M.M'H style</h5>
+
<pre><nowiki>{{poi  
-
<pre>{{poi  
+
| lat= DD.dd | lon= DDD.dd
-
|DD|M.M|N|DDD|M.M|E
+
| type=
| type=
| name=
| name=
| text=
| text=
-
}}</pre>
+
}}</nowiki></pre>
-
<p>Coordinates in this format are quite useful then <a _fcknotitle="true" href="Template:Coord">Template:Coord</a> locations are converted into <a _fcknotitle="true" href="Template:Poi">Template:Poi</a> and similar templates.
+
 
-
</p><p>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.
+
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.
-
</p>
+
 
-
<h5>Type</h5>
+
=====Type=====
-
<p>A value of the <i>type</i> parameter should be one of:
+
A value of the ''type'' parameter should be one of:
-
</p>
+
* anchorage
-
<ul><li> anchorage
+
* accommodation
-
</li><li> harbour
+
* attention
-
</li><li> berth <i>(for marinas and other moorings at harbour quays, piers, etc.)</i>
+
* beach
-
</li><li> buoy <i>(for mooring buoys)</i>
+
* berth ''(for marinas and other moorings at harbour quays, piers, etc.)''
-
</li><li> provisioning <i>(for grocery stores, markets and supermarkets)</i>
+
* buoy ''(for mooring buoys)''
-
</li><li> chandler <i>(for yacht's stores)</i>
+
* chandler ''(for yacht's stores)''
-
</li><li> eatingout <i>(for restaurants, caffes, eateries, etc.)</i>
+
* danger
-
</li><li> officials
+
* eatingout ''(for restaurants, caffes, eateries, etc.)''
-
</li><li> facilities
+
* facilities  
-
</li><li> service
+
* fuel
-
</li><li> accommodation
+
* harbour
-
</li><li> beach
+
* provisions ''(for grocery stores, markets and supermarkets)''
-
</li><li> waypoint
+
* officials
-
</li><li> waterway-canal
+
* service
-
</li><li> other
+
* waypoint
-
</li></ul>
+
* other
-
<h4>Examples</h4>
+
 
-
<hr />
+
====Examples====
-
<p><b><a _fcknotitle="true" href="Template:Coord">Template:Coord</a> style:</b>
+
----
-
</p>
+
 
-
<pre>{{poi
+
<pre><nowiki>
-
|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.
+
-
}}</pre>
+
-
<p>Expands to:
+
-
<span class="fck_mw_template">{{poifckLR|41|14.633|N|009|08.904|EfckLR| type= anchoragefckLR| name= Cala SpinosafckLR| text= A narrow bay W of Baia di Santa Reparata, good holding on sandy patches.fckLR}}</span>
+
-
</p><p><b>Lat, Lon style:</b>
+
-
</p>
+
-
<pre>
+
{{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>
-
<p>Gives:
+
 
-
<span class="fck_mw_template">{{poifckLR|lat=41.23762|lon=9.1968fckLR|type=berthfckLR|name=Lega Navale di Santa Teresa GallurafckLR|url=http://www.leganavale.it/strutture/s_teresa_di_gallura/s_teresa_di_gallurafckLR|text= A private yacht club located at the small Eastern inlet just before the marinafckLR}}</span>
+
Gives:
-
</p><p><br />
+
{{poi
-
, and:
+
| lat=41.23762| lon=9.1968
-
</p>
+
| type=berth
-
<pre>
+
| name=Lega Navale di Santa Teresa Gallura
-
{{poi| lat=41.18005|lon=9.3881|zoom=15
+
| 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
 +
}}
 +
 
 +
<pre><nowiki>
 +
{{poi| lat=41.18005| lon=9.3881| zoom=15
| type=buoy
| type=buoy
| name=Palau buoy field  
| name=Palau buoy field  
Line 78: Line 75:
The buoy field is operated by the marina. A dinghy doc is located at the port side of the entrance to the marina.
The buoy field is operated by the marina. A dinghy doc is located at the port side of the entrance to the marina.
-
}}</pre>
+
}}</nowiki></pre>
-
<p>produces:
+
 
-
<span class="fck_mw_template">{{poi| lat=41.18005|lon=9.3881|zoom=15fckLR| type=buoyfckLR| name=Palau buoy field fckLR| 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. fckLRfckLRThe buoy field is operated by the marina. A dinghy doc is located at the port side of the entrance to the marina.fckLR}}</span>
+
Produces:
-
</p><a href="Category:Templates">Category:Templates</a>
+
{{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.
 +
}}
 +
 
 +
<pre><nowiki>
 +
{{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]]''.
 +
}}</nowiki></pre>
 +
 
 +
Gives:
 +
{{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]]''.
 +
}}
 +
 
 +
 
 +
... 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.
 +
}}
 +
 
 +
 
 +
See [[CruisersWiki:Chartlet.config]] for the list of respective map icons.
 +
 
 +
[[Category:Templates|Poi/doc]]

Latest revision as of 06:03, 25 August 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.dd | lon= DDD.dd
| 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
  • accommodation
  • attention
  • beach
  • berth (for marinas and other moorings at harbour quays, piers, etc.)
  • buoy (for mooring buoys)
  • chandler (for yacht's stores)
  • danger
  • eatingout (for restaurants, caffes, eateries, etc.)
  • facilities
  • fuel
  • harbour
  • provisions (for grocery stores, markets and supermarkets)
  • officials
  • service
  • waypoint
  • 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:

Lega Navale di Santa Teresa Gallura

Lega Navale di Santa Teresa Gallura/wiki/Template:Poi/doc#Lega_Navale_di_Santa_Teresa_Gallura
Berth icon Lega Navale di Santa Teresa Gallura [[Template:Poi/doc#Lega Navale di Santa Teresa Gallura|Lega Navale di Santa Teresa Gallura]] 41°14.257'N, 009°11.808'E
A private yacht club located at the small Eastern inlet just before the marina
{{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

Palau buoy field/wiki/Template:Poi/doc#Palau_buoy_field
Buoy icon Palau buoy field [[Template:Poi/doc#Palau buoy field|Palau buoy field]] 41°10.803'N, 009°23.286'E

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:

Chart of Lakki Harbor

Lakki

Lakki/wiki/Template:Poi/doc#Lakki
Harbour icon Lakki [[Template:Poi/doc#Lakki|Lakki]] (Λακκί) 37°07.599'N, 026°51.161'E
Port of Entry
This is the main harbor of the island. It is located on the W side of the island. 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 marina operated by Agmar. See Agmar Lakki Marina.


... 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:

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.


See CruisersWiki:Chartlet.config for the list of respective map icons.

Personal tools
advertisement
Friends of Cruisers Wiki