Difference between revisions of "Template:Infobox CityBZ"

From blackwiki
Jump to navigation Jump to search
imported>Noclador
imported>Plastikspork
(Switch backend to use comune template)
Line 1: Line 1:
{| class="infobox vcard" style="width:260px; font-size: .9em; line-height:1.1em"
+
{{Infobox Italian comune
|-
+
| name                = {{{name|}}}
! colspan="2" | <big class="fn org">{{{official_name|Comune di {{{name}}}}}}<big>
+
| official_name      = {{{official_name|Comune di {{{name}}}}}}
{{#if:{{{image_skyline|}}}
+
| native_name        = {{{native_name|}}}
|{{!}}-
+
| image_skyline      = {{{image_skyline|}}}
{{!}}colspan=2{{!}}[[Image:{{{image_skyline}}}|center|240px|{{{image_caption|Picture of {{{name}}}}}}]]{{#if:{{{image_caption|}}}|<center>{{{image_caption}}}</center>}}}}
+
| imagesize          = {{{imagesize|}}}
|-
+
| image_alt          = {{{image_alt|}}}
! colspan="2" | {{#if:{{{img_coa_small|}}}
+
| image_caption      = {{{image_caption|}}}
  |{{#ifexist:media:{{{img_coa}}}|[[Image:{{{img_coa}}}|Coat of arms of {{{official_name|}}}]]<br/>Municipal coat of arms|}}
+
| image_shield        = {{{image_shield|{{{img_coa|{{{name}}}-Stemma.png}}}}}}
  |{{#ifexist:media:{{{img_coa}}}
+
| shield_alt          = {{{shield_alt|}}}
  |[[Image:{{{img_coa}}}|140x140px|Coat of arms of {{{official_name|}}}]]<br/>Municipal coat of arms
+
| image_map          = {{{image_map|{{{map|}}}}}}
  |{{#ifexist:media:{{{name}}}-Stemma.png|[[Image:{{{name}}}-Stemma.png|140x140px|Coat of arms of {{{official_name|}}}]]<br/>Municipal coat of arms|}}}}
+
| map_alt            = {{{map_alt|}}}
}}
+
| map_caption        = {{{map_caption|}}}
<!-- ###### Locator map (auto-drawn using [[Template:Location map]]) -->
+
| pushpin_label_position = {{{pushpin_label_position|{{{locator_position|}}}}}}
|-
+
| pushpin_map_alt    = {{{pushpin_map_alt|}}}
{{#if:{{{mapx|}}}|
+
| latd  = {{{latd|{{{mapx|}}}}}} |latm  = {{{latm|}}} |lats  = {{{lats|}}} |latNS  = {{{latNS|}}}
{{!}} colspan="2" style="text-align: center; padding-top: 0em; padding-bottom: 0em;" {{!}}<center><div><div style="width:211px; background:transparent">
+
| longd = {{{longd|{{{mapy|}}}}}} |longm = {{{longm|}}} |longs =  {{{longs|}}} |longEW = {{{longEW|}}}  
<div style="position:relative; width:211px">[[Image:Italy Bolzano-Bozen relief location map.jpg|211px]]<br/><div style="position:absolute;z-index:200;
+
| coordinates_type    = {{{coordinates_type|}}}
top:{{#expr:100*(47.15-{{{mapx}}}) / (47.15-46.18) round 1}}%;
+
| coordinates_display = {{{coordinates_display|}}}
left:{{#expr:100*({{{mapy}}}-10.3) / (12.5-10.3) round 1}}%; height:0; width:0; margin:0; padding:0;">
+
| coordinates_footnotes = {{{coordinates_footnotes|}}}
<div style="position:relative; top:-4px; left:-4px; width:8px; text-align:center; z-index:201">[[Image:Red_pog.svg|8x8px]]</div>
+
| region              = {{{region|[[Trentino-Alto Adige/Südtirol]]}}}
{{#switch:{{#if:{{{locator_position|}}}|{{{locator_position}}}|right}}
+
| province            = {{{province|[[Province of Bolzano-Bozen|Bolzano-Bozen]]}}}
|right=<div style="font-size:90%; line-height:110%; position:relative; top:-1.5em; left:0.5em; text-align:left; width:6em; z-index:202;">
+
| frazioni            = {{{frazioni|}}}
|left=<div style="font-size:90%; line-height:110%; position:relative; top:-1.5em; left:-6.5em; width:6em; text-align:right; z-index:202;">
+
| mayor_party        = {{{mayor_party|}}}
}}<!--<span style="padding:1px;background:none">{{{native_name}}}</span>-->
+
| mayor              = {{{mayor|}}}
</div></div></div></div><small>Location of {{{name}}}</small></center>}}
+
| area_footnotes      = {{{area_footnotes|}}}
|-
+
| area_total_km2      = {{{area_total_km2|}}}
{{#if: {{{map<includeonly>|</includeonly>}}} |
+
| population_footnotes = {{{population_footnotes|}}}
{{!}} align="center" colspan="2" {{!}} [[Image:{{{map}}}|211px|center|{{{native_name}}}]]<center><small>{{{native_name}}} }}
+
| population_total    = {{{population_total|}}}
|- class="adr"
+
| population_as_of    = {{{population_as_of|}}}
| '''Country'''
+
| pop_density_footnotes = {{{pop_density_footnotes|}}}
|{{flagicon|Italy}} <span class="country-name">[[Italy]]</span>
+
| population_demonym  = {{{population_demonym|{{{gentilic|}}}}}}
|-
+
| elevation_footnotes = {{{elevation_footnotes|}}}
| '''[[Regions of Italy|Region]]'''
+
| elevation_m        = {{{elevation_m|}}}
|[[file:Flag of Trentino-South Tyrol.svg|26px]] [[Trentino-Alto Adige/Südtirol]]</span>
+
| twin1              = {{{twin1|}}}
|-
+
| twin1_country      = {{{twin1_country|}}}
| '''[[Provinces of Italy|Province]]'''
+
| saint              = {{{saint|}}}
|[[file:Flag of South Tyrol.svg|26px]] [[Province of Bolzano-Bozen|Bolzano-Bozen]]</span>
+
| day                = {{{day|}}}
|-
+
| postal_code        = {{{postal_code|{{{postalcode|}}}}}}
| {{#if:{{{mayor|}}}|'''Mayor'''}}
+
| area_code          = {{{area_code|{{{telephone|}}}}}}
| {{#if:{{{mayor|}}}|{{{mayor}}}}}
+
| website            = {{{website|}}}
|-
+
| footnotes          = {{{footnotes|}}}{{{coordinates|}}}
| {{#if:{{{mayor_party|}}}|<br/> &nbsp;- [[List of political parties in Italy|Party]]|}}
+
}}<noinclude><!--Leave <noinclude> starting in the same line as the last line of the template code-->
| {{#if:{{{mayor_party|}}}|<br/>{{{mayor_party}}}|}}
 
{{#if:{{{elevation_m|}}}
 
|{{!}}- class="note"
 
{{!}}'''Elevation'''
 
{{!}}{{convert|{{{elevation_m|}}}|m|ft|0|abbr=on}}}}{{#if:{{{elevation_footnotes|}}}|{{{elevation_footnotes|}}}}}
 
|-
 
{{#if:{{{area_total_km2|}}}
 
|{{!}}- class="note"
 
{{!}}'''Area'''
 
{{!}}{{km2 to sq mi|{{{area_total_km2|}}}|abbr=yes}}}}{{#if:{{{area_footnotes|}}}|{{{area_footnotes|}}}}}
 
|-
 
|colspan="2"| '''Population''' <small>{{#if:{{{population_as_of|}}}|(as of {{{population_as_of}}})|}}</small>
 
|-
 
|&nbsp;- Total
 
|{{#ifeq: {{#expr:{{{population_total|}}}*0}}|0|{{formatnum:{{{population_total|}}}}}|{{{population_total|}}}}}{{#if:{{{population_footnotes|}}}|{{{population_footnotes|}}}}}
 
|-
 
|&nbsp;- Density
 
|{{#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'''
 
| [[Central European Time|CET]], [[UTC+1]]
 
|-
 
| '''[[Geographic coordinate system|Coordinates]]'''
 
| {{{coordinates}}}
 
|-
 
| '''[[Demonym|Gentilic]]'''
 
| {{{gentilic}}}
 
|-
 
| '''[[Area codes in Italy|Dialing&nbsp;code]]'''
 
| {{{telephone}}}
 
|-  class="note"
 
| '''Postal code'''
 
| {{{postalcode}}}
 
|-
 
|{{#if:{{{frazioni|}}}|'''''[[Frazione|Frazioni]]'''''|}}
 
|<small>{{{frazioni|}}}</small>
 
|-
 
|{{#if:{{{saint|}}}|'''Patron'''|}}
 
|{{{saint|}}}
 
|-
 
|{{#if:{{{day|}}}|&nbsp;- Day|}}
 
|{{{day|}}}
 
|-
 
| 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:Italian subdivision infobox templates]]
 
[[Category:Italian subdivision infobox templates]]
{{Documentation, template}}
 
 
</noinclude>
 
</noinclude>

Revision as of 23:16, 6 November 2009