Module:Mod/config: Difference between revisions
Jump to navigation
Jump to search
(Created page with "------------------------------------------------------------------------------- -- -- Configuration for Module:Mod -- ------------------------------------------------------------------------------- local cfg = {} -- ---------------------------------------------------------------------------- -- i18n -- ---------------------------------------------------------------------------- cfg.i18n = {} cfg.i18n.categories = { mods = 'Mods', } cfg.i18n.tooltips = { --...") |
m (3 revisions imported) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
} | } | ||
cfg.i18n. | cfg.i18n.data_sheet = { | ||
-- core data | -- core data | ||
id = 'Mod | id = 'Mod ID', | ||
name = 'Name', | name = 'Name', | ||
mod_groups = 'Groups', | mod_groups = 'Groups', | ||
mod_type = 'Mod type', | mod_type = 'Mod type', | ||
domain = 'Domain', | domain = 'Domain', | ||
domain_fmt = '%s ( | domain_fmt = '%s (%s)', | ||
generation_type = 'Generation type', | generation_type = 'Generation type', | ||
generation_type_fmt = '%s ( | generation_type_fmt = '%s (%s)', | ||
required_level = 'Req. | required_level = 'Req. level', | ||
stat_text = 'Effect', | stat_text = 'Effect', | ||
granted_buff_id = 'Granted | granted_buff_id = 'Granted buff ID', | ||
granted_buff_value = 'Granted | granted_buff_value = 'Granted buff value', | ||
granted_skill = 'Granted | granted_skill = 'Granted skill', | ||
tags = 'Tags', | tags = 'Tags', | ||
tier_text = 'Tier Text', | tier_text = 'Tier Text', | ||
Line 44: | Line 40: | ||
-- stats | -- stats | ||
stats = 'Stats', | stats = 'Stats', | ||
stat_id = 'Stat | stat_id = 'Stat ID', | ||
min = 'Minimum', | min = 'Minimum', | ||
max = 'Maximum', | max = 'Maximum', | ||
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.' | |||
} | } | ||
cfg.i18n.errors = { | cfg.i18n.errors = { | ||
-- Mod template | -- 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_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', | sell_price_missing_argument = 'Both %s and %s must be specified', |
Latest revision as of 20:25, 25 September 2024
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