Difference between revisions of "Template:Infobox settlement/Wikidata"
Jump to navigation
Jump to search
imported>Jonesey95 (hide maint template from articles) |
imported>Jklamo (+area, pop) |
||
| Line 35: | Line 35: | ||
| subdivision_type3 = | | subdivision_type3 = | ||
| subdivision_name3 = | | subdivision_name3 = | ||
| − | | established_title = Established | + | | established_title = {{#if:{{{established_date|}}}{{wikidata|property|P571}} | Established}} |
| − | | established_date = {{#property | + | | established_date = {{#if: {{{established_date|}}} | {{{established_date}}}{{{established_date_ref|}}} | {{wikidata|property|edit@end|P571}}{{wikidata|reference|P571}} }} |
| − | | founder = | + | | founder = {{#property:P112}} |
| seat_type = | | seat_type = | ||
| seat = | | seat = | ||
| Line 47: | Line 47: | ||
<!-- ALL fields with measurements have automatic unit conversion --> | <!-- ALL fields with measurements have automatic unit conversion --> | ||
<!-- for references: use <ref> tags --> | <!-- for references: use <ref> tags --> | ||
| − | | area_footnotes = | + | | area_footnotes = {{#if: {{{area_km2_ref|}}} | {{{area_km2_ref}}} | {{wikidata|reference|P2046}} }} |
| area_urban_footnotes = <!-- <ref> </ref> --> | | area_urban_footnotes = <!-- <ref> </ref> --> | ||
| area_rural_footnotes = <!-- <ref> </ref> --> | | area_rural_footnotes = <!-- <ref> </ref> --> | ||
| Line 58: | Line 58: | ||
| area_blank2_title = | | area_blank2_title = | ||
<!-- square kilometers --> | <!-- square kilometers --> | ||
| − | | area_total_km2 = | + | | area_total_km2 = {{#if: {{{area_km2|}}} | {{{area_km2}}} | {{wikidata|property|raw|P2046}} }} |
| area_land_km2 = | | area_land_km2 = | ||
| area_water_km2 = | | area_water_km2 = | ||
| Line 80: | Line 80: | ||
| elevation_footnotes = | | elevation_footnotes = | ||
| elevation_m = | | elevation_m = | ||
| − | | population_footnotes = | + | | population_footnotes = {{#if: {{wikidata|property|P1082}} | {{wikidata|references|best|P1082}} }} |
| − | | population_total = | + | | population_total = {{wikidata|property|best|P1082}} |
| population_as_of = | | population_as_of = | ||
| population_density_km2 = auto | | population_density_km2 = auto | ||
Revision as of 10:30, 14 August 2020
| 50x40px | This template's documentation is missing, inadequate, or does not accurately describe its functionality and/or the parameters in its code. Please help to expand and improve it. (September 2017) |
Try it on Template:Wikidata test, Template:Wikidata test, Template:Wikidata test
Usage
This is a test template that uses Wikidata values to populate settlement infoboxes.
Before it is put into production, it needs to be updated to use Module:WikidataIB for all Wikidata calls. See Template:Infobox person/Wikidata for examples of how to use the module. Template:Wikidata infoboxes
| The above documentation is transcluded from Template:Infobox settlement/Wikidata/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |