Difference between revisions of "Template:Infobox Germany district"

From blackwiki
Jump to navigation Jump to search
imported>Illegitimate Barrister
imported>TerraCyprus
m (TerraCyprus moved page Template:Infobox German district to Template:Infobox Germany district over redirect: use noun to clarify that this template is for districts in Germany and not for an ethnic/cultural German district in some other country, see Category:Templates calling Infobox settlement)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{Uses Infobox settlement}}
+
<includeonly>{{Infobox settlement
</noinclude>{{Infobox settlement
+
| name                  = {{{name}}}
|name                  = {{{name}}}
+
| settlement_type        = [[Districts of Germany|District]]
|settlement_type        = [[Districts of Germany|District]]
+
| image_skyline          = {{{image_skyline|}}}
|image_skyline          = {{{image_skyline|}}}
+
| imagesize              = {{{image_size|}}}
|imagesize              = {{{image_size|}}}
+
| image_caption          = {{{image_caption|}}}
|image_caption          = {{{image_caption|}}}
+
| image_shield          = {{{image_coa|}}}
|image_shield          = {{{image_coa|}}}
+
| image_flag             = {{{image_flag|}}}
|image_flag             = {{{image_flag|}}}
+
| image_map              = {{{map|}}}
|image_map              = {{{map|}}}
+
| map_caption            =  
|map_caption            =  
+
| mapsize                = 250x250px
|mapsize                = 250x250px
+
| coordinates           = {{{coordinates|}}}
|coordinates     = {{{coordinates|}}}
+
| subdivision_type      = [[List of sovereign states|Country]]
|subdivision_type      = [[List of sovereign states|Country]]
+
| subdivision_name      = [[Germany]]
|subdivision_name      = [[Germany]]
+
| subdivision_type1      = [[States of Germany|State]]
|subdivision_type1      = [[States of Germany|State]]
+
| subdivision_name1      = {{#switch: {{unlink|{{{state|}}} }}
|subdivision_name1      = {{#ifexist: {{{state}}} | [[{{{state}}}]] | {{{state}}} }}
+
| Bayern | Bavaria  = [[Bavaria]]
|subdivision_type2      = {{#if:{{{regierungsbezirk|}}}| [[Regierungsbezirk|Adm. region]]}}
+
| Baden-Wuerttemberg | Baden-Württemberg  = [[Baden-Württemberg]]
|subdivision_name2      = {{#ifexist: {{{regierungsbezirk}}} (region)
+
| Brandenburg = [[Brandenburg]]
 +
| Hessen | Hesse = [[Hesse]]
 +
| Mecklenburg-Vorpommern | Mecklenburg-Western Pomerania = [[Mecklenburg-Vorpommern]]
 +
| Niedersachsen | Lower Saxony = [[Lower Saxony]]
 +
| Nordrhein-Westfalen | NRW | North Rhine-Westphalia = [[North Rhine-Westphalia]]
 +
| Rheinland-Pfalz | Rhineland-Palatinate = [[Rhineland-Palatinate]]
 +
| Saarland = [[Saarland]]
 +
| Sachsen | Saxony = [[Saxony]]
 +
| Sachsen-Anhalt | Saxony-Anhalt = [[Saxony-Anhalt]]
 +
| Schleswig-Holstein = [[Schleswig-Holstein]]
 +
| Thüringen | Thuringia = [[Thuringia]]
 +
        | #default = {{{state|}}} {{ns0|[[Category:Germany articles requiring maintenance|S]]}}
 +
}}
 +
| subdivision_type2      = {{#if:{{{regierungsbezirk|}}}| [[Regierungsbezirk|Adm. region]]}}
 +
| subdivision_name2      = {{#ifexist: {{{regierungsbezirk}}} (region)
 
   | [[{{{regierungsbezirk}}} (region)|{{{regierungsbezirk}}}]]  
 
   | [[{{{regierungsbezirk}}} (region)|{{{regierungsbezirk}}}]]  
 
   | {{#ifexist: {{{regierungsbezirk}}}  
 
   | {{#ifexist: {{{regierungsbezirk}}}  
Line 28: Line 42:
 
  |subdivision_name3      =
 
  |subdivision_name3      =
 
-->
 
-->
|seat_type              = Capital
+
| seat_type              = Capital
|seat                    = {{{capital}}}
+
| seat                    = {{{capital}}}
|leader_title            = {{#if:{{{Landrat|}}}{{{district_admin|}}}{{{leader_name|}}}|District admin.}}
+
| leader_title            = {{#if:{{{Landrat|}}}{{{district_admin|}}}{{{leader_name|}}}|District admin.}}
|leader_name            = {{{Landrat|}}}{{{district_admin|}}}
+
| leader_name            = {{{Landrat|}}}{{{district_admin|}}}
|leader_party            = {{{admin_party|}}}
+
| leader_party            = {{{admin_party|}}}
|established_title      = {{#if:{{{founded|}}}|Founded}}
+
| established_title      = {{#if:{{{founded|}}}|Founded}}
|established_date        = {{{founded|}}}
+
| established_date        = {{{founded|}}}
|extinct_title          = {{#if:{{{dissolved|}}}|Disbanded}}
+
| extinct_title          = {{#if:{{{dissolved|}}}|Disbanded}}
|extinct_date            = {{{dissolved|}}}
+
| extinct_date            = {{{dissolved|}}}
|area_total_km2          = {{{area|}}}
+
| area_total_km2          = {{{area|}}}
 
<!-- Population either from database or manual -->
 
<!-- Population either from database or manual -->
|population_total        = {{#iferror:{{#expr:{{Population Germany|key={{{Kreisschlüssel|}}} }}+1}} | {{{population}}} {{#if:{{{dissolved|}}}| | {{ns0|[[Category:Germany articles requiring maintenance|Kreisschlüssel missing]]}} }} | {{Population Germany|key={{{Kreisschlüssel|}}} }} }}
+
| population_total        = {{#iferror:{{#expr:{{Population Germany|key={{{Kreisschlüssel|}}} }}+1}} | {{{population}}} {{#if:{{{dissolved|}}}| | {{ns0|[[Category:Germany articles requiring maintenance|Kreisschlüssel missing]]}} }} | {{Population Germany|key={{{Kreisschlüssel|}}} }} }}
|population_as_of        = {{#iferror:{{#expr:{{Population Germany|key={{{Kreisschlüssel|}}} }}+1}} | {{{population_as_of|}}} | {{#time:j F Y|{{Population Germany|key={{{Kreisschlüssel|}}}|datref=STAND}} }} }}
+
| population_as_of        = {{#iferror:{{#expr:{{Population Germany|key={{{Kreisschlüssel|}}} }}+1}} | {{{population_as_of|}}} | {{#time:j F Y|{{Population Germany|key={{{Kreisschlüssel|}}}|datref=STAND}} }} }}
|population_footnotes    = {{#iferror:{{#expr:{{Population Germany|key={{{Kreisschlüssel|}}} }}+1}} | {{{population_ref|}}} | {{#tag:ref| {{Population Germany|key={{{Kreisschlüssel|}}}|datref=QUELLE}} }} }}
+
| population_footnotes    = {{#iferror:{{#expr:{{Population Germany|key={{{Kreisschlüssel|}}} }}+1}} | {{{population_ref|}}} | {{#tag:ref| {{Population Germany|key={{{Kreisschlüssel|}}}|datref=QUELLE}} }} }}
|population_density_km2  = auto
+
| population_density_km2  = auto
|timezone                = [[Central European Time|CET]]
+
| timezone                = [[Central European Time|CET]]
|utc_offset              = +01:00
+
| utc_offset              = +01:00
|timezone_DST            = [[Central European Summer Time|CEST]]
+
| timezone_DST            = [[Central European Summer Time|CEST]]
|utc_offset_DST          = +02:00
+
| utc_offset_DST          = +02:00
|registration_plate    = {{{carsign|}}}
+
| registration_plate    = {{{carsign|}}}
|website                = {{{url|}}}
+
| website                = {{{url|}}}
 
}}<!--  
 
}}<!--  
 
  Categorisation  
 
  Categorisation  
-->{{#ifeq:{{NAMESPACE}}||[[Category:{{#if:{{{dissolved|}}}|Former districts|Districts}} of {{#switch: {{{state}}}
+
-->{{#ifeq:{{NAMESPACE}}||[[Category:{{#if:{{{dissolved|}}}|Former districts|Districts}} of {{#switch: {{unlink|{{{state|}}}  }}
| Bayern | Bavaria | [[Bavaria]] = Bavaria  
+
| Bayern | Bavaria = Bavaria  
| Baden-Wuerttemberg | Baden-Württemberg | [[Baden-Württemberg]] = Baden-Württemberg
+
| Baden-Wuerttemberg | Baden-Württemberg = Baden-Württemberg
| Brandenburg | [[Brandenburg]] = Brandenburg
+
| Brandenburg = Brandenburg
| Hessen | Hesse | [[Hesse]] = Hesse
+
| Hessen | Hesse = Hesse
| Mecklenburg-Vorpommern | Mecklenburg-Western Pomerania | [[Mecklenburg-Vorpommern]] | [[Mecklenburg-Western Pomerania]] = Mecklenburg-Vorpommern
+
| Mecklenburg-Vorpommern | Mecklenburg-Western Pomerania = Mecklenburg-Vorpommern
| Niedersachsen | Lower Saxony | [[Lower Saxony]] = Lower Saxony
+
| Niedersachsen | Lower Saxony = Lower Saxony
| Nordrhein-Westfalen | NRW | North Rhine-Westphalia | [[North Rhine-Westphalia]] = North Rhine-Westphalia
+
| Nordrhein-Westfalen | NRW | North Rhine-Westphalia = North Rhine-Westphalia
| Rheinland-Pfalz | Rhineland-Palatinate | [[Rhineland-Palatinate]] = Rhineland-Palatinate
+
| Rheinland-Pfalz | Rhineland-Palatinate = Rhineland-Palatinate
| Saarland | [[Saarland]] = the Saarland
+
| Saarland = the Saarland
| Sachsen | Saxony | [[Saxony]] = Saxony
+
| Sachsen | Saxony = Saxony
| Sachsen-Anhalt | Saxony-Anhalt | [[Saxony-Anhalt]] = Saxony-Anhalt
+
| Sachsen-Anhalt | Saxony-Anhalt = Saxony-Anhalt
| Schleswig-Holstein | [[Schleswig-Holstein]] = Schleswig-Holstein
+
| Schleswig-Holstein = Schleswig-Holstein
| Thüringen | Thuringia | [[Thuringia]] = Thuringia
+
| Thüringen | Thuringia = Thuringia
 
         | Germany
 
         | Germany
}}]]}}<noinclude>
+
}}]]}}</includeonly><noinclude>
 
+
{{Documentation}}
Full syntax:
 
 
 
<pre>
 
{{Infobox District DE
 
|name = 
 
|map =
 
|image_coa =
 
|image_flag =
 
|state =
 
|regierungsbezirk =
 
|region =
 
|capital =
 
|area =
 
|Kreisschlüssel =
 
|population = (only for disbanded districts)
 
|population_as_of = (only for disbanded districts)
 
|district_admin=
 
|admin_party=
 
|carsign =
 
|founded =
 
|dissolved = (only for disbanded districts)
 
|url =
 
}}</pre>
 
 
 
[[Category:Germany subdivision infobox templates|District]]
 
 
 
[[eo:Ŝablono:Des]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 19:23, 26 October 2020

Template documentation[view] [edit] [history] [purge]

Template:Uses Infobox settlement

  1. redirect Template:Parameter names example

Infobox for German districts

Full syntax:

{{Infobox Germany district
| name =  
| map =
| image_coa = 
| image_flag = 
| state =
| regierungsbezirk = 
| region = 
| capital = 
| area = 
| coordinates = {{Coord}}
| Kreisschlüssel = (the official geographical code of the district)
| population = (only for disbanded districts)
| population_as_of = (only for disbanded districts)
| district_admin =
| admin_party=
| carsign = 
| founded =
| dissolved = (only for disbanded districts)
| url = 
}}