Fandom Developers Wiki

Allows wikis to locally override /config subpages of modules.

Documentation[]

Package items[]

config._substArgsInMsg(msg, args) (function)
Parameters:
config.loadConfig(source) (function)
Loads the configuration from the global "Dev:" . . source .. "/config" configuration page with overrides from the local "Module:" .. source .. "/config" configuration page.
Parameter: source (string)
Returns: (Config)
config._exportClasses() (function)
Exports classes for testing
Returns: (table)

Config[]

Configuration datastore class

Config:getValue(option, ...) (function)
Datastore option getter. This method returns values from the datastore corresponding to a key.
If the value is a string, then these values may have $n parameters, which can be replaced by optional argument strings supplied by the getValue call.
Parameters:
  • option Config query or string key to return from the datastore. (string|table)
    • option.key String key to return from the datastore. (string)
    • option.args Arguments to substitute into the value ($n). (table; optional)
  • ... Arguments to substitute into the value ($n). (string; optional)
Returns: (nil|boolean|string|number|table)

See also[]

Module:I18n - Inspired the way in which the Config class works.