Module:Bestiary/config: Difference between revisions
Jump to navigation
Jump to search
(Created page with "------------------------------------------------------------------------------- -- -- Configuration for Module:Bestiary -- ------------------------------------------------------------------------------- local cfg = {} -- ---------------------------------------------------------------------------- -- i18n -- ---------------------------------------------------------------------------- cfg.i18n = {} -- Beastcrafting recipe table strings cfg.i18n.recipe_table = { c...") |
No edit summary |
||
Line 19: | Line 19: | ||
notes = 'Notes', | notes = 'Notes', | ||
components = 'Components', | components = 'Components', | ||
} | |||
cfg.i18n.errors = { | |||
invalid_game_mode = 'Invalid game mode. Accepted values are "normal" and "ruthless".', | |||
} | } | ||
Line 24: | Line 28: | ||
-- Constants | -- Constants | ||
-- ---------------------------------------------------------------------------- | -- ---------------------------------------------------------------------------- | ||
cfg.game_modes = { | |||
normal = 1, | |||
ruthless = 2, | |||
} | |||
-- Wrapper templates | -- Wrapper templates |
Latest revision as of 00:49, 25 March 2024
This is the configuration file for Module:Bestiary. This file can be edited to allow easy translation/porting of the module to other wikis.
The above documentation is transcluded from Module:Bestiary/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:Bestiary
--
-------------------------------------------------------------------------------
local cfg = {}
-- ----------------------------------------------------------------------------
-- i18n
-- ----------------------------------------------------------------------------
cfg.i18n = {}
-- Beastcrafting recipe table strings
cfg.i18n.recipe_table = {
category = 'Category',
description = 'Description',
notes = 'Notes',
components = 'Components',
}
cfg.i18n.errors = {
invalid_game_mode = 'Invalid game mode. Accepted values are "normal" and "ruthless".',
}
-- ----------------------------------------------------------------------------
-- Constants
-- ----------------------------------------------------------------------------
cfg.game_modes = {
normal = 1,
ruthless = 2,
}
-- Wrapper templates
cfg.wrappers = {
recipe_table = {
'Template:Beastcrafting recipes',
},
}
return cfg