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 Izno (talk | contribs) at 17:10, 2 December 2020 (visualhide removal: new section). 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. A template like {{jct}} 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]

visualhide removal

This template/module uses the visualhide class. It has a TemplateStyles solution and will accordingly be removed from Common.css soon. Your feedback regarding the timeline is requested at MediaWiki talk:Common.css § visualhide removal. Izno (talk) 17:10, 2 December 2020 (UTC)[reply]