Module:Road data/doc
Jump to navigation
Jump to search
| icon | This is a documentation subpage for Module:Road data. It may contain usage information, categories and other content that is not part of the original module page. |
| File:Green check.svg | This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing. |
| Warning | 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
[edit source]{{#invoke:Road data|function_name}}
Submodules
[edit source]Submodules of Module:Road data are used to process and display the road data stored in the modules listed at #Data modules. There are also a few that contain additional data.
Data modules
[edit source]String modules
[edit source]String modules are used to store type data for use with several road templates, including {{jct}} and {{routelist row}}.
Banner modules
[edit source]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. File:To plate blue.svg
File:I-82.svg To I-82.
Mask modules
[edit source]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.