Template:Infobox country

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(chartlet integration)
 
(22 intermediate revisions not shown)
Line 1: Line 1:
<includeonly>{{infobox top|name={{{name|}}}}}
<includeonly>{{infobox top|name={{{name|}}}}}
{{infobox coordblock
{{infobox coordblock
-
| 1={{{1|}}}|2={{{2|}}}|3={{{3|}}}|4={{{4|}}}|5={{{5|}}}|6={{{6|}}}
+
| lat={{{lat|}}}{{{1|}}} {{{2|}}} {{{3|}}}  
-
| lat={{{lat|}}}| lon={{{lon|}}}| type=waypoint
+
| lon={{{lon|}}}{{{4|}}} {{{5|}}} {{{6|}}}
 +
| type=
| maplat={{{maplat|}}}| maplon={{{maplon|}}}
| maplat={{{maplat|}}}| maplon={{{maplon|}}}
| zoom={{{zoom|6}}}
| zoom={{{zoom|6}}}
 +
| chartlet={{{chartlet|}}}
 +
| chartletwidth={{{chartletwidth|}}}
 +
| chartletheight={{{chartletheight|}}}
}}
}}
-
{{infobox image |{{{image|Country_map.png}}}|{{?|test={{{imagetext|}}}|{{{imagetext|}}}|Map}}|{{{imagewidth|}}}}}
+
{{
-
{{infobox image |{{{flag|Country_flag.png}}}|Flag|100px}}
+
? | test={{{image|}}}
-
{{infobox row|Capital|{{{capital}}}}}
+
|{{infobox image |{{{image|}}}|{{?|test={{{imagetext|}}}|{{{imagetext|}}}|Map}}|{{{imagewidth|}}}}}
 +
}}{{
 +
? | test={{{flag|}}}
 +
|{{infobox image |{{{flag|}}}|Flag|100px}}
 +
}}{{infobox row|Capital|{{{capital}}}}}
{{infobox row|Language|{{{language|}}}}}
{{infobox row|Language|{{{language|}}}}}
{{infobox row|Currency|{{{currency|}}}}}
{{infobox row|Currency|{{{currency|}}}}}
Line 15: Line 23:
| then={{{timezone}}} {{if| test={{{dsttimezone|}}}| then=, DST: {{{dsttimezone}}} }}
| then={{{timezone}}} {{if| test={{{dsttimezone|}}}| then=, DST: {{{dsttimezone}}} }}
| else= }}}}
| else= }}}}
-
{{infobox row|Calling code|2={{{code|}}}}}
+
{{infobox row|Calling code| {{{code|}}} }}
{{infobox bottom
{{infobox bottom
| notes={{{notes|}}}
| notes={{{notes|}}}

Latest revision as of 16:46, 13 March 2017

Italy
41°54.00′N, 012°29.00′E Chart icon.png
EU-Italy.svg
Magnify-clip.png
Location of Italy (dark green) in Europe
Flag_of_Italy.svg
Magnify-clip.png
Flag
Capital Rome
Language Italian
Currency Euro €
Time zone CET (UTC+1) , DST: CEST (UTC+2)
Calling code +39
Infobox country
41°54.00′N, 012°29.00′E Chart icon.png
Italymap.gif
Magnify-clip.png
Map
Italyflag.gif
Magnify-clip.png
Flag
Capital Rome
Language Italian
Currency Euro €
Time zone CET (UTC+1) , DST: CEST (UTC+2)
Calling code +39
Some notes
Small info.png Latest News
Some news

This template was designed to create an infobox that is specific to an article about a country or an island country:

{{infobox country 
| lat=
| lon=
| zoom= 
| chartlet= 
| image=
| imagewidth=
| flag=
| capital= 
| language=
| currency=
| timezone=
| dsttimezone=
| code=
| notes=
| news=
}}

Example:

{{infobox country 
| lat=41 54.00 N
| lon=012 29.00 E
| inage= Italymap.gif
| inagewidth= 330px
| flag= Italyflag.gif
| capital= Rome 
| language= Italian
| currency= Euro €
| timezone= CET (UTC + 1)
| dsttimezone= CEST (UTC + 2 summer)
| code= +39
| notes= Some notes
| news= Some news
}}

This expands to a table shown at the beginning of this section. As with the previous example the title of table is automatically created from this page title hence it renders here to something that is not quite useful.

Personal tools
advertisement
Friends of Cruisers Wiki