Template:Infobox/doc

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(mapzoom, gallery and chartlet parameters removed)
Line 8: Line 8:
<pre><nowiki>{{infobox |||N|||E|
<pre><nowiki>{{infobox |||N|||E|
| name=
| name=
-
| maplat=
+
| lat=
-
| maplon=
+
| lon=
-
| mapzoom=
+
| zoom=
| image=
| image=
| imagetext=
| imagetext=
Line 44: Line 44:
| mapzoom= 15
| mapzoom= 15
}}
}}
 +
''maplat'' and ''maplon'' parameters could be used to centre a chartlet at some other location than the location of the subject of an article.
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''.
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''.
Line 55: Line 56:
<div style="clear: right;"></div>
<div style="clear: right;"></div>
{{Note}}The title of table is automatically created from this page title hence it reads here as "Embeddable templates".
{{Note}}The title of table is automatically created from this page title hence it reads here as "Embeddable templates".
 +
[[Category:Templates|Infobox/doc]]
[[Category:Templates|Infobox/doc]]

Revision as of 14:40, 27 March 2016

Infobox/doc
41°14.74′N, 09°11.93′E Chart icon.png
SantaTeresa.jpg
Magnify-clip.png
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 article. This template allows creating such a table a more simple way:

{{infobox |||N|||E|
| name=
| lat=
| lon=
| zoom=
| 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|
| image= SantaTeresa.jpg
| imagetext= The port of Santa Teresa
}}

Example 2 Defaults (Navionics & Panoramio):

Infobox/doc
41°14.74′N, 09°11.93′E Chart icon.png
SantaTeresa.jpg
Magnify-clip.png
The port of Santa Teresa
{{infobox |41|14.74|N|09|11.93|E|
| image= SantaTeresa.jpg
| imagetext= The port of Santa Teresa
}}

Example 3:

Fourni
37°33.840'N, 026°28.620'E Chart icon.png


maplat and maplon parameters could be used to centre a chartlet at some other location than the location of the subject of an article. 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".

Personal tools
advertisement
Friends of Cruisers Wiki