Template:Poi/doc

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(Type: eatingout)
(Added missing options)
Line 1: Line 1:
-
<noinclude>__NOTOC__</noinclude>This template is used to list POIs (''POI'' stands for [[wikipedia:Point of interest|''point of interest'']]).
+
<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>).
-
 
+
</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.
-
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><p>There are two styles in using this template.
-
 
+
</p>
-
There are two styles in using this template.
+
<h4>Usage</h4>
-
====Usage====
+
<hr />
-
----
+
<h5>Lat, Lon style</h5>
-
=====Lat, Lon style=====
+
<pre>{{poi  
-
<pre><nowiki>{{poi  
+
| lat= | lon=
| lat= | lon=
| type=
| type=
| name=
| name=
| text=
| text=
-
}}</nowiki></pre>
+
}}</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).
-
Here the coordinates are defined by ''lat'' and ''lon'' parameters represented in decimal degrees (negative values denote either S or W hemispheres).
+
</p>
-
 
+
<h5>DD°M.M'H style</h5>
-
=====DD°M.M'H style=====
+
<pre>{{poi  
-
<pre><nowiki>{{poi  
+
|DD|M.M|N|DDD|M.M|E
|DD|M.M|N|DDD|M.M|E
| type=
| type=
| name=
| name=
| text=
| text=
-
}}</nowiki></pre>
+
}}</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.
-
Coordinates in this format are quite useful then [[Template:Coord]] locations are converted into [[Template:Poi]] 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.
-
 
+
</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.
+
<h5>Type</h5>
-
 
+
<p>A value of the <i>type</i> parameter should be one of:
-
=====Type=====
+
</p>
-
A value of the ''type'' parameter should be one of:
+
<ul><li> anchorage
-
* anchorage
+
</li><li> harbour
-
* harbour
+
</li><li> berth <i>(for marinas and other moorings at harbour quays, piers, etc.)</i>
-
* berth ''(for marinas and other moorings at harbour quays, piers, etc.)''
+
</li><li> buoy <i>(for mooring buoys)</i>
-
* buoy ''(for mooring buoys)''
+
</li><li> provisioning <i>(for grocery stores, markets and supermarkets)</i>
-
* provisioning ''(for grocery stores, markets and supermarkets)''
+
</li><li> chandler <i>(for yacht's stores)</i>
-
* chandler ''(for yacht's stores)''
+
</li><li> eatingout <i>(for restaurants, caffes, eateries, etc.)</i>
-
* eatingout ''(for restaurants, caffes, eateries, etc.)''
+
</li><li> officials
-
* officials
+
</li><li> facilities
-
* facilities
+
</li><li> service
-
* service
+
</li><li> accommodation
-
* accommodation
+
</li><li> beach
-
* beach
+
</li><li> waypoint
-
* waypoint
+
</li><li> waterway-canal
-
* waterway-canal
+
</li><li> other
-
* other
+
</li></ul>
-
 
+
<h4>Examples</h4>
-
====Examples====
+
<hr />
-
----
+
<p><b><a _fcknotitle="true" href="Template:Coord">Template:Coord</a> style:</b>
-
'''[[Template:Coord]] style:'''
+
</p>
-
<pre><nowiki>{{poi  
+
<pre>{{poi  
|41|14.633|N|009|08.904|E
|41|14.633|N|009|08.904|E
| type= anchorage
| type= anchorage
| name= Cala Spinosa
| name= Cala Spinosa
| text= A narrow bay W of Baia di Santa Reparata, good holding on sandy patches.
| text= A narrow bay W of Baia di Santa Reparata, good holding on sandy patches.
-
}}</nowiki></pre>
+
}}</pre>
-
 
+
<p>Expands to:
-
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>
-
{{poi
+
</p><p><b>Lat, Lon style:</b>
-
|41|14.633|N|009|08.904|E
+
</p>
-
| type= anchorage
+
<pre>
-
| name= Cala Spinosa
+
-
| text= A narrow bay W of Baia di Santa Reparata, good holding on sandy patches.
+
-
}}
+
-
 
+
-
'''Lat, Lon style:'''
+
-
<pre><nowiki>
+
{{poi
{{poi
|lat=41.23762|lon=9.1968
|lat=41.23762|lon=9.1968
Line 73: Line 65:
|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>
+
</pre>
-
 
+
<p>Gives:
-
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>
-
{{poi
+
</p><p><br />
-
|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
+
-
}}
+
-
 
+
-
 
+
, and:
, and:
-
<pre><nowiki>
+
</p>
 +
<pre>
{{poi| lat=41.18005|lon=9.3881|zoom=15
{{poi| lat=41.18005|lon=9.3881|zoom=15
| type=buoy
| type=buoy
Line 93: Line 78:
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.
-
}}</nowiki></pre>
+
}}</pre>
-
 
+
<p>produces:
-
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>
-
{{poi| lat=41.18005|lon=9.3881|zoom=15
+
</p><a href="Category:Templates">Category:Templates</a>
-
| 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.
+
-
}}
+
-
 
+
-
[[Category:Templates|Poi/doc]]
+

Revision as of 17:40, 30 March 2016

This template is used to list POIs (POI stands for <a href="http://en.wikipedia.org/wiki/Point_of_interest" class="extiw" title="wikipedia:Point of interest">point of interest</a>).

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.

There are two styles in using this template.

Usage


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

DD°M.M'H style
{{poi 
|DD|M.M|N|DDD|M.M|E
| type=
| name=
| text=
}}

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.

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.

Type

A value of the type parameter should be one of:

  • anchorage
  • harbour
  • berth (for marinas and other moorings at harbour quays, piers, etc.)
  • buoy (for mooring buoys)
  • provisioning (for grocery stores, markets and supermarkets)
  • chandler (for yacht's stores)
  • eatingout (for restaurants, caffes, eateries, etc.)
  • officials
  • facilities
  • service
  • accommodation
  • beach
  • waypoint
  • waterway-canal
  • other

Examples


<a _fcknotitle="true" href="Template:Coord">Template:Coord</a> 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: Template:PoifckLR

Lat, Lon style:

{{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: Template:PoifckLR


, and:

{{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 fckLR

Palau buoy field fckLR/wiki/Template:Poi/doc#Palau_buoy_field_fckLR
World icon.png Palau buoy field fckLR [[Template:Poi/doc#Palau buoy field fckLR|Palau buoy field fckLR]] 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. fckLRfckLRThe buoy field is operated by the marina. A dinghy doc is located at the port side of the entrance to the marina.fckLR

<a href="Category:Templates">Category:Templates</a>
Personal tools
advertisement
Friends of Cruisers Wiki