Edge Rewrite
Jump to content

Module:Road data/parser/doc

From Wikipedia, the free encyclopedia

This module exports the parser function, which can be used from within Lua to fetch an entry from the appropriate string module.

See the comment for the p.parser function for the function's parameters. The only parameter worth explaining (beyond the code comments) is args, known to have the following nullable keys:

  • state / province (string): Used by getModuleName.
  • country (string): Used by getModuleName.
  • ignoreifexists (boolean): Elide the existence check even if it is asked for by the data entry (1 expensive function call). If disabled, just assume that it exists. Otherwise there is a fallback process.

Special:PrefixIndex/Module:Road data is potentially helpful.