Difference between revisions of "Template:Infobox CityIT"

From WOI Encyclopedia Italia
Jump to navigation Jump to search
m
 
m
 
Line 1: Line 1:
 
{| class="infobox vcard" style="width:260px; font-size: 90%;"
 
{| class="infobox vcard" style="width:260px; font-size: 90%;"
 
|-
 
|-
! colspan="2" | <big class="fn org">{{{city}}}<big>
+
! colspan="2" | <big class="fn org">{{{official_name|Comune di {{{name}}}}}}<big>
 +
{{#if:{{{image_skyline|}}}
 +
|{{!}}-
 +
{{!}}colspan=2{{!}}[[Image:{{{image_skyline}}}|center|244px|{{{image_caption|Picture of {{{name}}}}}}]]{{#if:{{{image_caption|}}}|<center>{{{image_caption}}}</center>}}}}
 
|-
 
|-
! colspan="2" | {{#if:{{{img_coa|}}}|{{#if:{{{img_coa_small|}}}|[[Image:{{{img_coa}}}|Coat of arms of {{{city}}}]]|[[Image:{{{img_coa}}}|140x140px|Coat of arms of {{{city}}}]]}}<br/>Municipal coat of arms|}}
+
! colspan="2" | {{#if:{{{img_coa_small|}}}
 +
  |{{#ifexist:media:{{{img_coa}}}|[[Image:{{{img_coa}}}|Coat of arms of {{{official_name|}}}]]<br/>Municipal coat of arms|}}
 +
  |{{#ifexist:media:{{{img_coa}}}
 +
  |[[Image:{{{img_coa}}}|140x140px|Coat of arms of {{{official_name|}}}]]<br/>Municipal coat of arms
 +
  |{{#ifexist:media:{{{name}}}-Stemma.png|[[Image:{{{name}}}-Stemma.png|140x140px|Coat of arms of {{{official_name|}}}]]<br/>Municipal coat of arms|}}}}
 +
}}
 
|- class="adr"
 
|- class="adr"
 
| '''Country'''
 
| '''Country'''
Line 19: Line 27:
 
| {{#if:{{{mayor_party|}}}|<br/> &nbsp;- [[List of political parties in Italy|Party]]|}}
 
| {{#if:{{{mayor_party|}}}|<br/> &nbsp;- [[List of political parties in Italy|Party]]|}}
 
| {{#if:{{{mayor_party|}}}|<br/>{{{mayor_party}}}|}}
 
| {{#if:{{{mayor_party|}}}|<br/>{{{mayor_party}}}|}}
{{#if:{{{altitude|}}}
+
{{#if:{{{elevation_m|}}}
 
|{{!}}- class="note"
 
|{{!}}- class="note"
 
{{!}}'''Elevation'''
 
{{!}}'''Elevation'''
{{!}}{{{altitude}}} m}}
+
{{!}}{{convert|{{{elevation_m|}}}|m|ft|0|abbr=on|lk=on}}}}{{#if:{{{elevation_footnotes|}}}|{{{elevation_footnotes|}}}}}
 
|-
 
|-
 
| '''Area'''
 
| '''Area'''
| {{{area_cityproper}}} km²
+
| {{convert|{{{area_total_km2|}}}|sqkm|sqmi|0|abbr=on|lk=on}}{{#if:{{{area_footnotes|}}}|{{{area_footnotes|}}}}}
 
|-  
 
|-  
| '''Population'''
+
|colspan="2"| '''Population''' <small>{{#if:{{{population_as_of|}}}|(as of {{{population_as_of}}})|}}</small>
|
 
 
|-
 
|-
|&nbsp;- Total {{#if:{{{population_as_of|}}}|(as of {{{population_as_of}}})|}}
+
|&nbsp;- Total
|{{{populationdensity}}}
+
|{{#ifeq: {{#expr:{{{population_total|}}}*0}}|0|{{formatnum:{{{population_total|}}}}}|{{{population_total|}}}}}{{#if:{{{population_footnotes|}}}|{{{population_footnotes|}}}}}
 
|-
 
|-
 
|&nbsp;- Density
 
|&nbsp;- Density
|{{{populationdensitymetric}}}/km²
+
|{{#ifeq: {{#expr:{{{population_total|}}}*0}}|0|{{#ifeq: {{#expr:{{{area_total_km2|}}}*0}}|0|{{PD km2 to sq mi|{{ #expr:({{{population_total}}}/{{{area_total_km2}}}) round 0 }}|precision=0|abbr=yes}}|[n/a]}}|[n.a.]}}
 +
{{#if:{{{pop_density_footnotes|}}}|{{{pop_density_footnotes|}}}}}
 
|-  
 
|-  
 
| '''Time zone'''
 
| '''Time zone'''
Line 45: Line 53:
 
| {{{gentilic}}}
 
| {{{gentilic}}}
 
|-
 
|-
| '''[[Area codes in Italy|Dialing code]]'''
+
| '''[[Area codes in Italy|Dialing&nbsp;code]]'''
 
| {{{telephone}}}
 
| {{{telephone}}}
 
|-  class="note"
 
|-  class="note"
Line 63: Line 71:
 
{{#if:{{{mapx|}}}|
 
{{#if:{{{mapx|}}}|
 
{{!}} colspan="2" style="text-align: center; padding-top: 0em; padding-bottom: 0em;" {{!}}<center><div><div style="width:211px; background:transparent">
 
{{!}} colspan="2" style="text-align: center; padding-top: 0em; padding-bottom: 0em;" {{!}}<center><div><div style="width:211px; background:transparent">
<div style="position:relative; width:211px">[[Image:Italy Regions 220px (including Pelagie Islands).png|211px]]<br/><div style="position:absolute;z-index:200;
+
<div style="position:relative; width:211px">[[Image:Italy Regions (including Pelagie Islands).svg|211px]]<br/><div style="position:absolute;z-index:200;
 
top:{{#expr:100*(47.3417-{{{mapx}}}) / (47.3417-35.493128) round 1}}%;
 
top:{{#expr:100*(47.3417-{{{mapx}}}) / (47.3417-35.493128) round 1}}%;
 
left:{{#expr:100*({{{mapy}}}-6.627159) / (18.519859-6.627159) round 1}}%; height:0; width:0; margin:0; padding:0;">
 
left:{{#expr:100*({{{mapy}}}-6.627159) / (18.519859-6.627159) round 1}}%; height:0; width:0; margin:0; padding:0;">
Line 80: Line 88:
 
|-
 
|-
 
| align="center" colspan="2" | {{#if:{{{website|}}}|<small>'''Website:''' {{{website}}}</small>|}}
 
| align="center" colspan="2" | {{#if:{{{website|}}}|<small>'''Website:''' {{{website}}}</small>|}}
|}<noinclude><!--Leave <noinclude> starting in the same line as the last line of the template code-->
+
|}
[[Category:City infobox templates|Italy]]
 
{{template doc}}
 
</noinclude>
 

Latest revision as of 14:01, 4 December 2007

Comune di {{{name}}}
Country Template:Country flagicon2 Italy
Region {{{region}}}
Province {{{province}}}
Mayor {{{mayor}}}
Area Template:Convert/sqkmTemplate:Convert/test/Aon
Population
 - Total
 - Density [n.a.]
Time zone CET, UTC+1
Coordinates {{{coordinates}}}
Gentilic {{{gentilic}}}
Dialing code {{{telephone}}}
Postal code {{{postalcode}}}
[[Image:{{{map}}}|211px|center|{{{native_name}}}]]
{{{native_name}}}