Module:Item acquisition/config: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 14: Line 14:


cfg.i18n = {}
cfg.i18n = {}
cfg.i18n.templates = {
    divination_card_acquisition_unknown = 'Divination card acquisition unknown',
}


cfg.i18n.acquisition = {
cfg.i18n.acquisition = {
Line 27: Line 31:
      
      
     area_header = 'Area restrictions',
     area_header = 'Area restrictions',
    area_legacy_header = 'Legacy area restrictions',
     area = 'This item can be acquired in the following areas:',
     area = 'This item can be acquired in the following areas:',
     monster = 'This item can be acquired from the following monsters:',
     monster = 'This item can be acquired from the following monsters:',
     monster_header = 'Monster restrictions',
     monster_header = 'Monster restrictions',
      
      
     upgraded_from_header = 'Upgrade paths',
     recipes_heading = 'Recipes',
     upgraded_from = 'This item can be acquired through the following upgrade paths or [[vendor recipes]]:',
     recipes_text = '%s can be created from the following recipes:',
      
     recipe_usage_heading = 'Usage in recipes',
    ingredient_header = 'Usage in upgrade paths',
     recipe_usage_text = '%s is used in the following recipes:',
     ingredient = 'This item is used by upgrade paths or [[vendor recipes]] to create the following items:',
}
}


cfg.i18n.upgraded_from_table = {
cfg.i18n.recipe_table = {
     outcome = 'Outcome',
     result = 'Result',
     ingredient = 'Ingredient',
     part = 'Part',
     ingredient_amount = 'Amount',
     part_amount = 'Amount',
     ingredient_notes = 'Ingredient<br>Notes',
     part_notes = 'Notes',
     recipe_notes = 'General<br>Notes',
     description = 'Description',
     type = 'Type',
     meta = 'Meta',
     automatic = m_util.html.abbr('Automatic', 'Automatically added by the item template based on the item\'s attributes.'),
     automatic = m_util.html.abbr('A', 'This recipe was added automatically based on the properties of the resulting item.'),
     manual = m_util.html.abbr('Manual', 'Manually added to the item\'s wiki page.'),
     manual = m_util.html.abbr('M', 'This recipe was added manually on the wiki page of the resulting item.'),
    old_data = m_util.html.abbr('Old data', 'Old data - please null-edit the item\'s wiki page.'),
}
}


Line 61: Line 62:
-- Constants
-- Constants
-- ----------------------------------------------------------------------------
-- ----------------------------------------------------------------------------
-- Wrapper template
cfg.wrapper = 'Template:Item acquisition'


cfg.MAX_ITEMS = 100
cfg.MAX_ITEMS = 100

Latest revision as of 21:38, 14 July 2022

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


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


-------------------------------------------------------------------------------
-- 
--                  Configuration for Module:Item acquisition
-- 
-------------------------------------------------------------------------------

local m_util = require('Module:Util')

local cfg = {}

-- ----------------------------------------------------------------------------
-- i18n
-- ----------------------------------------------------------------------------

cfg.i18n = {}

cfg.i18n.templates = {
    divination_card_acquisition_unknown = 'Divination card acquisition unknown',
}

cfg.i18n.acquisition = {
    header = 'Item acquisition',
    link = '[[File:Questionmark.png|right|24px|link=Path_of_Exile_Wiki:How_to_edit_item_acquisition]]',
    
    drop_disabled = '%s is [[drop disabled]].',
    drop_restricted = '%s has restrictions on where or how it can drop.',
    drop_anywhere = '%s can drop anywhere.',
    cannot_be_chanced = 'It cannot be [[Orb of Chance|chanced]].',
    can_be_chanced = 'It can be [[Orb of Chance|chanced]].',
    league_specific_unique = '%s belongs to a special group of unique items called [[league-specific item]]s, which can be obtained from certain divination cards and other sources in addition to their normal acquisition methods.',
    
    area_header = 'Area restrictions',
    area = 'This item can be acquired in the following areas:',
    monster = 'This item can be acquired from the following monsters:',
    monster_header = 'Monster restrictions',
    
    recipes_heading = 'Recipes',
    recipes_text = '%s can be created from the following recipes:',
    recipe_usage_heading = 'Usage in recipes',
    recipe_usage_text = '%s is used in the following recipes:',
}

cfg.i18n.recipe_table = {
    result = 'Result',
    part = 'Part',
    part_amount = 'Amount',
    part_notes = 'Notes',
    description = 'Description',
    meta = 'Meta',
    automatic = m_util.html.abbr('A', 'This recipe was added automatically based on the properties of the resulting item.'),
    manual = m_util.html.abbr('M', 'This recipe was added manually on the wiki page of the resulting item.'),
}

cfg.i18n.quest_reward = {
    quest_rewards_header = 'Quest reward',
    quest_rewards_intro = 'This item is given as a [[quest reward]] for the following quests:',
    vendor_rewards_header = 'Vendor reward',
    vendor_rewards_intro = 'This item can be bought at the listed NPC [[vendor]]s, after completing the following quests:',
}

-- ----------------------------------------------------------------------------
-- Constants
-- ----------------------------------------------------------------------------

-- Wrapper template
cfg.wrapper = 'Template:Item acquisition'

cfg.MAX_ITEMS = 100

cfg.COLLAPSE_TABLE = 30

return cfg