Template:Infobox

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(geometry support)
 
(22 intermediate revisions not shown)
Line 1: Line 1:
-
<includeonly>{{infobox top test|name={{{name|}}}}}
+
<includeonly>{{infobox top
-
{{infobox coordblock test|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|
+
| name={{{name|}}}
-
| lat={{{lat|}}}| lon={{{lon|}}}| type=waypoint
+
| portofentry={{{portofentry|}}}
 +
| containsportofentry={{{containsportofentry|}}}
 +
}}
 +
{{infobox coordblock
 +
| type=
 +
| lat={{{lat|}}}{{{1|}}} {{{2|}}} {{{3|}}}  
 +
| lon={{{lon|}}}{{{4|}}} {{{5|}}} {{{6|}}}
| maplat={{{maplat|}}}| maplon={{{maplon|}}}
| maplat={{{maplat|}}}| maplon={{{maplon|}}}
-
| mapzoom={{?|test={{{mapzoom|}}}|{{{mapzoom}}}|14}}
+
| geometry={{{geometry|}}}
-
| gallery={{{gallery|}}}
+
| zoom={{{zoom|12}}}
-
| chartlet={{{chartlet|}}} }}
+
| chartlet={{{chartlet|}}}
-
{{infobox bottom test|image={{{image|}}}|imagetext={{{imagetext|}}}}}<!--
+
| chartletwidth={{{chartletwidth|}}}  
 +
| chartletheight={{{chartletheight|}}}  
 +
}}
 +
{{infobox bottom
 +
| image={{{image|}}}
 +
| imagetext={{{imagetext|}}}
 +
| imagewidth={{{imagewidth|}}}
 +
| notes={{{notes|}}}
 +
| news= {{{news|}}}
 +
| summary={{{summary|}}}
 +
}}<!--
--></includeonly><noinclude>{{doc}}
--></includeonly><noinclude>{{doc}}

Latest revision as of 11:43, 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
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