سانچہ:Population Germany

آزاد دائرۃ المعارف، ویکیپیڈیا سے
:چھلانگ بطرف رہنمائی، تلاش
Documentation icon دستاویز سانچہ[نمائش] [ترمیم] [تاریخچہ] [تطہیر]

Purpose and use of the template[ترمیم]

The template "Population Germany" is used by the infoboxes {{Infobox German location}}, {{Infobox District DE}}, {{Infobox German Regierungsbezirk}} and {{Infobox German State}} 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:

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: 33520.

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), 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}}). And update the table below (only the date under "Last updated"). 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.

State Database Data as of Last updated
Schleswig-Holstein {{Metadata Population DE-SH}} 2012-12-31 2012-08-31
Lower Saxony {{Metadata Population DE-NI}} سانچہ:Metadata Population DE-NI 2012-08-05
Bremen {{Metadata Population DE-HB}} سانچہ:Metadata Population DE-HB 2012-08-31
North Rhine-Westphalia {{Metadata Population DE-NW}} سانچہ:Metadata Population DE-NW 2011-06-27
Hesse {{Metadata Population DE-HE}} سانچہ:Metadata Population DE-HE 2011-07-02
Rhineland-Palatinate {{Metadata Population DE-RP}} سانچہ:Metadata Population DE-RP 2010-06-27
Baden-Württemberg {{Metadata Population DE-BW}} سانچہ:Metadata Population DE-BW 2010-09-01
Bavaria {{Metadata Population DE-BY}} 2012-12-31 2011-07-02
Saarland {{Metadata Population DE-SL}} سانچہ:Metadata Population DE-SL 2011-07-02
Brandenburg {{Metadata Population DE-BB}} سانچہ:Metadata Population DE-BB 2011-07-02
Mecklenburg-Vorpommern {{Metadata Population DE-MV}} سانچہ:Metadata Population DE-MV 2011-07-03
Saxony {{Metadata Population DE-SN}} سانچہ:Metadata Population DE-SN 2011-06-13
Saxony-Anhalt {{Metadata Population DE-ST}} 2012-12-31 2010-07-23
Thuringia {{Metadata Population DE-TH}} سانچہ:Metadata Population DE-TH 2011-07-02