Module:Item util/config
Jump to navigation
Jump to search
This is the configuration file for Module:Item util. This file can be edited to allow easy translation/porting of the module to other wikis.
The above documentation is transcluded from Module:Item util/config/doc.
Editors can experiment in this module's sandbox and testcases pages.
Subpages of this module.
Editors can experiment in this module's sandbox and testcases pages.
Subpages of this module.
-------------------------------------------------------------------------------
--
-- Configuration for Module:Item util
--
-------------------------------------------------------------------------------
local cfg = {}
-- ----------------------------------------------------------------------------
-- i18n
-- ----------------------------------------------------------------------------
cfg.i18n = {}
cfg.i18n.range = '(%s-%s)'
cfg.i18n.categories = {
failed_query = 'Pages with failed item queries',
}
cfg.i18n.errors = {
missing_search_term = 'No item search term specified. Use metadata_id, page, item_name_exact or item_name',
no_results_found = 'No results found for item using search term "%s = %s"',
many_results_found = 'More than one result found for item using search term "%s = %s". Try using the page parameter instead',
}
-- ----------------------------------------------------------------------------
-- Constants
-- ----------------------------------------------------------------------------
-- Namespaces items are primarily defined in. Used to narrow down queries.
cfg.item_namespaces = {
0, -- Main
10016, -- Map
}
cfg.item_namespaces_list = table.concat(cfg.item_namespaces, ',')
cfg.search_terms = {'metadata_id', 'page', 'item_name', 'item_name_exact'}
return cfg