Module:Mod/config: Difference between revisions
Jump to navigation
Jump to search
m (3 revisions imported) |
Mefisto1029 (talk | contribs) (Import/Update from poe1 wiki) |
||
| Line 15: | Line 15: | ||
cfg.i18n.categories = { | cfg.i18n.categories = { | ||
mods = 'Mods', | mods = 'Mods', | ||
no_game_mode = 'Modifiers with unspecified game modes', | |||
} | } | ||
| Line 27: | Line 28: | ||
generation_type = 'Generation type', | generation_type = 'Generation type', | ||
generation_type_fmt = '%s (%s)', | generation_type_fmt = '%s (%s)', | ||
game_modes = 'Game modes', | |||
required_level = 'Req. level', | required_level = 'Req. level', | ||
stat_text = 'Effect', | stat_text = 'Effect', | ||
| Line 33: | Line 35: | ||
granted_skill = 'Granted skill', | granted_skill = 'Granted skill', | ||
tags = 'Tags', | tags = 'Tags', | ||
tier_text = 'Tier | tier_text = 'Tier text', | ||
-- shared | -- shared | ||
| Line 48: | Line 50: | ||
generation_weights = 'Generation weights', | generation_weights = 'Generation weights', | ||
tag = 'Tag', | tag = 'Tag', | ||
value = 'Value', | |||
-- sell price | -- sell price | ||
sell_price = ' | sell_price = 'Vendor offer', | ||
amount = 'Amount', | |||
item = 'Item', | item = 'Item', | ||
} | } | ||
| Line 57: | Line 60: | ||
cfg.i18n.sections = { | cfg.i18n.sections = { | ||
-- intro texts | -- intro texts | ||
intro_named_id = "'''%s''' is the internal ID of [[modifier]] | intro_named_id = "'''%s''' is the internal ID of a [[modifier]] named \"%s\".", | ||
intro_unnamed_id = "'''%s''' is the internal ID of an unnamed [[modifier]]. | intro_unnamed_id = "'''%s''' is the internal ID of an unnamed [[modifier]].", | ||
items = 'Items', | items = 'Items', | ||
Revision as of 16:21, 7 December 2025
This is the configuration file for Module:Mod. This file can be edited to allow easy translation/porting of the module to other wikis.
The above documentation is transcluded from Module:Mod/config/doc.
Editors can experiment in this module's sandbox and testcases pages.
Subpages of this module.
Editors can experiment in this module's sandbox and testcases pages.
Subpages of this module.
-------------------------------------------------------------------------------
--
-- Configuration for Module:Mod
--
-------------------------------------------------------------------------------
local cfg = {}
-- ----------------------------------------------------------------------------
-- i18n
-- ----------------------------------------------------------------------------
cfg.i18n = {}
cfg.i18n.categories = {
mods = 'Mods',
no_game_mode = 'Modifiers with unspecified game modes',
}
cfg.i18n.data_sheet = {
-- core data
id = 'Mod ID',
name = 'Name',
mod_groups = 'Groups',
mod_type = 'Mod type',
domain = 'Domain',
domain_fmt = '%s (%s)',
generation_type = 'Generation type',
generation_type_fmt = '%s (%s)',
game_modes = 'Game modes',
required_level = 'Req. level',
stat_text = 'Effect',
granted_buff_id = 'Granted buff ID',
granted_buff_value = 'Granted buff value',
granted_skill = 'Granted skill',
tags = 'Tags',
tier_text = 'Tier text',
-- shared
ordinal = '#',
-- stats
stats = 'Stats',
stat_id = 'Stat ID',
min = 'Minimum',
max = 'Maximum',
-- weights
spawn_weights = 'Spawn weights',
generation_weights = 'Generation weights',
tag = 'Tag',
value = 'Value',
-- sell price
sell_price = 'Vendor offer',
amount = 'Amount',
item = 'Item',
}
cfg.i18n.sections = {
-- intro texts
intro_named_id = "'''%s''' is the internal ID of a [[modifier]] named \"%s\".",
intro_unnamed_id = "'''%s''' is the internal ID of an unnamed [[modifier]].",
items = 'Items',
used_by_items = 'This modifier is used by the following items.'
}
cfg.i18n.errors = {
-- Mod template
duplicate_mod_id = 'Mod ID must be unique. Duplicate ID found on page "%s"',
sell_price_duplicate_name = 'Do not specify a sell price item name multiple times. Adjust the amount instead.',
sell_price_missing_argument = 'Both %s and %s must be specified',
invalid_weight = 'Parameters %s and %s must be given as a pair',
}
-- ----------------------------------------------------------------------------
-- Constants
-- ----------------------------------------------------------------------------
return cfg