Module:Item util/config: Difference between revisions
Jump to navigation
Jump to search
(Created page with "------------------------------------------------------------------------------- -- -- Configuration for Module:Item util -- --------------------------...") |
No edit summary |
||
Line 12: | Line 12: | ||
cfg.i18n = {} | cfg.i18n = {} | ||
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', | |||
} | |||
-- ---------------------------------------------------------------------------- | -- ---------------------------------------------------------------------------- | ||
Line 23: | Line 33: | ||
} | } | ||
cfg.item_namespaces_list = table.concat(cfg.item_namespaces, ',') | cfg.item_namespaces_list = table.concat(cfg.item_namespaces, ',') | ||
cfg.search_terms = {'metadata_id', 'page', 'item_name', 'item_name_exact'} | |||
return cfg | return cfg |
Revision as of 01:16, 18 January 2022
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.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