Jump to content

Module:Road data/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
String modules: Link to /doc
Line 13: Line 13:
== Data modules ==
== Data modules ==
=== String modules ===
=== String modules ===
{{Further|Module:Road data/strings}}
{{Further|Module:Road data/strings/doc}}
String modules are used to store type data for use with several road templates, including {{tl|jct}} and {{tl|routelist row}}.
String modules are used to store type data for use with several road templates, including {{tl|jct}} and {{tl|routelist row}}.



Revision as of 13:49, 14 August 2024

Usage

{{#invoke:Road data|function_name}}

Submodules

Submodules of Module:Road data are used to display the road data stored in the modules listed at #Data modules.

View submodules

Data modules

String modules

String modules are used to store type data for use with several road templates, including {{jct}} and {{routelist row}}.

View string modules

Banner modules store data about banners that should be shown. For example, Module:Road data/banners/USA defines the "TO" banner shown when {{jct}} is used with a |to= parameter in the United States i.e.
To I-82.

View banner modules

Mask modules

Mask modules store masks that can be hooked into by #String modules. See Module:Road data/strings#Hooks and Module:Road data/parser/hooks#mask.

View mask modules