Template:Infobox/doc
From CruisersWiki
Istioploos (Talk | contribs) (Update) |
(show template's behaviour) |
||
Line 1: | Line 1: | ||
+ | {{infobox port |41|14.74|N|09|11.93|E| | ||
+ | | gallery=http://www.panoramio.com/map/#lt=41.241287&ln=9.197445&z=2&k=1&a=1&tab=1 | ||
+ | | chartlet=http://wikimapia.org/#lang=en&lat=41.247612&lon=9.196157&z=14&m=w | ||
+ | | image=SantaTeresa.jpg | ||
+ | | imagetext=The port of Santa Teresa | ||
+ | }} | ||
+ | |||
This template was designed to be used to place a table with some standard data (an "information box") at the beginning of an article. Such a table is described at the [[Pagetemplates#CO-ORDINATES_INFO_TEMPLATE | Pagetemplates]] article. This template allows creating such a table a more simple way: | This template was designed to be used to place a table with some standard data (an "information box") at the beginning of an article. Such a table is described at the [[Pagetemplates#CO-ORDINATES_INFO_TEMPLATE | Pagetemplates]] article. This template allows creating such a table a more simple way: | ||
Line 22: | Line 29: | ||
}}</nowiki></pre> | }}</nowiki></pre> | ||
+ | <div style="clear: right;"></div> | ||
+ | Example 2 Defaults (Navionics & Panoramio): | ||
{{infobox port |41|14.74|N|09|11.93|E| | {{infobox port |41|14.74|N|09|11.93|E| | ||
- | |||
- | |||
| image=SantaTeresa.jpg | | image=SantaTeresa.jpg | ||
| imagetext=The port of Santa Teresa | | imagetext=The port of Santa Teresa | ||
}} | }} | ||
- | |||
- | |||
<pre><nowiki>{{infobox |41|14.74|N|09|11.93|E| | <pre><nowiki>{{infobox |41|14.74|N|09|11.93|E| | ||
| image= SantaTeresa.jpg | | image= SantaTeresa.jpg | ||
| imagetext= The port of Santa Teresa | | imagetext= The port of Santa Teresa | ||
}}</nowiki></pre> | }}</nowiki></pre> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
<div style="clear: right;"></div> | <div style="clear: right;"></div> | ||
Example 3: | Example 3: | ||
- | + | {{infobox |37|34.7|N|26|28.5|E| | |
- | + | ||
- | + | ||
| name= Fourni | | name= Fourni | ||
| maplat= 37.564 | | maplat= 37.564 | ||
| maplon= 26.477 | | maplon= 26.477 | ||
| mapzoom= 15 | | mapzoom= 15 | ||
- | }} | + | }} |
+ | Here we specify chartlet coordinates with ''maplat'' and ''maplon'' (the gallery used the Infobox coordinates). Zooming for both gallery & chartlet is specified with ''map zoom''. | ||
- | {{infobox |37|34.7|N|26|28.5|E| | + | <pre><nowiki>{{infobox |37|34.7|N|26|28.5|E| |
| name= Fourni | | name= Fourni | ||
| maplat= 37.564 | | maplat= 37.564 | ||
| maplon= 26.477 | | maplon= 26.477 | ||
| mapzoom= 15 | | mapzoom= 15 | ||
- | }} | + | }}</nowiki></pre> |
<div style="clear: right;"></div> | <div style="clear: right;"></div> |
Revision as of 17:31, 21 January 2016
Infobox/doc
| |
| |
This template was designed to be used to place a table with some standard data (an "information box") at the beginning of an article. Such a table is described at the Pagetemplates article. This template allows creating such a table a more simple way:
{{infobox |||N|||E| | name= | gallery= | chartlet= | maplat= | maplon= | mapzoom= | image= | imagetext= }}
NB: Mind a vertical bar "|" at the end of coordinate parameters. Also, if you omit the line |chartlet=
it automatically places a Navionics chartlet. See Example 2 below.
Example 1:
{{infobox |41|14.74|N|09|11.93|E| | gallery= http://www.panoramio.com/map/#lt=41.241287&ln=9.197445&z=2&k=1&a=1&tab=1 | chartlet= http://wikimapia.org/#lang=en&lat=41.247612&lon=9.196157&z=14&m=w | image= SantaTeresa.jpg | imagetext= The port of Santa Teresa }}
Example 2 Defaults (Navionics & Panoramio):
Infobox/doc
| |
{{infobox |41|14.74|N|09|11.93|E| | image= SantaTeresa.jpg | imagetext= The port of Santa Teresa }}
Example 3:
Fourni
|
Here we specify chartlet coordinates with maplat and maplon (the gallery used the Infobox coordinates). Zooming for both gallery & chartlet is specified with map zoom.
{{infobox |37|34.7|N|26|28.5|E| | name= Fourni | maplat= 37.564 | maplon= 26.477 | mapzoom= 15 }}
Note: The title of table is automatically created from this page title hence it reads here as "Embeddable templates".