Wikidata:Property proposal/population rank

From Wikidata
Jump to navigation Jump to search

population rank[edit]

Return to Wikidata:Property proposal/Place

   Under discussion
Descriptionthe ranking of the item's population in the set of similar items. Envisaged sets are district of England (Q349084); non-metropolitan county (Q769603); ceremonial county of England (Q180673); Scottish district (Q21457810); principal area of Wales (Q15979307) and district of Northern Ireland (Q17364572)
Data typeString
Template parameter"population_rank" in en:template:infobox settlement
Domainadministrative territorial entity (Q56061)
Allowed values[1-9][0-9]{0,2}(st|nd|rd|th)
Example 1Birmingham (Q20986424) → 1st
Example 2Leeds (Q774015) → 2nd
Example 3Isles of Scilly (Q180209) → 317th
Planned useSee motivation

Motivation[edit]

I am attempting to convert the generation of various parameters of en:Template:Infobox settlement for UK local government divisions from long switch statements in templates (see en:Category:Templates for UK subdivision lookups) to use Wikidata items. There are about 450 such divisions. It will be qualified with a point in time (P585) and a new value will be added each year when new population estimates are published. Keith Edkins (talk) 17:25, 5 November 2019 (UTC)

Discussion[edit]

  • Symbol oppose vote.svg Oppose. This can be automatically generated from other properties. --Yair rand (talk) 15:17, 11 November 2019 (UTC)
    @Yair rand: It can via a SPARQL query, yes. But infoboxes can't run SPARQL queries. Does that affect your !vote ? Jheald (talk) 17:33, 11 November 2019 (UTC)
    Nope. --Yair rand (talk) 18:24, 17 November 2019 (UTC)
  • Pictogram voting comment.svg Comment Would need a qualifier to indicate the parent set, as some items are instance of (P31) multiple classes. Possibly of (P642) would be appropriate, as a mandatory qualifier. Of course, that presupposes that the ranking would be from within a set with a particular wikidata item. Jheald (talk) 17:36, 11 November 2019 (UTC)
  • Pictogram voting comment.svg Comment a string datatype is not appropriate here - requiring an English format to input ordinals goes against the multilingual nature of the project. Use either quantity valued with integer constraint or item valued (with number items). − Pintoch (talk) 08:55, 13 November 2019 (UTC)
  • Symbol oppose vote oversat.svg Strong oppose Infoboxes are just one of many Wikidata uses. It's true, infoboxes can't run SPARQL queries through Lua, but this function can be reached using JavaScript gadgets. There's no reason for store info that can be generated automatically. --Tinker Bell 22:01, 16 November 2019 (UTC)