Module:Mod/config: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
} | } | ||
cfg.i18n. | cfg.i18n.data_sheet = { | ||
-- core data | -- core data | ||
id = 'Mod ID', | id = 'Mod ID', | ||
Line 57: | Line 53: | ||
sell_price = 'Modifier sell price', | sell_price = 'Modifier sell price', | ||
item = 'Item', | item = 'Item', | ||
} | |||
cfg.i18n.sections = { | |||
-- intro texts | |||
intro_named_id = "'''%s''' is the internal ID of [[modifier]] '''%s'''.\n", | |||
intro_unnamed_id = "'''%s''' is the internal ID of an unnamed [[modifier]].\n", | |||
items = 'Items', | |||
used_by_items = 'This modifier is used by the following items.' | |||
} | } | ||
Revision as of 13:53, 26 December 2023
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',
}
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)',
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',
weight = 'Weight',
-- sell price
sell_price = 'Modifier sell price',
item = 'Item',
}
cfg.i18n.sections = {
-- intro texts
intro_named_id = "'''%s''' is the internal ID of [[modifier]] '''%s'''.\n",
intro_unnamed_id = "'''%s''' is the internal ID of an unnamed [[modifier]].\n",
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