Module:Road data/doc: Difference between revisions
Appearance
Content deleted Content added
BrandonXLF (talk | contribs) Exclude testcases |
BrandonXLF (talk | contribs) protected |
||
Line 1: | Line 1: | ||
{{Module rating|protected}} |
|||
{{Module rating|release<!-- Values: pre-alpha • alpha • beta • release • protected • semiprotected -- If a rating not needed/relevant, delete this template call -->}} |
|||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> |
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> |
||
{{High-use}} |
{{High-use}} |
Revision as of 04:40, 23 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.