Module:Item util/config/sandbox

From Path of Exile Wiki
Jump to navigation Jump to search

This is the module sandbox page for Module:Item util/config (diff).

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