Jump to content

Module talk:Road data

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mxn (talk | contribs) at 07:47, 13 August 2020 (Wikidata). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Wikidata

Wikidata now has a road number formatter (P8498) property that would make it possible to streamline some of these modules a little. Instead of needing to specify the abbreviation format of each route network, the module could simply supply the Wikidata QID of the route network and state. This module could then automatically look up the correct format. For example:

  • Interstate highways (California): {{replace|{{if empty|{{wd|property|Q94247|P8498|P3005=Q99}}|{{wd|property|Q94247|P8498}}}}|$1|5}} → I-5
  • Interstate highways (Texas): {{replace|{{if empty|{{wd|property|Q94247|P8498|P3005=Q1439}}|{{wd|property|Q94247|P8498}}}}|$1|5}} → IH 5

I've also proposed a road name formatter property to further streamline these modules. It's still waiting for some feedback.

 – Minh Nguyễn 💬 07:47, 13 August 2020 (UTC)[reply]