Template:Population Germany/doc:修订间差异
更新于EN维基2020-04-27版本 |
→Updating the database: 加入參考文獻以及中文州名 |
||
第26行: | 第26行: | ||
{|class="wikitable sortable" |
{|class="wikitable sortable" |
||
! 州!! 數據模板 !! 數據截至日期 |
|||
! State !! Database !! Data as of |
|||
! style="width: 30em;" | 文獻參考 |
|||
|- |
|- |
||
| |
|{{lang|de|Baden-Württemberg}}<br />[[巴登-符腾堡]] || {{tl|Metadata Population DE-BW}} || {{Metadata Population DE-BW||STAND}} || {{Metadata Population DE-BW||QUELLE}} |
||
|- |
|- |
||
| |
|{{lang|de|Bayern}}<br />[[巴伐利亚]]<br /><small>{{lang|en|''(Bavaria)''}}</small> || {{tl|Metadata Population DE-BY}} || {{Metadata Population DE-BY||STAND}} || {{Metadata Population DE-BY||QUELLE}} |
||
|- |
|- |
||
| |
|{{lang|de|Brandenburg}}<br />[[勃兰登堡]] || {{tl|Metadata Population DE-BB}} || {{Metadata Population DE-BB||STAND}} || {{Metadata Population DE-BB||QUELLE}} |
||
|- |
|- |
||
| |
|{{lang|de|Bremen}}<br />[[不来梅]] || {{tl|Metadata Population DE-HB}} || {{Metadata Population DE-HB||STAND}} || {{Metadata Population DE-HB||QUELLE}} |
||
|- |
|- |
||
|Hesse || {{tl|Metadata Population DE-HE}} || {{Metadata Population DE-HE||STAND}} |
|{{lang|de|Hessen}}<br />[[黑森]]<br /><small>{{lang|en|''(Hesse)''}}</small> || {{tl|Metadata Population DE-HE}} || {{Metadata Population DE-HE||STAND}} || {{Metadata Population DE-HE||QUELLE}} |
||
|- |
|- |
||
| |
|{{lang|de|Mecklenburg-Vorpommern}}<br />[[梅克伦堡-前波美拉尼亚]] || {{tl|Metadata Population DE-MV}} || {{Metadata Population DE-MV||STAND}} || {{Metadata Population DE-MV||QUELLE}} |
||
|- |
|- |
||
| |
|{{lang|de|Niedersachsen}}<br />[[下萨克森]]<br /><small>{{lang|en|''(Lower Saxony)''}}</small> || {{tl|Metadata Population DE-NI}} || {{Metadata Population DE-NI||STAND}} || {{Metadata Population DE-NI||QUELLE}} |
||
|- |
|- |
||
| |
|{{lang|de|Nordrhein-Westfalen}}<br />[[北莱茵-威斯特法伦]]<br /><small>{{lang|en|''(North Rhine-Westphalia)''}}</small> || {{tl|Metadata Population DE-NW}} || {{Metadata Population DE-NW||STAND}} || {{Metadata Population DE-NW||QUELLE}} |
||
|- |
|- |
||
| |
|{{lang|de|Rheinland-Pfalz}}<br />[[莱茵兰-普法尔茨]]<br /><small>{{lang|en|''(Rhineland-Palatinate)''}}</small> || {{tl|Metadata Population DE-RP}} || {{Metadata Population DE-RP||STAND}} || {{Metadata Population DE-RP||QUELLE}} |
||
|- |
|- |
||
| |
|{{lang|de|Saarland}}<br />[[萨尔兰]] || {{tl|Metadata Population DE-SL}} || {{Metadata Population DE-SL||STAND}} || {{Metadata Population DE-SL||QUELLE}} |
||
|- |
|- |
||
| |
|{{lang|de|Sachsen}}<br />[[萨克森]]<br /><small>{{lang|en|''(Saxony)''}}</small> || {{tl|Metadata Population DE-SN}} || {{Metadata Population DE-SN||STAND}} || {{Metadata Population DE-SN||QUELLE}} |
||
|- |
|- |
||
|Saxony || {{tl|Metadata Population DE- |
|{{lang|de|Sachsen-Anhalt}}<br />[[萨克森-安哈尔特]]<br /><small>{{lang|en|''(Saxony-Anhalt)''}}</small> || {{tl|Metadata Population DE-ST}} || {{Metadata Population DE-ST||STAND}} || {{Metadata Population DE-ST||QUELLE}} |
||
|- |
|- |
||
| |
|{{lang|de|Schleswig-Holstein}}<br />[[石勒苏益格-荷尔斯泰因]] || {{tl|Metadata Population DE-SH}} || {{Metadata Population DE-SH||STAND}} || {{Metadata Population DE-SH||QUELLE}} |
||
|- |
|- |
||
|Thuringia || {{tl|Metadata Population DE-TH}} || {{Metadata Population DE-TH||STAND}} |
|{{lang|de|Thüringen}}<br />[[图林根]]<br /><small>{{lang|en|''(Thuringia)''}}</small> || {{tl|Metadata Population DE-TH}} || {{Metadata Population DE-TH||STAND}} || {{Metadata Population DE-TH||QUELLE}} |
||
|} |
|} |
||
<includeonly>{{Sandbox other|| |
<includeonly>{{Sandbox other|| |
2020年11月29日 (日) 05:39的最新版本
此頁面是Template:Population Germany的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
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: 34335 (for Merseburg)
- the population of a district: {{Population Germany|key=15088}}, result: 183974 (for Saalekreis)
- the population of a region (Regierungsbezirk): {{Population Germany|key=053}}, result: 4543189 (for Cologne region)
- the population of a state: {{Population Germany|key=15}}, result: 2186643 (for Saxony-Anhalt)
- the date for which the population data apply: {{Population Germany|key=15|datref=STAND}}, result: 2022-12-31 (for Saxony-Anhalt), or {{Population Germany|key=06634005|datref=STAND}}, result: 2022-12-31 (for Fritzlar, Hesse)
- the reference for the population: {{Population Germany|key=15|datref=QUELLE}}, result: Bevölkerung der Gemeinden – Stand: 31. Dezember 2022 (PDF). Statistisches Landesamt Sachsen-Anhalt. June 2023 (German). (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: 34335.
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.