Module:Road data/doc: Difference between revisions
Appearance
Content deleted Content added
BrandonXLF (talk | contribs) No edit summary |
BrandonXLF (talk | contribs) →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
![]() | This Lua module is used on approximately 18,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
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.
Data modules
String modules
String modules are used to store type data for use with several road templates, including {{jct}} and {{routelist row}}.
Banner 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.
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.