Module:Item link/config: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
(Created page with "------------------------------------------------------------------------------- -- -- Configuration for Module:Item link -- ------------------------------...")
 
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 19: Line 19:


cfg.i18n.errors = {
cfg.i18n.errors = {
    invalid_args = 'Item link: metadata_id, page, item_name or item_name_exact must be specified',
    no_results = 'Item link: No results found for search parameter "%s".',
    too_many_results = 'Item link: Too many results for search parameter "%s". Consider using page parameter instead.',
     alt_art_undefined = 'Item link: Image parameter was specified, but there is no alternate art defined on page "%s"',
     alt_art_undefined = 'Item link: Image parameter was specified, but there is no alternate art defined on page "%s"',
     alt_art_invalid_index = 'Item Link: Alternate art with index/name "%s" not found on page "%s"',
     alt_art_invalid_index = 'Item Link: Alternate art with index/name "%s" not found on page "%s"',
Line 35: Line 32:


cfg.parameters = {
cfg.parameters = {
     name = 'items.name',
     name = 'name',
     inventory_icon = 'items.inventory_icon',
     inventory_icon = 'inventory_icon',
     html = 'items.html',
     html = 'html',
     width = 'items.size_x',
     width = 'size_x',
     height = 'items.size_y',
     height = 'size_y',
}
}
cfg.selectors = {'metadata_id', 'page', 'item_name', 'item_name_exact'}


return cfg
return cfg

Latest revision as of 16:17, 18 January 2022

Module documentation[view] [edit] [history] [purge]


This is the configuration file for Module:Item link. This file can be edited to allow easy translation/porting of the module to other wikis.


-------------------------------------------------------------------------------
-- 
--                    Configuration for Module:Item link
-- 
-------------------------------------------------------------------------------

local cfg = {}

-- ----------------------------------------------------------------------------
-- i18n
-- ----------------------------------------------------------------------------

cfg.i18n = {}

cfg.i18n.categories = {
    -- maintenance cats
    broken_item_links = 'Pages with broken item links',
}

cfg.i18n.errors = {
    alt_art_undefined = 'Item link: Image parameter was specified, but there is no alternate art defined on page "%s"',
    alt_art_invalid_index = 'Item Link: Alternate art with index/name "%s" not found on page "%s"',
}

-- ----------------------------------------------------------------------------
-- Constants
-- ----------------------------------------------------------------------------

cfg.image_size = 39

cfg.image_size_full = cfg.image_size * 2

cfg.parameters = {
    name = 'name',
    inventory_icon = 'inventory_icon',
    html = 'html',
    width = 'size_x',
    height = 'size_y',
}

return cfg