Module:Road data/doc: Difference between revisions
Appearance
Content deleted Content added
BrandonXLF (talk | contribs) No edit summary |
BrandonXLF (talk | contribs) No edit summary |
||
Line 19: | Line 19: | ||
=== Banner modules === |
=== 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 {{tl|jct}} is used with a {{para|to}} parameter in the United States {{jct|state=NY|I|82|to1=y}}. |
Banner modules store data about banners that should be shown. For example, [[Module:Road data/banners/USA]] defines the "TO" banner shown when {{tl|jct}} is used with a {{para|to}} parameter in the United States i.e. {{jct|state=NY|I|82|to1=y}}. |
||
{{Clickable button|Special:Search/-intitle:"/doc" -intitle:"/sandbox" -intitle:"/styles.css" prefix:Module:Road data/banners/|View banner modules}} |
{{Clickable button|Special:Search/-intitle:"/doc" -intitle:"/sandbox" -intitle:"/styles.css" prefix:Module:Road data/banners/|View banner modules}} |
Revision as of 21:46, 26 July 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.