Module:Item util/config

From Path of Exile 2 Wiki
Revision as of 23:53, 24 September 2024 by Vinifera7 (talk | contribs) (4 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Module documentation[view] [edit] [history] [purge]


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.


-------------------------------------------------------------------------------
-- 
--                        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