Template:Infobox country

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(chartlet integration)
 
(46 intermediate revisions not shown)
Line 1: Line 1:
-
<includeonly>{{infobox top test|name={{{name|}}}}}
+
<includeonly>{{infobox top|name={{{name|}}}}}
-
<!--
+
{{infobox coordblock
-
{{infobox image |{{{map|Country_map.png}}}|| {{{mapwidth|}}} }}
+
| lat={{{lat|}}}{{{1|}}} {{{2|}}} {{{3|}}}  
-
{{infobox image |{{{flag|Country_flag.png}}}|'''Flag'''| 100px }}
+
| lon={{{lon|}}}{{{4|}}} {{{5|}}} {{{6|}}}
-
{{infobox row|Capital|{{if | test={{{capital|}}}
+
| type=
-
| then={{{capital}}} {{poi coord|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|
+
| maplat={{{maplat|}}}| maplon={{{maplon|}}}
-
  | lat={{{capitallat|}}}| lon={{{capitallon|}}}| type=waypoint
+
| zoom={{{zoom|6}}}
-
  | gallery={{{gallery|}}}
+
| chartlet={{{chartlet|}}}
-
  | chartlet={{{chartlet|}}}
+
| chartletwidth={{{chartletwidth|}}}  
-
  }}
+
| chartletheight={{{chartletheight|}}}  
-
| else= }}}}
+
}}
 +
{{
 +
? | test={{{image|}}}
 +
|{{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|}}}}}
-
{{infobox row|Timezone|{{if | test={{{timezone|}}}
+
{{infobox row|Time zone|<!--
-
| then={{{timezone}}} {{if | test={{{dsttimezone|}}}| then=<br />{{{dsttimezone}}} }}
+
-->{{if | test={{{timezone|}}}
 +
| then={{{timezone}}} {{if| test={{{dsttimezone|}}}| then=, DST: {{{dsttimezone}}} }}
| else= }}}}
| else= }}}}
-
-->
+
{{infobox row|Calling code| {{{code|}}} }}
-
{{infobox bottom test
+
{{infobox bottom
-
| image={{{image|}}}
+
| notes={{{notes|}}}
-
| imagetext={{{imagetext|}}}
+
| news={{{news|}}}
-
| notes= {{?|test={{{notes|}}}|{{{notes|}}}|{{magenta|More notes  about the country}}}}
+
}}<!--
-
| news= {{?|test={{{news|}}}|{{{news|}}}|{{magenta|Content - news items, etc.}}}}
+
-
}}</includeonly><noinclude>
+
-
TEST
+
--></includeonly><noinclude>
 +
{{doc}}
-
<!--
+
[[Category:Templates|Infobox]]
-
{{doc}}
+
-
[[Category:Templates|Infobox country]]
 
-
-->
 
</noinclude>
</noinclude>

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