Template:Infobox/doc

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(Update)
(some nonsence removed)
 
(12 intermediate revisions not shown)
Line 1: Line 1:
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:  
-
<pre><nowiki>{{infobox |||N|||E|
+
<pre><nowiki>{{infobox  
-
| gallery=
+
| lat=
-
| chartlet=
+
| lon=
-
| maplat=
+
| zoom=  
-
| maplon=
+
| portofentry=  
-
| mapzoom=
+
| image=  
-
| image=
+
| imagetext=  
-
| imagetext=
+
| notes=  
 +
| news=  
 +
| summary=
}}</nowiki></pre>
}}</nowiki></pre>
-
 
-
{{red|NB}}: Mind a vertical bar "|" at the end of coordinate parameters. Also, if you omit the line <code><nowiki>|chartlet= </nowiki></code>it automatically places a [http://www.navionics.com/en Navionics] chartlet. See Example 2 below.
 
Example 1:
Example 1:
-
<pre><nowiki>{{infobox |41|14.74|N|09|11.93|E|
+
{{infobox
-
| gallery= http://www.panoramio.com/map/#lt=41.241287&ln=9.197445&z=2&k=1&a=1&tab=1
+
| lat= 41.245667
-
| chartlet= http://wikimapia.org/#lang=en&lat=41.247612&lon=9.196157&z=14&m=w
+
| lon= 9.198833
-
| image= SantaTeresa.jpg
+
| portofentry= y
-
| imagetext= The port of Santa Teresa
+
-
}}</nowiki></pre>
+
-
 
+
-
{{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
| image=SantaTeresa.jpg
| imagetext=The port of Santa Teresa
| imagetext=The port of Santa Teresa
 +
| news=The latest on Santa Teresa
}}
}}
-
<div style="clear: right;"></div>
+
<pre><nowiki>{{infobox  
-
Example 2 Defaults (Navionics & Panoramio):
+
| lat= 41.245667
-
<pre><nowiki>{{infobox |41|14.74|N|09|11.93|E|
+
| lon= 9.198833
 +
| portofentry= y
| image= SantaTeresa.jpg
| image= SantaTeresa.jpg
| imagetext= The port of Santa Teresa
| imagetext= The port of Santa Teresa
 +
| news=The latest on Santa Teresa
}}</nowiki></pre>
}}</nowiki></pre>
-
{{infobox port |41|14.74|N|09|11.93|E|
+
<div style="clear: right;"></div>
 +
Example 2: ''compound'' coordinates and the optional ''name'' parameter
 +
{{infobox  
 +
| name= Santa Teresa
 +
| lat= 41 14.74 N | lon= 09 11.93 E
 +
| zoom=13
| image=SantaTeresa.jpg
| image=SantaTeresa.jpg
| imagetext=The port of Santa Teresa
| imagetext=The port of Santa Teresa
 +
| notes = Notes on Santa Teresa
}}
}}
 +
 +
<pre><nowiki>{{infobox
 +
| name= Santa Teresa
 +
| lat= 41 14.74 N | lon= 09 11.93 E
 +
| zoom=13
 +
| image= SantaTeresa.jpg
 +
| imagetext= The port of Santa Teresa
 +
| notes = Notes on Santa Teresa
 +
}}</nowiki></pre>
<div style="clear: right;"></div>
<div style="clear: right;"></div>
-
Example 3 Specified chartlet parameters (gallery used the box coordinates)
+
Example 3:
-
<pre><nowiki>{{infobox |37|34.7|N|26|28.5|E|
+
 
 +
{{infobox  
 +
| lat= 37 34.7 N | lon= 26 28.5 E
 +
| name= Fourni
| maplat= 37.564
| maplat= 37.564
| maplon= 26.477
| maplon= 26.477
-
| mapzoom= 15
+
| zoom= 15
-
}}</nowiki></pre>
+
| chartlet=yes
 +
}}
 +
''maplat'' and ''maplon'' parameters could be used to centre a chartlet at some other location than the location of the subject of an article.
-
{{infobox |37|34.7|N|26|28.5|E|
+
<pre><nowiki>{{infobox  
 +
| lat= 37 34.7 N | lon= 26 28.5 E
 +
| name= Fourni
| maplat= 37.564
| maplat= 37.564
| maplon= 26.477
| maplon= 26.477
-
| mapzoom= 15
+
| zoom= 15
-
}}
+
| chartlet=yes
 +
}}</nowiki></pre>
<div style="clear: right;"></div>
<div style="clear: right;"></div>

Latest revision as of 12:02, 17 January 2017

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 
| lat= 
| lon= 
| zoom= 
| portofentry= 
| image= 
| imagetext= 
| notes= 
| news= 
| summary=
}}

Example 1:

Infobox/doc
Port of Entry
41°14.740'N, 009°11.930'E Chart icon.png
SantaTeresa.jpg
Magnify-clip.png
The port of Santa Teresa
Small info.png Latest News
The latest on Santa Teresa
{{infobox 
| lat= 41.245667
| lon= 9.198833
| portofentry= y
| image= SantaTeresa.jpg
| imagetext= The port of Santa Teresa
| news=The latest on Santa Teresa
}}

Example 2: compound coordinates and the optional name parameter

Santa Teresa
41°14.74′N, 09°11.93′E Chart icon.png
SantaTeresa.jpg
Magnify-clip.png
The port of Santa Teresa
Notes on Santa Teresa
{{infobox 
| name= Santa Teresa
| lat= 41 14.74 N | lon= 09 11.93 E
| zoom=13
| image= SantaTeresa.jpg
| imagetext= The port of Santa Teresa
| notes = Notes on Santa Teresa
}}

Example 3:

Fourni
37°33.840'N, 026°28.620'E Chart icon.png
lat=37.564 | lon=26.477 | zoom=15 | yes

maplat and maplon parameters could be used to centre a chartlet at some other location than the location of the subject of an article.

{{infobox 
| lat= 37 34.7 N | lon= 26 28.5 E
| name= Fourni
| maplat= 37.564
| maplon= 26.477
| zoom= 15
| chartlet=yes
}}

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