Module:Item class/config/sandbox: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
cfg.i18n.list = {
cfg.i18n.list = {
     item_class = 'Item class',
     item_class = 'Item class',
     internal_name = m_util.html.abbr('Internal name', 'Item filter rules that specify item classes do so using their internal names.'),
     internal_name = m_util.html.abbr('Internal name', 'The internal name of the item class. This is used for item filter rules that specify item classes.'),
     internal_id = m_util.html.abbr('Internal ID', 'The internal ID of the item class. This is provided mainly as a reference to tool developers. Most players do not need to know this.'),
     internal_id = m_util.html.abbr('Internal ID', 'The internal ID of the item class. This is provided mainly as a reference to tool developers. Most players do not need to know this.'),
}
}
Line 47: Line 47:
         'Template:Item class infocard',
         'Template:Item class infocard',
     },
     },
}
cfg.list = {}
-- Skip these class ids when generating list
cfg.list.skip_ids = {
    ['HarvestSeed'] = true,
    ['HarvestPlantBooster'] = true,
    ['AtlasRegionUpgradeItem'] = true,
}
}


return cfg
return cfg

Latest revision as of 19:24, 27 May 2022

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

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


Lua logo

This module depends on the following other modules:

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


-------------------------------------------------------------------------------
-- 
--                    Configuration for Module:Item class
-- 
-------------------------------------------------------------------------------

local m_util = require('Module:Util')

local cfg = {}

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

cfg.i18n = {}

cfg.i18n.list = {
    item_class = 'Item class',
    internal_name = m_util.html.abbr('Internal name', 'The internal name of the item class. This is used for item filter rules that specify item classes.'),
    internal_id = m_util.html.abbr('Internal ID', 'The internal ID of the item class. This is provided mainly as a reference to tool developers. Most players do not need to know this.'),
}

cfg.i18n.infocard = {
    page = '[[Item class]]',
    info = m_util.html.abbr('(?)', 'Item classes categorize items. Classes are often used to restrict items or skill gems to a specific class or by item filters'),
    also_referred_to_as = 'Also referred to as: %s',
    filterid = 'Item filter ID: %s',
    is_removed = "''Removed from the game.''",
    long_upper = 'Long uppercase name: %s',
    long_lower = 'Long lowercase name: %s',
}

cfg.i18n.infocard.errors = {
    invalid_class = 'The item class name "%s" is invalid.',
}

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

-- Wrapper templates
cfg.wrappers = {
    item_class_list = {
        'Template:Item class list',
    },
    item_class_infocard = {
        'Template:Item class infocard',
    },
}

cfg.list = {}

-- Skip these class ids when generating list
cfg.list.skip_ids = {
    ['HarvestSeed'] = true,
    ['HarvestPlantBooster'] = true,
    ['AtlasRegionUpgradeItem'] = true,
}

return cfg