Module:Mod/config/sandbox: Difference between revisions

From Path of Exile 2 Wiki
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.data_sheet = {...")
 
(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 Text',
     tier_text = 'Tier text',
      
      
     -- shared
     -- shared
Line 48: Line 50:
     generation_weights = 'Generation weights',
     generation_weights = 'Generation weights',
     tag = 'Tag',
     tag = 'Tag',
     weight = 'Weight',
     value = 'Value',
      
      
     -- sell price
     -- sell price
     sell_price = 'Modifier 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]] '''%s'''.\n",
     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]].\n",
     intro_unnamed_id = "'''%s''' is the internal ID of an unnamed [[modifier]].",


     items = 'Items',
     items = 'Items',

Revision as of 16:17, 7 December 2025

This is the module sandbox page for Module:Mod/config (diff).

Module documentation[view] [edit] [history] [purge]


This is the configuration file for Module:Mod. This file can be edited to allow easy translation/porting of the module to other wikis.


-------------------------------------------------------------------------------
-- 
-- 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