Difference between revisions of "Template:Infobox German Location"

From Hitchwiki
Jump to navigation Jump to search
m
 
 
(35 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{|
+
<noinclude>
class="infobox geography vcard" style="width:23em; text-align:left;"
+
== How to use this Template? ==
|- class="adr"
+
For using this template, copy&paste the following code to the '''top''' of the German city article you want to edit. You can delete unused parameters. To better understand how to use it see [[#Examples|examples]] bellow. You can also use [[:Template:Infobox Location]] instead.
| colspan="2" align=center style="background: #D8E2EF; width:100%; font-size: 1.25em; line-height: 1.2;"| '''{{<!-- --see Note X1-->
+
<pre>
#if:{{{German_name|{{{name_local|<noinclude>x</noinclude>}}}}}}
+
{{Infobox German Location
  |{{#ifeq:{{{German_name|{{{name_local|<noinclude>x</noinclude>}}} }}}|x<!--see Note X1-->
+
|name =
    |<!--then--> ''{{{German_name or name_local}}}'' <br/>
+
|name_native =
    |<!--else--> ''{{{German_name|{{{name_local}}}}}}'' <br/>
+
|symbol =
  }}<!--endifeq--  --see Note AKA2-->
+
|map =  
}}<!--endif-->{{
+
|pop =  
#if:{{{Name|{{{name|<noinclude>x</noinclude>}}}}}}
+
|state =  
  |{{#ifeq:{{{Name|{{{name|<noinclude>x</noinclude>}}} }}}|x
+
|plate =
    |<!--then--><span class="fn org">{{{Name or name}}}</span>
+
|motorways =  
    |<!--else--><span class="fn org">{{{Name|{{{name}}}}}}</span>
+
|hitchbase =
  }}<!--endifeq Name-->
+
|links =
  |<!--else--><span class="fn org">{{PAGENAME}}</span>}}'''
 
<!--}}-NOT-endif Name-->
 
|-
 
<!-- Notification it the location is part of a city of larger location. Such locations are not really suited for this infobox. -->
 
{{#if: {{{City|}}}{{{Town|}}}|
 
{{!}} colspan="2" align=center style="width:100%; font-size: 1.20em;"{{!}} ''{{{Art|{{{type|Suburb}}}}}} of <!--
 
-->{{#if:{{{City|}}}|{{#ifexist:{{{City|}}}|[[{{{City}}}]]|{{{City}}}}}|<!--
 
-->{{#if:{{{Town|}}}|{{#ifexist:{{{Town|}}}|[[{{{Town}}}]]|{{{Town}}}}}}}}}''
 
 
}}
 
}}
|-
+
</pre>
{{#if:{{{image_photo|{{{repres_image|<noinclude>x</noinclude>}}}}}}
+
 
  |{{!}} colspan="2" style="text-align: center; padding: 0.0em 0.0em 0.0em 0.0em;;" {{!}} {{  <!--see Note FOTO2-->
+
== Examples ==
  #ifeq:{{{image_photo|{{{repres_image|<noinclude>x</noinclude>}}}}}}|x
+
{| class="wikitable"
    |{{Location_map | Germany | AlternativeMap=Dummy flag.png
+
! Code
|    label=<nowiki>{{{image_photo}}} of {{{imagesize}}} (268px)
+
! Result
      </nowiki><br/><br/><br><br><nowiki>{{{infoboxwidth}}} (270px)
 
      </nowiki> | lat=52.3 | long=11.7 | marksize=1 | caption=
 
|    float=center | width=270 }}
 
    |<!--else-top-image-->[[Image:{{{image_photo|{{{repres_image|Dummy flag.png}}} }}}|{{  <!--see Note SIZ3-->
 
    #if:{{{imagesize|}}}|{{{imagesize}}}|<!--else-->268px }}|{{
 
    #if:{{{imagesize|}}}|{{{imagesize}}}px<!--also put "size+px"-->
 
      |<!--else-->none<!--placeholder to avoid 2 vertical-bars-->
 
    }}<!--endif2-->|none|{{{image_caption|}}}]]
 
  }}<!--endifeq image_photo-->{{
 
  #if:{{{image_caption|<noinclude>x</noinclude>}}}
 
    |<small>{{{image_caption}}}</small>
 
  }}<!--endif image_caption-->
 
}}<!--endif image_photo-->
 
|-
 
| align="center" style="width: 50%; background:#D8E2EF;" |'''Coat of arms'''
 
| align="center" style="width: 50%; background:#D8E2EF;" |'''Location'''
 
|-
 
| align="center" style="width: 50%; vertical-align: middle; padding: 0.2em 0.2em 0.2em 0.2em;" | {{
 
#if: {{{Wappen|{{{image_coa|}}}}}}  <!--see Note COA4-->
 
  |<!--then--> {{#switch: {{lc:{{{Wappen|{{{image_coa}}}}}}}}
 
  | none | kein | führt kein wappen.png
 
  | führt kein wappen.svg | führt_kein_wappen.png
 
  | führt_kein_wappen.svg =
 
    [[Image:Dummy coa.png|90px|{{{Name|{{{name|{{PAGENAME}}}}}}}} has no coat of arms]]
 
  | #default = [[Image:{{{Wappen|{{{image_coa}}}}}}|{{
 
    #ifexpr: 0{{{Wappengröße|}}} < 1 or 0{{{Wappengröße|}}} > 120
 
      | 120<!--max is "120x110px"-->
 
      | {{{Wappengröße}}}<!--see Note CEN2--><!--see Note BUG3-->
 
    }}x110px|none|Coat of arms of {{{Name|{{{name|{{PAGENAME}}}}}}}}]]
 
  }}<!--endswitch lc-->
 
  |<!--else-->[[Image:Sin escudo.svg|90px|Wappen or image_coa]]
 
}}<!--endif Wappen-->{{
 
#ifexist:Coat of arms of {{PAGENAME}}
 
  |<br/>[[Coat of arms of {{PAGENAME}}|Details]]
 
}}<!--endifexist-->
 
| align="center" style="width: 50%; vertical-align: top; padding: 0.2em 0.2em 0.2em 0.2em;" | {{
 
#if: {{{Karte|{{{image_map|}}}}}}
 
  |<!--link map-->[[Image:{{{Karte|{{{image_map|}}}}}}|100x120px|Map of Germany, Position of {{{Name|{{{name|{{PAGENAME}}}}}}}} highlighted]]
 
  |<!--else-blank-map-->{{
 
  #if: {{{lat_deg|}}}
 
    | {{Location map|Germany
 
      |label=  | position=  | background=
 
      |lat= {{#expr: {{{lat_deg|0}}} + ({{{lat_min|0}}} / 60)}}
 
      |long= {{#expr: {{{lon_deg|0}}} + ({{{lon_min|0}}} / 60)}}
 
      |mark= Red_pog2.svg<!--see Talk "Redundant marker"-->
 
      |caption=  |float=center | width=110 | border=none}}
 
    |<!--else no latitude-->[[Image:Unknown location in Germany.png|100px|Coordinates missing!]] {{
 
      #ifeq:{{NAMESPACE}}|
 
      |[[Category:Germany articles requiring maintenance|C]]}}
 
  }}<!--endif lat_deg-->
 
}}<!--endif Karte-->
 
 
|-
 
|-
| colspan="2" align=center style="background:#D8E2EF;" | '''Administration'''
+
| <pre>{{Infobox German Location
|- class="mergedtoprow"
+
|name = Nuremberg
! [[List of Countries|Country]]
+
|name_native = Nürnberg
| {{DEU}}
+
|symbol = Wappen von Nürnberg.svg
|- class="mergedrow"
+
|map = <map lat='49.417' lng='11.1' zoom='10' />
| '''[[States of Germany|State]]''' || {{#if:{{{Bundesland|{{{state|<noinclude>x</noinclude>}}}}}}|{{
+
|pop = 502491
#switch:"{{{Bundesland|{{{state|<noinclude>x</noinclude>}}}}}}"
+
|state = Bavaria
  | "Bayern" | "Bavaria" | "[[Bavaria]]" = [[Bavaria]]
+
|plate = N
  | "Baden-Wuerttemberg" | "[[Baden-Württemberg]]"
+
|motorways = {{Ade|3}} {{Ade|6}} {{Ade|9}} {{Ade|73}}
    | "Baden-Württemberg"= [[Baden-Württemberg]]
+
}}</pre>
  | "Berlin" | "[[Berlin]]" = [[Berlin]]
+
| {{Infobox German Location
  | "Brandenburg" | "[[Brandenburg]]" = [[Brandenburg]]
+
|name = Nuremberg
  | "Bremen" = [[Bremen (state)|Bremen]]
+
|name_native = Nürnberg
  | "Hamburg" = [[Hamburg]]
+
|symbol = Wappen von Nürnberg.svg
  | "Hessen" | "Hesse" | "[[Hesse]]" = [[Hesse]]
+
|map = <map lat='49.417' lng='11.1' zoom='10' />
  | "Mecklenburg-Western Pomerania" |"MVP"
+
|pop = 502491
    |"Mecklenburg-Vorpommern" | "[[Mecklenburg-Vorpommern]]" = [[Mecklenburg-Vorpommern]]
+
|state = Bavaria
  | "Niedersachsen" | "Lower Saxony" | "[[Lower Saxony]]" = [[Lower Saxony]]
+
|plate = N
  | "Nordrhein-Westfalen"  | "NRW" | "North Rhine-Westphalia"
+
|motorways = {{Ade|3}} {{Ade|6}} {{Ade|9}} {{Ade|73}}
    | "North Rhine-Westfalia" | "[[North Rhine-Westphalia]]" = [[North Rhine-Westphalia]]
 
  | "Rheinland-Pfalz" | "Rhineland-Palatinate"
 
    | "[[Rhineland-Palatinate]]" = [[Rhineland-Palatinate]]
 
  | "Saarland"| "[[Saarland]]" = [[Saarland]]
 
  | "Sachsen" | "Saxony" | "[[Saxony]]" = [[Saxony]]
 
  | "Sachsen-Anhalt" | "Saxony-Anhalt" | "[[Saxony-Anhalt]]" = [[Saxony-Anhalt]]
 
  | "Schleswig-Holstein" | "[[Schleswig-Holstein]]" = [[Schleswig-Holstein]]
 
  | "Thüringen" | "Thueringen" | "Thuringia" | "[[Thuringia]]" = [[Thuringia]]
 
  | "x"=<nowiki>{{{Bundesland or state}}}</nowiki>
 
  | #default = ''Invalid state: "{{{Bundesland|{{{state|}}}}}}"'' {{#ifeq:{{NAMESPACE}}||[[Category:Germany articles requiring maintenance|X]]}}
 
}}|''Enter Bundesland'' {{#ifeq:{{NAMESPACE}}||[[Category:Germany articles requiring maintenance|X]]}}}}
 
|- class="mergedrow"
 
{{#if: {{{Regierungsbezirk|{{{regbzk|{{{region|<noinclude>x</noinclude>}}}}}}}}}
 
|<!--then-->{{!}} '''[[Regierungsbezirk|Admin. region]]''' {{!!}} <!-- wikilink existing region name, otherwise plain text --> {{
 
#switch:{{{Regierungsbezirk|{{{regbzk|{{{region|<noinclude>x</noinclude>}}}}}}}}}
 
  | Köln = [[Cologne (region)|Cologne]]
 
  | Mittelfranken = [[Middle Franconia]]
 
  | Niederbayern = [[Lower Bavaria]]
 
  | Oberbayern = [[Upper Bavaria]]
 
  | Oberfranken = [[Upper Franconia]]
 
  | Schwaben = [[Swabia (administrative region)|Swabia]]
 
  | Unterfranken = [[Lower Franconia]]
 
  | x = <nowiki>{{{Regierungsbezirk or region or regbzk}}}</nowiki>
 
  | #default = {{#ifexist: {{{Regierungsbezirk|{{{regbzk|{{{region}}}}}}}}} (region)
 
    | [[{{{Regierungsbezirk|{{{regbzk|{{{region}}}}}}}}} (region)|{{{Regierungsbezirk|{{{regbzk|{{{region}}}}}}}}}]]
 
    | {{#ifexist: {{{Regierungsbezirk|{{{regbzk|{{{region}}}}}}}}}
 
      | [[{{{Regierungsbezirk|{{{regbzk|{{{region}}}}}}}}}]]
 
      |<!--else-->{{{Regierungsbezirk|{{{regbzk|{{{region}}}}}}}}}
 
    }}<!--endifexist-->
 
  }}<!--endifexist--> }}<!--endswitch Regierungsbezirk-->
 
}}<!--endif Regierungsbezirk-->
 
|- class="mergedrow"
 
| '''[[Districts of Germany|District]]''' || {{#switch:{{{Art|{{{type|}}}}}}
 
  | [[Kreisfreie Stadt|Stadt]]
 
    |Kreisfreie Stadt=[[Urban districts of Germany|Urban district]]
 
  | #default = {{
 
  #if: {{{Landkreis|{{{Kreis|{{{district|}}}}}}}}}
 
    |<!--then--> {{
 
    #switch:{{ucfirst:{{{Landkreis|{{{Kreis|{{{district|}}}}}}}}} }}
 
    | Kreisfreie Stadt | [[Kreisfreie Stadt{{!}}Stadt]]
 
      |Urban  | Urban district
 
      |Stadtkreis=[[Urban districts of Germany{{!}}Urban district]]
 
    | #default = {{
 
    #ifexist:{{{Landkreis|{{{Kreis|{{{district|}}}}}}}}} (district)
 
      |<!--wlink ending in "(district)"--> [[{{{Landkreis|{{{Kreis|{{{district|}}}}}}}}} (district)|{{{Landkreis|{{{Kreis|{{{district|}}}}}}}}}]]
 
      |<!--else--> {{#ifexist:{{{Landkreis|{{{Kreis|{{{district|}}}}}}}}}
 
      |<!--wlink not ending in "(district)"--> [[{{{Landkreis|{{{Kreis|{{{district|}}}}}}}}} |{{{Landkreis|{{{Kreis|{{{district|}}}}}}}}}]]
 
      |<!--else--> {{{Landkreis|{{{Kreis|{{{district|}}} }}} }}}
 
    }} }}<!--endifexist-Landkreis-->
 
    }}<!--endswitch-->
 
    |<!--else--> <nowiki>{{{Kreis or district}}}</nowiki><!--
 
    -------------------------------------- Categorization -->{{
 
    #ifeq:{{NAMESPACE}}|
 
      |[[Category:Germany articles requiring maintenance|X]]}}
 
  }}<!--endif-Landkreis-->
 
}}<!--endswitch-- ------------------------ Gliederung/divisions-->
 
|- {{#if: {{{Gliederung|{{{divisions|<noinclude>x</noinclude>}}}}}}{{{Bürgermeister|{{{mayor|}}}}}} | class="mergedrow" | class="mergedbottomrow" }}
 
{{#if: {{{Amt|<noinclude>x</noinclude>}}} |
 
{{!}} '''[[Amt (country subdivision)|Municipal assoc.]]''' {{!!}} {{#ifexist:{{{Amt}}} (Amt) | [[{{{Amt}}} (Amt)|{{{Amt}}}]] | {{#ifexist:{{{Amt}}} | [[{{{Amt}}}]] | {{{Amt}}} }} }}
 
}}
 
|- {{#if: {{{Gliederung|{{{divisions|<noinclude>x</noinclude>}}}}}}{{{Bürgermeister|{{{mayor|}}}}}} | class="mergedrow" | class="mergedbottomrow" }}
 
{{#if: {{{Gemeindeverwaltungsverband|<noinclude>x</noinclude>}}} |
 
{{!}} '''[[Gemeindeverwaltungsverband|Municipal assoc.]]''' {{!!}} {{#ifexist: {{{Gemeindeverwaltungsverband}}} (Gemeindeverwaltungsverband) | [[{{{Gemeindeverwaltungsverband}}} (Gemeindeverwaltungsverband)|{{{Gemeindeverwaltungsverband}}}]] | {{#ifexist: {{{Gemeindeverwaltungsverband}}} | [[{{{Gemeindeverwaltungsverband}}}]] | <small>{{{Gemeindeverwaltungsverband}}}</small>&nbsp;&nbsp;&nbsp; }} }}
 
}}
 
|- {{#if: {{{Gliederung|{{{divisions|<noinclude>x</noinclude>}}}}}}{{{Bürgermeister|{{{mayor|}}}}}} | class="mergedrow" | class="mergedbottomrow" }}
 
{{#if: {{{Samtgemeinde|<noinclude>x</noinclude>}}} |
 
{{!}} '''[[Samtgemeinde|Municipal assoc.]]''' {{!!}} {{#ifexist: {{{Samtgemeinde}}} (Samtgemeinde) | [[{{{Samtgemeinde}}} (Samtgemeinde)|{{{Samtgemeinde}}}]] | {{#ifexist: {{{Samtgemeinde}}} | [[{{{Samtgemeinde}}}]]|{{{Samtgemeinde}}}}} }}
 
}}
 
|- {{#if: {{{Gliederung|{{{divisions|<noinclude>x</noinclude>}}}}}}{{{Bürgermeister|{{{mayor|}}}}}} | class="mergedrow" | class="mergedbottomrow" }}
 
{{#if: {{{Verbandsgemeinde|<noinclude>x</noinclude>}}} |
 
{{!}} '''[[Verbandsgemeinde|Municipal assoc.]]''' {{!!}} {{#ifexist: {{{Verbandsgemeinde}}} (Verbandsgemeinde) | [[{{{Verbandsgemeinde}}} (Verbandsgemeinde)|{{{Verbandsgemeinde}}}]] | {{#ifexist: {{{Verbandsgemeinde}}} | [[{{{Verbandsgemeinde}}}]] | {{{Verbandsgemeinde}}} }} }}
 
}}
 
|- {{#if: {{{Gliederung|{{{divisions|<noinclude>x</noinclude>}}}}}}{{{Bürgermeister|{{{mayor|}}}}}} | class="mergedrow" | class="mergedbottomrow" }}
 
{{#if: {{{Verwaltungsgemeinschaft|<noinclude>x</noinclude>}}} |
 
{{!}} '''[[Verwaltungsgemeinschaft|Municipal assoc.]]''' {{!!}} {{#ifexist: {{{Verwaltungsgemeinschaft}}} (Verwaltungsgemeinschaft) | [[{{{Verwaltungsgemeinschaft}}} (Verwaltungsgemeinschaft) |{{{Verwaltungsgemeinschaft}}}]] | {{#ifexist: {{{Verwaltungsgemeinschaft}}} | [[{{{Verwaltungsgemeinschaft}}}]] | {{{Verwaltungsgemeinschaft}}} }} }}
 
}}
 
|- {{#if: {{{Gliederung|{{{divisions|<noinclude>x</noinclude>}}}}}}{{{Bürgermeister|{{{mayor|}}}}}} | class="mergedrow" | class="mergedbottomrow" }}
 
{{#if: {{{Verwaltungsverband|<noinclude>x</noinclude>}}} |
 
{{!}} '''[[Verwaltungsverband|Municipal assoc.]]''' {{!!}} {{#ifexist: {{{Verwaltungsverband}}} (Verwaltungsverband) | [[{{{Verwaltungsverband}}} (Verwaltungsverband)|{{{Verwaltungsverband}}}]] | {{#ifexist: {{{Verwaltungsverband}}} | [[{{{Verwaltungsverband}}}]] | {{{Verwaltungsverband}}} }} }}
 
}}
 
|- {{#if: {{{Bürgermeister|{{{mayor|<noinclude>x</noinclude>}}}}}} | class="mergedrow" | class="mergedbottomrow" }}
 
{{#if: {{{Gliederung|<noinclude>x</noinclude>}}} |
 
{{!}} {{#switch: {{{Art|{{{type|}}}}}}
 
| Markt | Ortsgemeinde | Gemeinde | Municipality | municipality = '''Municipal subdivisions'''
 
| Amt | Gemeindeverwaltungsverband | Samtgemeinde | Verbandsgemeinde | Verwaltungsgemeinschaft | Verwaltungsverband = '''Composition'''
 
        | Stadt | Kreisfreie Stadt | [[Kreisfreie Stadt|Stadt]] | City | city = {{#ifexpr:{{{Einwohner|{{{population|0}}}}}} > 100000 | '''City subdivisions''' | '''Town subdivisions'''}}
 
        | Town | town = '''Town subdivisions'''
 
| #default = '''{{ucfirst:{{{Art|{{{type|Local}}}}}}}} subdivisions'''
 
}} {{!!}} {{{Gliederung|{{{divisions}}} }}}
 
}}
 
|-  {{#if:{{{ruling_party1|<noinclude>x</noinclude>}}}|class="mergedrow"|class="mergedbottomrow"}}
 
{{#if: {{{Bürgermeister|{{{mayor|<noinclude>x</noinclude>}}}}}} |
 
{{!}} '''{{#switch: "{{{Bürgermeistertitel}}}"
 
  | "Mayor" | "Bürgermeister" | "[[Bürgermeister]]"
 
  | "Bürgermeisterin" | "[[Bürgermeisterin]]"
 
  |"Ortsbürgermeister"|"Ortsbürgermeisterin" = [[Burgomaster|Mayor]]
 
  | "Lord Mayor" | "Oberbürgermeister" | "[[Oberbürgermeister]]"
 
  | "Oberbürgermeisterin" | "[[Oberbürgermeisterin]]"=[[Lord Mayor]]
 
  | "Ortsvorsteher" | "[[Ortsvorsteher]]" = Local representative
 
  | "Ortsvorsteherin" | "[[Ortsvorsteherin]]" = Local representative
 
  | "Samtgemeindebürgermeister" = [[Bürgermeister|Samtgemeinde-<br />bürgermeister]]
 
  | "Samtgemeindebürgermeisterin" = [[Bürgermeister|Samtgemeinde-<br />bürgermeisterin]]
 
  | #default = {{#ifexist: {{{Bürgermeistertitel}}} | [[{{{Bürgermeistertitel}}}]] | {{#if: {{{Bürgermeistertitel|}}} | {{{Bürgermeistertitel}}} | [[Burgomaster|Mayor]] }} }}
 
}}''' {{!!}}{{
 
#ifexist: {{{Bürgermeister|{{{mayor|}}}}}}
 
  |<!--then-wikilink-->[[{{{Bürgermeister|{{{mayor|}}} }}}]]
 
  |<!--else-nolink-->{{
 
  #ifeq:{{{Bürgermeister|{{{mayor|<noinclude>x</noinclude>}}}}}}|x
 
    |<!--then-say-text-->{{{Bürgermeister or mayor}}}
 
    |<!--else-show-name-->{{{Bürgermeister|{{{mayor|}}} }}}
 
  }}<!--endifeq-->
 
  }}<!--endifexist-->{{
 
  #if: {{{Partei |{{{party|<noinclude>x</noinclude>}}}}}}
 
    |{{#ifeq: {{{Partei|{{{party|<noinclude>x</noinclude>}}}}}}|x
 
      |<!--then-say-text-->( {{{Partei or party}}}&nbsp;)
 
      |&nbsp;({{Polparty|Germany|{{{Partei|{{{party}}}}}} }})
 
    }}<!--endifeq-->
 
  }}<!--endif Partei-->
 
}}
 
|- {{#if:{{{ruling_party1|<noinclude>x</noinclude>}}}|class="mergedbottomrow"}}
 
{{#if:{{{ruling_party1|<noinclude>x</noinclude>}}}
 
| {{!}} {{#if:{{{ruling_party2|}}} | '''[[Political party| Governing parties]]''' | '''[[Political party|Governing party]]'''}} {{!!}} {{Polparty|Germany|{{{ruling_party1}}}}} {{#if:{{{ruling_party2|}}} |/&nbsp;{{Polparty|Germany|{{{ruling_party2}}}}} }} {{#if:{{{ruling_party3|}}} |/&nbsp;{{Polparty|Germany|{{{ruling_party3}}}}} }}
 
}}
 
|-
 
{{#if: {{{Fläche|{{{area|<noinclude>x</noinclude>}}}}}}{{{Einwohner|{{{population|}}}}}}{{{Höhe|{{{elevation|}}}}}}{{{year|}}}
 
| {{!}} colspan="2" align=center style="background:#D8E2EF;" {{!}} '''Basic statistics'''
 
}}
 
|- {{#if: {{{area_metro|<noinclude>x</noinclude>}}}{{{Höhe|{{{elevation|<noinclude>x</noinclude>}}}}}} | class="mergedtoprow"}}
 
{{#if: {{{Fläche|{{{area|}}}}}}
 
  |{{!}} '''[[Area]]''' {{!!}} {{km2 to mi2|{{{Fläche|{{{area|0}}}}}}|abbr=yes|wiki=no}}
 
  |<!--else-->{{#ifeq: {{{Fläche|{{{area|<noinclude>x</noinclude>}}}}}}|x
 
    |{{!}} '''[[Area]]''' {{!!}}{{{Fläche ''or'' &nbsp;area}}} km² (0 sq mi)
 
  }}
 
}}<!--endif Fläche/area-->
 
|- {{#if: {{{Höhe|{{{elevation|<noinclude>x</noinclude>}}}}}} | class="mergedrow" | class="mergedbottomrow"}}
 
{{#if: {{{area_metro|<noinclude>x</noinclude>}}} |
 
{{!}} &nbsp;- '''[[Metropolitan area|Metro]]''' {{!!}} {{formatnum:{{#expr:0{{{area_metro|}}} round 0}}}}&nbsp;[[km²]]&nbsp;({{formatnum:{{#expr:0{{{area_metro|}}} div 2.589988110336 round 0}}}}&nbsp;[[Square mile|sq&nbsp;mi]])
 
}}
 
|- {{#if: {{{Fläche|{{{area|<noinclude>x</noinclude>}}}}}}{{{Höhe|{{{elevation|<noinclude>x</noinclude>}}}}}}| class="mergedrow" }}
 
<!-------------------------------- Handle elevation/elevationmax-->
 
{{#if: {{{Höhe|{{{elevation|}}}}}}
 
  |<!--put Elevation part-->{{!}}'''[[Elevation]]''' {{!!}} {{
 
    formatnum:{{{Höhe|{{{elevation}}}}}} }}{{
 
  #if: {{{elevationmax|}}}
 
    |<!--then "-" max-->-{{formatnum:{{{elevationmax}}}}} m &nbsp;({{
 
        formatnum:{{#expr: 0{{{Höhe|{{{elevation|}}}}}}*3.281 round 0}}}}-{{
 
        formatnum:{{#expr: 0{{{elevationmax|}}} * 3.281 round 0}}}}&nbsp;ft)
 
    |<!--else-1-elevation-->&nbsp;m {{
 
    #ifexpr: 0{{{Höhe|{{{elevation|}}}}}} <0 |<!--then ignore-->
 
      |<!--else-calc-feet--> &nbsp;({{
 
        #expr:0{{{Höhe|{{{elevation|}}}}}}*3.281 round 0}}&nbsp;ft)
 
    }}<!-- endifexpr 0+Hohe -- Checking for negative to bypass
 
  -- ranges of elevation (as used in many articles). When a minus is
 
  -- used ("9-18"), code subtracts the values, gets result below 0
 
  -- & skips converting to feet. Use elevationmax for range.-->
 
  }}<!--endif elevationmax-->
 
  |<!--else-->{{#ifeq: {{{Höhe|{{{elevation|<noinclude>x</noinclude>}}}}}}|x
 
  |{{!}}'''[[Elevation]]'''{{!!}}X-Xmax '''m''' (y-ymax ''ft'')<!--
 
      --><br/> &nbsp; X is {{{Höhe ''or'' &nbsp;elevation}}}<br/
 
      > &nbsp; Xmax <small
 
      >optional <nowiki>{{{elevationmax}}}</nowiki></small>
 
  }}<!--endifeq-->
 
}}<!--endif Höhe/elevation-->
 
|- class="mergedrow"
 
{{#if: {{{Einwohner|{{{population|}}}}}}
 
  |{{!}} '''[[Population]]'''{{#if: {{{pop_ref|}}}|<sup>&nbsp;</sup>}}
 
{{!!}} {{formatnum:{{{Einwohner|{{{population}}}}}}}} &nbsp;{{
 
#if: {{{Stand|{{{population_as_of|}}}}}} | {{#switch: {{#time:n|{{{Stand|{{{population_as_of}}}}}}}}
 
| 1|2|3|4|5|6|7|8|9|10|11|12 = <small>''({{#time:d/m/Y|{{{Stand|{{{population_as_of}}}}}}}})''</small>
 
| #default = <div {{Highlight2}}>'''Please give "Stand or population_as_of" in YYYY-MM-DD [[Calendar date|format]] , e.&nbsp;g. 2005-12-31'''</div>}}}}{{#if: {{{pop_ref|}}}|{{{pop_ref|}}}}}{{#if: {{{pop_source|}}}|[[Category:Germany articles requiring maintenance|I]]}}
 
  |{{!}} '''[[Population]]''' {{!!}} {{{Einwohner ''or'' &nbsp;population}}}
 
}}<!--endif Einwohner/population-->
 
|- {{#if: {{{pop_urban|{{{pop_metro|{{{year|<noinclude>x</noinclude>}}}}}}}}}|
 
  class="mergedrow"|class="mergedbottomrow"}}
 
{{#if: {{{Fläche|{{{area|<noinclude>x</noinclude>}}}}}} | {{#if: {{{Einwohner|{{{population|<noinclude>x</noinclude>}}}}}} |
 
{{!}} &nbsp;- '''[[Population density|Density]]''' {{!!}} {{formatnum:{{#expr: {{{Einwohner|{{{population|0}}}}}} / {{{Fläche|{{{area|1}}}}}} round 0}}}} /km²&nbsp;({{formatnum:{{#expr: {{{Einwohner|{{{population|0}}}}}} * 2.589988110336 div {{{Fläche|{{{area|1}}}}}} round 0}}}}&nbsp;/sq&nbsp;mi)
 
}}}}
 
|- class="mergedrow"
 
{{#if: {{{pop_urban|<noinclude>x</noinclude>}}} |
 
{{!}} &nbsp;- '''[[Urban area{{!}}Urban]]''' {{!!}} {{formatnum:{{{pop_urban}}}}}
 
}}
 
|- class="mergedrow"
 
{{#if: {{{pop_metro|<noinclude>x</noinclude>}}} |
 
{{!}} &nbsp;- '''[[Metropolitan area|Metro]]''' {{!!}} {{formatnum:{{{pop_metro}}}}}&nbsp;{{#if: {{{pop_metro_date|}}} | {{#switch: {{#time:n|{{{pop_metro_date}}}}}
 
| 1|2|3|4|5|6|7|8|9|10|11|12 = <small>''({{#time:m/Y|{{{pop_metro_date}}}}})''</small>
 
| #default = <div {{Highlight2}}>'''Please give "pop_metro_date" in YYYY-MM-DD [[Calendar date|format]] , e.&nbsp;g. 2005-12-31'''</div>}}}}
 
}}
 
|- class="mergedbottomrow" |
 
{{#if: {{{year|<noinclude>x</noinclude>}}} |
 
{{!}} '''Founded''' {{!!}} {{#ifexist:{{{year}}}|{{#ifeq:{{#expr:{{{year}}}<100}}|1|[[{{{year}}}|{{{year}}} AD]]|[[{{{year}}}]]}}|{{{year}}}}}
 
 
}}
 
}}
 
|-
 
|-
{{#if: {{{PLZ|{{{postal_code|<noinclude>x</noinclude>}}}}}}{{{Vorwahl|{{{area_code|}}}}}}{{{Kfz|{{{licence|{{{license|}}}}}}}}}{{{Website|{{{website|}}}}}} | {{!}} colspan="2" align=center style="background:#D8E2EF;" {{!}} '''Other information'''
+
| <pre>{{Infobox German Location
}}
+
|map = <map lat='54.3245' lng='10.13' zoom='11' />
|- class="mergedtoprow" |
+
|pop = 236902
| '''[[Time zone]]''' <!-- (standard/[[Daylight saving time|DST]]} -->
+
|state = Schleswig-Holstein
| [[Central European Time|CET]]/[[Central European Summer Time|CEST]] ([[UTC+1]]/[[UTC+2|+2]])
+
|plate = KI
|- class="mergedrow" |
+
|motorways = [[A7 (Germany)|A7]], [[A210 (Germany)|A210]], [[A215 (Germany)|A215]]
{{#if: {{{Kfz|{{{licence|{{{license|<noinclude>x</noinclude>}}}}}}}}}
+
}}</pre>
  |{{!}} '''[[German car number plates|Licence plate]]''' {{!!}} {{
+
| {{Infobox German Location
  #if: {{{Kfz|{{{licence|{{{license|}}} }}} }}}
+
|name = Kiel
    |<!--then show value-->{{{Kfz|{{{licence|{{{license|}}} }}} }}}
+
|map = <map lat='54.3245' lng='10.13' zoom='11' />
    |<!--else state-->{{{Kfz ''or'' licence ''or'' &nbsp;license}}}
+
|pop = 236902
  }}<!--endif Kfz-->
+
|state = Schleswig-Holstein
}}<!--endif Kfz/x-->
+
|plate = KI
|- class="mergedrow" |
+
|motorways = [[A7 (Germany)|A7]], [[A210 (Germany)|A210]], [[A215 (Germany)|A215]]
{{#if: {{{PLZ|{{{postal_code|<noinclude>x</noinclude>}}}}}}
 
    |{{!}} '''[[List of postal codes in Germany|Postal code]]{{
 
    #ifeq: {{#expr:{{{PLZ|{{{postal_code}}}}}} }}
 
      | {{{PLZ|{{{postal_code}}}}}} | | s }}''' {{!!}} {{
 
    #if: {{{PLZ|{{{postal_code|}}}}}}
 
      |<!--then show value-->{{{PLZ|{{{postal_code}}}}}}
 
      |<!--else say-->{{{PLZ ''or'' &nbsp;postal_code}}}
 
    }}<!--endif PLZ-->
 
  }}<!--endif PLZ/x-->
 
|- class="mergedrow" |
 
{{#if: {{{Vorwahl|{{{area_code|<noinclude>x</noinclude>}}}}}} |
 
{{!}} '''[[Area codes in Germany|Area code]]{{#ifeq: {{#expr:{{{ Vorwahl|{{{area_code}}} }}}}} | {{{Vorwahl|{{{area_code}}}}}} | | s }}''' {{!!}} {{#if: {{{Vorwahl|{{{area_code|}}}}}}|{{{Vorwahl|{{{area_code|}}}}}}|{{{Vorwahl ''or'' &nbsp;area_code}}} }}
 
}}
 
|- class="mergedbottomrow" |<!--start text on next line-->
 
{{#if: {{{Website|{{{website|<noinclude>xWeb</noinclude>}}}}}}
 
  |{{!}} '''[[Website]]''' {{!!}} {{
 
  #if: {{{Website|{{{website|}}}}}}
 
    |<!--then-show-->{{{Website|{{{website|}}} }}}
 
    |<!--else-say--> {{{Website ''or'' &nbsp;website}}}
 
  }}<!--endif Website/website-->
 
}}<!--endif Website/x - --
 
----------------------------------------- Check bottom map -->
 
{{#if: {{{Lageplan|{{{image_plan|<noinclude>x</noinclude>}}}}}}|
 
{{!-}}
 
! colspan="2" align="center" style="background:#D8E2EF;" {{!}} {{#if: {{{Lageplanbeschreibung|{{{plantext|<noinclude>x</noinclude>}}}}}} | {{{Lageplanbeschreibung|{{{plantext|<nowiki>{{{Lageplanbeschreibung or plantext}}}</nowiki>}}}}}} | Location of {{
 
#switch: {{ucfirst:{{{Art|{{{type|}}}}}}}}
 
| <!-- blank --> =  
 
| Amt | Gemeindeverwaltungsverband | Verwaltungsverband = {{#if: {{{Name|{{{name|}}}}}} | the {{{Art|{{{type|}}}}}} | of }}
 
| Samtgemeinde | Verbandsgemeinde | Verwaltungsgemeinschaft = {{#if: {{{Name|{{{name|}}}}}} | the {{{Art|{{{type|}}}}}} | of }}
 
        | Stadt | Town = the town of
 
        | Großstadt | City = the city of
 
        | Kreisfreie Stadt | Stadtteil | Stadtsbezirk | Suburb | Ward | Borrough =  
 
| #default = {{#if: {{{Art|{{{type|}}}}}} | the {{lc:{{{Art|{{{type}}}}}}}} of}}
 
}} {{{Name|{{{name|{{PAGENAME}}}}}}}} {{#if: {{{City|{{{Town|}}}}}} | within {{{City|{{{Town|}}}}}} | {{#if: {{{Kreis|{{{Landkreis|{{{district|}}}}}}}}} | within {{#switch: {{ucfirst:{{{Landkreis|{{{Kreis|{{{district|}}}}}}}}} }}
 
| Kreisfreie Stadt | [[Kreisfreie Stadt|Stadt]] | Urban | Urban district = {{#switch:"{{{Bundesland|{{{state|}}}}}}"
 
          | "Bayern" = Bavaria
 
    | "Baden-Wuerttemberg" = Baden-Württemberg
 
          | "Bremen" = Bremen
 
  | "Hessen" = Hesse
 
  | "Mecklenburg-Vorpommern" = Mecklenburg-Western Pomerania
 
  | "Niedersachsen" = Lower Saxony
 
  | "Nordrhein-Westfalen"  | "NRW" = North Rhine-Westphalia
 
  | "Rheinland-Pfalz" = Rhineland-Palatinate
 
  | "Sachsen" = Saxony
 
  | "Sachsen-Anhalt" = Saxony-Anhalt
 
  | "Thüringen" = Thuringia
 
          | #default ={{{Bundesland|{{{state}}}}}}
 
        }}
 
| #default = {{{Kreis|{{{Landkreis|{{{district|}}}}}}}}} district
 
}} }} }} }} <!--
 
------------------------------------------------- Bottom map -->
 
{{!}}-
 
{{!}} colspan="2" align="center" {{!}}{{
 
  #ifeq:{{{image_plan|{{{Lageplan|<noinclude>x</noinclude>}}}}}}|x
 
    |{{Location_map | Germany | AlternativeMap=Dummy flag.png
 
|    label=<nowiki>{{{image_plan}}} of {{{plansize}}} (265px)
 
      </nowiki> | lat=51.9 | long=11.7 | marksize=1 | caption=
 
|    float=center | width=270 }}
 
NOTE: Omit " Image: " from any image names.
 
    |<!--else-close-image-->[[Image:{{{image_plan|{{{Lageplan|Dummy flag.png}}} }}}|{{
 
  #if:{{{plansize|}}}|{{{plansize}}}|<!--else-->265px }}|{{
 
  #if:{{{plansize|}}}|{{{plansize}}}px<!--also put "size+px"-->
 
    |<!--else-->none<!--placeholder to avoid double vertical-bars-->
 
  }}<!--endif2-->|none|{{
 
  #if: {{{Lageplanbeschreibung|}}}
 
    | {{{Lageplanbeschreibung}}} |<!--else-->Map}}]]
 
  }}<!--endifeq image_plan=x -->
 
 
}}
 
}}
<!-- ----------------------------------- Generate "Coord" function
+
|}
-->{{#if: {{{lat_deg|<noinclude>x</noinclude>}}} | {{Coord|{{{lat_deg|}}}|{{{lat_min|}}}|{{{lat_sec|}}}|N|{{{lon_deg|}}}|{{{lon_min|}}}|{{{lon_sec|}}}|E |display=title |type:{{
+
</noinclude><includeonly>{{Infobox Location
#switch: {{{Art|{{{type|}}}}}}
+
|name = {{{name|}}}
  | Amt | Gemeindeverwaltungsverband | Samtgemeinde
+
|name_native = {{{name_native|}}}
    | Verbandsgemeinde | Verwaltungsgemeinschaft
+
|country = Germany
    | Verwaltungsverband = adm2nd
+
|state = {{{state|}}}
  | #default = city{{#if: {{{Einwohner|{{{population|}}}}}} | ({{#expr:{{{Einwohner|{{{population}}} }}} round 0}}) }}
+
|state_symbol = Coat_of_arms_of_{{{state}}}.png
}}_region:DE{{
+
|symbol = {{{symbol|}}}
#switch: {{{Bundesland|{{{state}}}}}}
+
|map = {{{map|}}}
  | <!-- empty -->
+
|pop = {{{pop|}}}
  | Bayern | Bavaria | [[Bavaria]] = -BY
+
|plate = {{{plate|}}}
  | Baden-Wuerttemberg | Baden-Württemberg | [[Baden-Württemberg]] = -BW
+
|motorways = {{{motorways|}}}
  | Berlin | [[Berlin]] = -BE
+
|hitchbase = {{{hitchbase|}}}
  | Brandenburg | [[Brandenburg]] = -BR
+
|links = {{{links|}}}
  | Bremen | [[Bremen]] = -HB
+
}}</includeonly><noinclude>
  | Hamburg | [[Hamburg]] = -HH
+
[[Category:Infoboxes]]
  | Hessen | Hesse | [[Hesse]] = -HE
 
  | Mecklenburg-Vorpommern | Mecklenburg-Western Pomerania  | Mecklenburg-Vorpommern
 
    | [[Mecklenburg-Western Pomerania]] = -MV
 
  | Niedersachsen | Lower Saxony | [[Lower Saxony]] = -NI
 
  | Nordrhein-Westfalen | NRW | North Rhine-Westphalia | [[North Rhine-Westphalia]] = -NW
 
  | Rheinland-Pfalz | Rhineland-Palatinate | [[Rhineland-Palatinate]] = -RP
 
  | Saarland | [[Saarland]] = -SL
 
  | Sachsen | Saxony | [[Saxony]] = -SN
 
  | Sachsen-Anhalt | Saxony-Anhalt | [[Saxony-Anhalt]] = -ST
 
  | Schleswig-Holstein | [[Schleswig-Holstein]] = -SH
 
  | Thüringen | Thuringia | [[Thuringia]] = -TH
 
}} }} }}
 
|}<!--end infobox table--><!--
 
--  Any non-Category text generated below this point might
 
--  force article's left-side text below the infobox table. --
 
--
 
------------------------------------- Assignment to categories
 
-->{{#if:{{{_noautocat|<noinclude>x</noinclude>}}}||<!--
 
(TYPE) in (STATE) -->{{#if:{{{City|}}}{{{Town|}}}|<!-- [[Category:Germany articles requiring maintenance|T]] -->|{{#switch: {{ucfirst:{{{Art|{{{type|}}}}}}}}
 
  | <!-- Values for "Art" which are not supported by this template --> Ortsteil | Stadtteil | Suburb = [[Category:Germany articles requiring maintenance|Art]]
 
  | #default = {{#if:{{{Bundesland|{{{state|}}}}}}|[[Category:{{
 
  #switch: {{{Art|{{{type|}}}}}}
 
| Ortsgemeinde | Gemeinde | Markt | Municipality
 
          | municipality = Municipalities
 
| Amt = Ämter
 
        | Gemeindeverwaltungsverband = Gemeindeverwaltungsverbände
 
        | Samtgemeinde =  Samtgemeinden
 
        | Verbandsgemeinde = Verbandsgemeinde
 
        | Verwaltungsgemeinschaft = Verwaltungsgemeinschaften
 
        | Verwaltungsverband = Verwaltungsverbände
 
        | Stadt | Kreisfreie Stadt | [[Kreisfreie Stadt|Stadt]] | City | city | Town | town = {{#ifexpr:{{{Einwohner|{{{population|0}}}}}} > 100000 | Cities | Towns}}
 
        | Village | Dorf = Villages
 
| #default = Municipalities
 
}} in {{#switch: {{{Bundesland|{{{state|}}}}}}
 
| Bayern | Bavaria | [[Bavaria]] = Bavaria
 
| Baden-Wuerttemberg | Baden-Württemberg | [[Baden-Württemberg]] = Baden-Württemberg
 
| Berlin | [[Berlin]] = Berlin
 
| Brandenburg | [[Brandenburg]] = Brandenburg
 
| Bremen | [[Bremen]] = Bremen
 
| Hamburg | [[Hamburg]] = Hamburg
 
| Hessen | Hesse | [[Hesse]] = Hesse
 
| Mecklenburg-Vorpommern | Mecklenburg-Western Pomerania | [[Mecklenburg-Vorpommern]]
 
          | [[Mecklenburg-Western Pomerania]] = Mecklenburg-Vorpommern
 
| Niedersachsen | Lower Saxony | [[Lower Saxony]] = Lower Saxony
 
| Nordrhein-Westfalen | NRW | North Rhine-Westphalia | [[North Rhine-Westphalia]] = North Rhine-Westphalia
 
| Rheinland-Pfalz | Rhineland-Palatinate | [[Rhineland-Palatinate]] = Rhineland-Palatinate
 
| Saarland | [[Saarland]] = Saarland
 
| Sachsen | Saxony | [[Saxony]] = Saxony
 
| Sachsen-Anhalt | Saxony-Anhalt | [[Saxony-Anhalt]] = Saxony-Anhalt
 
| Schleswig-Holstein | [[Schleswig-Holstein]] = Schleswig-Holstein
 
| Thüringen | Thuringia | [[Thuringia]] = Thuringia
 
}}]]}}}}}}<!--
 
Establisment date -->{{#ifexist:{{{year}}}|{{#ifexist:Category:Settlements established in the {{{year}}}|[[Category:Settlements established in the {{{year}}}]] | [[Category:Settlements established in {{{year}}}]]}}}}}}<!--
 
Assign to maintenance category if decimal point is used in population as a thousands divider -->{{#ifeq: {{#expr: {{#expr: {{{Einwohner|{{{population|0}}}}}} round 0 }} = {{{Einwohner|{{{population|0}}}}}}}}| 0 | [[Category:Germany articles requiring maintenance|D]] }}<!--
 
--><noinclude>
 
{{template doc}}
 
[[Category:European city infobox templates|German Location]]
 
[[Category:Templates using ParserFunctions|Infobox German Location]]
 
[[Category:Coordinates templates|Infobox German Location]]<!--
 
--
 
--NOTES: (alpha order)
 
--
 
-- Note AKA2: Parameter aliases "{{{Einwohner|{{{population}}}}}}"
 
--        are nested defaults, using 2nd name if 1st omitted, but
 
--        if blank ("Einwohner="), 2nd name "population" is ignored.
 
-- Note BUG3: In September 2007, the MediaWiki software was still
 
--            infantile beta technology with numerous simple bugs.
 
-- Note CEN2: Even in column align="center" image must be centered,
 
--            but <nowiki>"[[Image: |center|...]]"</nowiki> has bug
 
--            chopping bottom line of image & "&nbsp" won't indent.
 
-- Note COA4: Coat-of-Arms image_coa widens infobox table seeking
 
--            size 120x110px (almost unpredictable infobox width).
 
-- Note FOTO2: The blank template displays top image_photo using
 
--            Template:Location_map to show parameters on image.
 
-- Note SIZ3: Image sizes allow optional "px" by putting both sizes
 
--            as "250px|250pxpx" where the "pxpx" form is ignored.
 
-- Note X1: For the blank template, some parameters are defaulted
 
--          as value "x" indicating to show parameter names.
 
--
 
--HISTORY:
 
-- 30Sep07 Added "plantext" for Lageplanbeschreibung.
 
-- 30Sep07 Added "elevationmax" to show range of elevations.
 
--
 
-- [ These comment lines process at 5000 lines < 1 second. ] -->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 08:24, 3 October 2017

How to use this Template?

For using this template, copy&paste the following code to the top of the German city article you want to edit. You can delete unused parameters. To better understand how to use it see examples bellow. You can also use Template:Infobox Location instead.

{{Infobox German Location
|name = 
|name_native = 
|symbol = 
|map = 
|pop = 
|state = 
|plate = 
|motorways = 
|hitchbase = 
|links = 
}}

Examples

Code Result
{{Infobox German Location
|name = Nuremberg
|name_native = Nürnberg
|symbol = Wappen von Nürnberg.svg
|map = <map lat='49.417' lng='11.1' zoom='10' />
|pop = 502491
|state = Bavaria
|plate = N
|motorways = {{Ade|3}} {{Ade|6}} {{Ade|9}} {{Ade|73}}
}}
Wappen von Nürnberg.svgNuremberg
Nürnberg
<map lat='49.417' lng='11.1' zoom='10' />
Information
Country:
Flag of Germany
Germany
State:
Coat of arms of Bavaria.png
Bavaria
Population: 502,491
Licence plate: N
Major roads: A 3 A 6 A 9 A 73
Meet fellow hitchhikers on Trustroots
{{Infobox German Location
|map = <map lat='54.3245' lng='10.13' zoom='11' />
|pop = 236902
|state = Schleswig-Holstein
|plate = KI
|motorways = [[A7 (Germany)|A7]], [[A210 (Germany)|A210]], [[A215 (Germany)|A215]]
}}
Kiel
<map lat='54.3245' lng='10.13' zoom='11' />
Information
Country:
Flag of Germany
Germany
State:
Coat of arms of Schleswig-Holstein.png
Schleswig-Holstein
Population: 236,902
Licence plate: KI
Major roads: A7, A210, A215
Meet fellow hitchhikers on Trustroots