Difference between revisions of "Template:Austria metadata Wikidata/doc"
imported>Underlying lk m (Underlying lk moved page Template:Austria population Wikidata/doc to Template:Austria metadata Wikidata/doc) |
imported>Underlying lk |
||
| Line 3: | Line 3: | ||
This template can be used to feed population figures from Wikidata to fields in templates such as {{tl|Infobox settlement}}. | This template can be used to feed population figures from Wikidata to fields in templates such as {{tl|Infobox settlement}}. | ||
| − | {{tl|Austria | + | {{tl|Austria metadata Wikidata}} works by checking if the Wikidata entity linked to the article has a {{wpl|P1082}} statement dating to 1 January 2018 and sourced by an external reference (not {{wpl|P143}} or similar properties). If the condition is verified, the population figure is displayed. |
For a usage example, see {{oldid2|886924685|Eisenstadt}}. | For a usage example, see {{oldid2|886924685|Eisenstadt}}. | ||
| Line 10: | Line 10: | ||
=== Usage === | === Usage === | ||
| − | <pre>{{Austria | + | <pre>{{Austria metadata Wikidata|population_footnotes}}</pre> |
OR | OR | ||
| − | <pre>{{Austria | + | <pre>{{Austria metadata Wikidata|population_total}}</pre> |
OR | OR | ||
| − | <pre>{{Austria | + | <pre>{{Austria metadata Wikidata|population_as_of}}</pre> |
=== Updating the figures=== | === Updating the figures=== | ||
| Line 56: | Line 56: | ||
=== Usage === | === Usage === | ||
| − | <pre>{{Austria | + | <pre>{{Austria metadata Wikidata|area_footnotes}}</pre> |
OR | OR | ||
| − | <pre>{{Austria | + | <pre>{{Austria metadata Wikidata|area_total_km2}}</pre> |
=== Updating the figures=== | === Updating the figures=== | ||
Revision as of 16:32, 10 March 2019
| This is a documentation subpage for Template:Austria metadata Wikidata. It contains usage information, categories and other content that is not part of the original template page. |
This template can be used to feed population figures from Wikidata to fields in templates such as {{Infobox settlement}}.
{{Austria metadata Wikidata}} works by checking if the Wikidata entity linked to the article has a Template:Wpl statement dating to 1 January 2018 and sourced by an external reference (not Template:Wpl or similar properties). If the condition is verified, the population figure is displayed.
For a usage example, see Eisenstadt.
Contents
Population
Usage
{{Austria metadata Wikidata|population_footnotes}}
OR
{{Austria metadata Wikidata|population_total}}
OR
{{Austria metadata Wikidata|population_as_of}}
Updating the figures
1. Updated population figures are published on the Statistik Austria website.
2. The mappings between Wikidata IDs for municipalities and municipality keys are available through this Wikidata Query. The two tables can be linked through the VLOOKUP function in Excel (or any other spreadsheet program).
3. QuickStatements can be used to rapidly upload hundreds of statements in one go. Choosing the 'Run in background' option is advised, so that the process will continue even if the browser window crashes or is closed.
The example below uploads the updated population of Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q126321) as of 1 January 2018, using the QuickStatements V1 syntax:
Q126321 P1082 14476 P585 +2018-01-01T00:00:00Z/11 S854 "https://www.statistik.at/web_de/klassifikationen/regionale_gliederungen/gemeinden/index.html" S1476 de:"Einwohnerzahl 1.1.2018 nach Gemeinden mit Status, Gebietsstand 1.1.2018" S813 +2019-03-09T00:00:00Z/11 S123 Q358870
The same command, using the csv syntax:
qid,P1082,qal585,S854,s1476,s813,s123 Q126321,14476,+2018-01-01T00:00:00Z/11,""""https://www.statistik.at/web_de/klassifikationen/regionale_gliederungen/gemeinden/index.html",de:"Einwohnerzahl 1.1.2018 nach Gemeinden mit Status Gebietsstand 1.1.2018",+2019-03-09T00:00:00Z/11,Q358870
This uploads this statement to the entity Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q126321):
- Template:Wpl: 14476
this qualifier:
- Template:Wpl: +2018-01-01T00:00:00Z/11
and the following references:
- Template:Wpl: "https://www.statistik.at/web_de/klassifikationen/regionale_gliederungen/gemeinden/index.html"
- Template:Wpl: de:"Einwohnerzahl 1.1.2018 nach Gemeinden mit Status, Gebietsstand 1.1.2018"
- Template:Wpl: +2019-03-09T00:00:00Z/11
- Template:Wpl: Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q358870)
Area
Usage
{{Austria metadata Wikidata|area_footnotes}}
OR
{{Austria metadata Wikidata|area_total_km2}}
Updating the figures
The same procedure can be used to update the area figures:
qid,P2046,qal585,S854,s1476,s813,s123 Q126321,42.88U712226,+2018-01-01T00:00:00Z/11,""""http://www.statistik.at/web_de/klassifikationen/regionale_gliederungen/dauersiedlungsraum/index.html",de:"Dauersiedlungsraum der Gemeinden Politischen Bezirke und Bundesländer - Gebietsstand 1.1.2018",+2019-03-10T00:00:00Z/11,Q358870
This uploads this statement to the entity Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q126321):
- Template:Wpl: 42.88 Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q712226)
this qualifier:
- Template:Wpl: +2018-01-01T00:00:00Z/11
and the following references:
- Template:Wpl: "http://www.statistik.at/web_de/klassifikationen/regionale_gliederungen/dauersiedlungsraum/index.html"
- Template:Wpl: de:"Dauersiedlungsraum der Gemeinden Politischen Bezirke und Bundesländer - Gebietsstand 1.1.2018"
- Template:Wpl: +2019-03-10T00:00:00Z/11
- Template:Wpl: Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q358870)
See also
- Austrian municipalities with population as of 2018-01-01 - Wikidata Query