Module:Item class/config/sandbox: Difference between revisions
< Module:Item class | config
(Create sandbox version of Module:Item class/config) |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
-- | -- | ||
------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ||
local m_util = require('Module:Util') | |||
local cfg = {} | local cfg = {} | ||
Line 12: | Line 14: | ||
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 = { | cfg.i18n.infocard = { | ||
Line 39: | 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).
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.
The above documentation is transcluded from Module:Item class/config/doc.
Editors can experiment in this module's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this module.
Editors can experiment in this module's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this module.
-------------------------------------------------------------------------------
--
-- 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