Purpose and use of the template 编辑

The template "Population Germany" is used by the infoboxes {{Infobox German location}} and {{Infobox German district}} to retrieve population data for subdivisions of Germany from a central database. The template can also be used outside those infoboxes. The template uses codes for the subdivisions that have been defined by the federal statistics office of Germany (see this link for codes). There is a separate database for each federal state of Germany. The databases are updated regularly, see below.

Parameters 编辑

The template is called as follows:

  • the population of a city, town or municipality: {{Population Germany|key=15088220}}, result: 33593 (for Merseburg)
  • the population of a district: {{Population Germany|key=15088}}, result: 183434 (for Saalekreis)
  • the population of a region (Regierungsbezirk): {{Population Germany|key=053}}, result: 4475530 (for Cologne region)
  • the population of a state: {{Population Germany|key=15}}, result: 2180684 (for Saxony-Anhalt)
  • the date for which the population data apply: {{Population Germany|key=15|datref=STAND}}, result: 2020年12月31日 (for Saxony-Anhalt), or {{Population Germany|key=06634005|datref=STAND}}, result: 2020年12月31日 (for Fritzlar, Hesse)
  • the reference for the population: {{Population Germany|key=15|datref=QUELLE}}, result: Bevölkerung der Gemeinden – Stand: 31. Dezember 2020 (PDF). Statistisches Landesamt Sachsen-Anhalt. 2021年6月 (德语).  (for Saxony-Anhalt)

Note: the template Population Germany does not accept codes in which the numbers are grouped, e.g. 15 0 88 220. Use the template {{Schlüsselconverter}} for this:

  • {{Population Germany|key={{Schlüsselconverter|15 0 88 220}} }}, result: 33593.

The template Schlüsselconverter accepts codes formatted like AA B CC DDD and AABCCDDD.

Updating the database 编辑

The data are copied from German Wikipedia. This link shows changes to the database templates in German Wikipedia in the last 30 days. If there is a significant change, that hasn't been implemented in English Wikipedia yet (see the table below, and compare with the dates in German Wikipedia), you can update the files at English Wikipedia. Open the German file (e.g. Saarland), and copy the part between the first line with "STAND" in it and the last line with a municipality code in it (in this case "Tholey") to the corresponding part in the English file (in this case {{Metadata Population DE-SL}}). If you don't feel confident editing templates, just leave a note at Template talk:Infobox German location. Several experienced editors watch that talk page.

數據模板 數據截至日期 文獻參考
Baden-Württemberg
巴登-符腾堡
{{Metadata Population DE-BW}} 2020年12月31日 Bevölkerung nach Nationalität und Geschlecht am 31. Dezember 2020. Statistisches Landesamt Baden-Württemberg. 2021年6月 (德语). 
Bayern
巴伐利亚
(Bavaria)
{{Metadata Population DE-BY}} 2020年12月31日 Tabellenblatt "Daten 2", Statistischer Bericht A1200C 202041 Einwohnerzahlen der Gemeinden, Kreise und Regierungsbezirke. Bayerisches Landesamt für Statistik. 2021年6月 (德语). 
Brandenburg
勃兰登堡
{{Metadata Population DE-BB}} 2020年12月31日 Bevölkerung im Land Brandenburg nach amtsfreien Gemeinden, Ämtern und Gemeinden 31. Dezember 2020. Amt für Statistik Berlin-Brandenburg. 2021年6月 (德语). 
Bremen
不来梅
{{Metadata Population DE-HB}} 2020年12月31日 Bevölkerungsentwicklung im Land Bremen (PDF). Statistisches Landesamt Bremen. 2021年6月 (德语). 
Hessen
黑森
(Hesse)
{{Metadata Population DE-HE}} 2020年12月31日 Bevölkerung in Hessen am 31.12.2020 nach Gemeinden. Hessisches Statistisches Landesamt. 2021年6月 (德语). 
Mecklenburg-Vorpommern
梅克伦堡-前波美拉尼亚
{{Metadata Population DE-MV}} 2020年12月31日 Statistisches Amt M-V – Bevölkerungsstand der Kreise, Ämter und Gemeinden 2020. Statistisches Amt Mecklenburg-Vorpommern. 2021年7月 (德语). 
Niedersachsen
下萨克森
(Lower Saxony)
{{Metadata Population DE-NI}} 2020年12月31日 Landesamt für Statistik Niedersachsen, LSN-Online Regionaldatenbank, Tabelle A100001G: Fortschreibung des Bevölkerungsstandes, Stand 31. Dezember 2020(德文).
Nordrhein-Westfalen
北莱茵-威斯特法伦
(North Rhine-Westphalia)
{{Metadata Population DE-NW}} 2020年12月31日 Bevölkerung der Gemeinden Nordrhein-Westfalens am 31. Dezember 2020. Landesbetrieb Information und Technik NRW. [2021年6月] (德语). 
Rheinland-Pfalz
莱茵兰-普法尔茨
(Rhineland-Palatinate)
{{Metadata Population DE-RP}} 2020年12月31日 Bevölkerungsstand 2020, Kreise, Gemeinden, Verbandsgemeinden. Statistisches Landesamt Rheinland-Pfalz. 2021年 (德语). 
Saarland
萨尔兰
{{Metadata Population DE-SL}} 2020年12月31日 Saarland.de – Amtliche Einwohnerzahlen Stand 31. Dezember 2020 (PDF). Statistisches Amt des Saarlandes. 2021年6月 (德语). 
Sachsen
萨克森
(Saxony)
{{Metadata Population DE-SN}} 2020年12月31日 Bevölkerung des Freistaates Sachsen nach Gemeinden am 31. Dezember 2020. Statistisches Landesamt des Freistaates Sachsen. 2021年6月 (德语). 
Sachsen-Anhalt
萨克森-安哈尔特
(Saxony-Anhalt)
{{Metadata Population DE-ST}} 2020年12月31日 Bevölkerung der Gemeinden – Stand: 31. Dezember 2020 (PDF). Statistisches Landesamt Sachsen-Anhalt. 2021年6月 (德语). 
Schleswig-Holstein
石勒苏益格-荷尔斯泰因
{{Metadata Population DE-SH}} 2020年12月31日 Statistikamt Nord – Bevölkerung der Gemeinden in Schleswig-Holstein 4. Quartal 2020 (XLS-file). Statistisches Amt für Hamburg und Schleswig-Holstein (德语). 
Thüringen
图林根
(Thuringia)
{{Metadata Population DE-TH}} 2020年12月31日 Bevölkerung der Gemeinden, erfüllenden Gemeinden und Verwaltungsgemeinschaften in Thüringen Gebietsstand: 31.12.2020. Thüringer Landesamt für Statistik. 2021年6月 (德语).