Allows wikis to locally override /config subpages of modules.
Documentation[]
Package items[]
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
$nparameters, which can be replaced by optional argument strings supplied by thegetValuecall. - Parameters:
- Returns: (nil|boolean|string|number|table)
See also[]
Module:I18n - Inspired the way in which the Config class works.