Module talk:Road data
Appearance
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.