No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
------------------------------------------------------------------------------- |
------------------------------------------------------------------------------- |
||
-- |
-- |
||
− | -- |
+ | -- Configuration for Module:Item link |
-- |
-- |
||
------------------------------------------------------------------------------- |
------------------------------------------------------------------------------- |
||
− | |||
− | local m_util = require('Module:Util') |
||
local cfg = {} |
local cfg = {} |
||
Line 15: | Line 13: | ||
cfg.i18n = {} |
cfg.i18n = {} |
||
− | cfg.i18n. |
+ | cfg.i18n.categories = { |
+ | -- maintenance cats |
||
− | |||
+ | broken_item_links = 'Pages with broken item links', |
||
− | -- Parameters for Template:Skill |
||
⚫ | |||
− | -- static |
||
− | static = 'static', |
||
− | skill_id = 'skill_id', |
||
− | cast_time = 'cast_time', |
||
− | gem_description = 'gem_description', |
||
− | active_skill_name = 'active_skill_name', |
||
− | skill_icon = 'skill_icon', |
||
− | item_class_id_restriction = 'item_class_id_restriction', |
||
− | item_class_restriction = 'item_class_restriction', |
||
− | projectile_speed = 'projectile_speed', |
||
− | stat_text = 'stat_text', |
||
− | quality_stat_text = 'quality_stat_text', |
||
− | radius = 'radius', |
||
− | radius_description = 'radius_description', |
||
− | radius_secondary = 'radius_secondary', |
||
− | radius_secondary_description = 'radius_secondary_description', |
||
− | radius_tertiary = 'radius_tertiary', |
||
− | radius_tertiary_description = 'radius_tertiary_description', |
||
− | skill_screenshot = 'skill_screenshot', |
||
− | has_percentage_mana_cost = 'has_percentage_mana_cost', -- Deprecated |
||
− | has_reservation_mana_cost = 'has_reservation_mana_cost', -- Deprecated |
||
− | -- progression |
||
− | level = 'level', |
||
− | level_requirement = 'level_requirement', |
||
− | dexterity_requirement = 'dexterity_requirement', |
||
− | strength_requirement = 'strength_requirement', |
||
− | intelligence_requirement = 'intelligence_requirement', |
||
− | mana_multiplier = 'mana_multiplier', |
||
− | critical_strike_chance = 'critical_strike_chance', |
||
− | damage_effectiveness = 'damage_effectiveness', |
||
− | stored_uses = 'stored_uses', |
||
− | cooldown = 'cooldown', |
||
− | vaal_souls_requirement = 'vaal_souls_requirement', |
||
− | vaal_stored_uses = 'vaal_stored_uses', |
||
− | vaal_soul_gain_prevention_time = 'vaal_soul_gain_prevention_time', |
||
− | damage_multiplier = 'damage_multiplier', |
||
− | attack_speed_multiplier = 'attack_speed_multiplier', |
||
− | duration = 'duration', |
||
− | experience = 'experience', |
||
− | mana_cost = 'mana_cost', -- Deprecated |
||
− | -- costs |
||
− | skill_cost = 'skill_cost', |
||
⚫ | |||
− | cost_type = 'type', |
||
− | cost_is_reservation = 'is_reservation', |
||
− | cost_amount = 'amount', |
||
− | -- stats |
||
⚫ | |||
− | stat_id = 'id', |
||
− | stat_value = 'value', |
||
} |
} |
||
⚫ | |||
− | -- Parameters for Template:Skill progression |
||
+ | invalid_args = 'Item link: metadata_id, page, item_name or item_name_exact must be specified', |
||
− | cfg.i18n.parameters.progression = { |
||
+ | no_results = 'Item link: No results found for search parameter "%s".', |
||
− | column = 'c', |
||
+ | too_many_results = 'Item link: Too many results for search parameter "%s". Consider using page parameter instead.', |
||
− | header = 'header', |
||
+ | alt_art_undefined = 'Item link: Image parameter was specified, but there is no alternate art defined on page "%s"', |
||
− | abbr = 'abbr', |
||
+ | alt_art_invalid_index = 'Item Link: Alternate art with index/name "%s" not found on page "%s"', |
||
− | pattern_extract = 'pattern_extract', |
||
− | pattern_value = 'pattern_value', |
||
} |
} |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | cfg.image_size = 39 |
||
− | -- Errors thrown by Template:Skill |
||
− | cfg.i18n.errors.skill = { |
||
− | invalid_item_class_id = 'The item class id "%s" is invalid.', |
||
− | invalid_cost_type = 'The cost type "%s" is invalid. Acceptable values are "mana", "life", "energy_shield", "rage", "mana_percent" and "life_percent".', |
||
− | } |
||
+ | cfg.image_size_full = cfg.image_size * 2 |
||
− | -- Errors thrown by Template:Skill progression |
||
− | cfg.i18n.errors.progression = { |
||
− | argument_unspecified = 'An argument for "%s" must be specified.', |
||
− | no_results_for_skill_id = 'Unable to find skill data for skill id "%s".', |
||
− | no_results_for_skill_page = 'Unable to find skill data on page "%s".', |
||
− | missing_level_data = 'Unable to find skill level progression data.', |
||
− | } |
||
⚫ | |||
− | -- Formatting |
||
⚫ | |||
− | cfg.i18n.fmt = { |
||
− | + | inventory_icon = 'items.inventory_icon', |
|
⚫ | |||
+ | width = 'items.size_x', |
||
+ | height = 'items.size_y', |
||
} |
} |
||
+ | cfg.selectors = {'metadata_id', 'page', 'item_name', 'item_name_exact'} |
||
− | -- Templates |
||
− | cfg.i18n.templates = { |
||
− | incorrect_title = 'Template:Incorrect title', |
||
− | cargo_attach = 'Template:Skill/cargo/attach/%s', |
||
− | } |
||
− | |||
− | -- Categories |
||
− | cfg.i18n.categories = { |
||
− | skill_data = 'Skill data', |
||
− | deprecated_parameters = 'Pages using deprecated parameters for skill data', |
||
− | broken_progression_table = 'Pages with broken skill progression tables', |
||
− | } |
||
− | |||
− | -- Files |
||
− | cfg.i18n.files = { |
||
− | skill_icon = 'File:%s skill icon.png', |
||
− | skill_screenshot = 'File:%s skill screenshot.jpg', |
||
− | } |
||
− | |||
− | -- Other messages |
||
− | cfg.i18n.messages = { |
||
− | intro_named_id = "'''%s''' is the internal id of the [[skill]] '''%s'''.\n", |
||
− | intro_unnamed_id = "'''%s''' is the internal id of an unnamed [[skill]].\n", |
||
− | } |
||
− | |||
− | -- Skill infobox strings |
||
− | cfg.i18n.infobox = { |
||
− | skill_id = 'Skill Id', |
||
− | active_skill_name = 'Name', |
||
− | skill_icon = 'Icon', |
||
− | cast_time = 'Cast Time', |
||
− | item_class_restrictions = 'Item Class<br>Restrictions', |
||
− | projectile_speed = 'Projectile Speed', |
||
− | radius = 'Radius', |
||
− | radius_secondary = 'Radius 2', |
||
− | radius_tertiary = 'Radius 3', |
||
− | level_requirement = 'Level Req.', |
||
− | mana_multiplier = 'Cost and Reservation Multiplier', |
||
− | critical_strike_chance = 'Critical Strike Chance', |
||
− | cost = 'Cost', |
||
− | reservation = 'Reservation', |
||
− | attack_speed_multiplier = 'Attack Speed', |
||
− | damage_effectiveness = 'Effectiveness of Added Damage', |
||
− | stored_uses = 'Stored Uses', |
||
− | cooldown = 'Cooldown', |
||
− | vaal_souls_requirement = 'Vaal Souls', |
||
− | vaal_stored_uses = 'Vaal Stored Uses', |
||
− | vaal_soul_gain_prevention_time = 'Soul Gain Prevention', |
||
− | damage_multiplier = 'Damage Multiplier', |
||
− | duration = 'Base duration', |
||
− | } |
||
− | |||
− | -- Skill progression table strings |
||
− | cfg.i18n.progression = { |
||
− | level = 'Level', |
||
− | level_requirement = m_util.html.abbr('[[Image:Level_up_icon_small.png|link=|alt=Required Level]]', 'Required Level', 'nounderline'), |
||
− | dexterity_requirement = m_util.html.abbr('[[Image:DexterityIcon_small.png|link=|alt=Required Dexterity]]', 'Required Dexterity', 'nounderline'), |
||
− | strength_requirement = m_util.html.abbr('[[Image:StrengthIcon_small.png|link=|alt=Required Strength]]', 'Required Strength', 'nounderline'), |
||
− | intelligence_requirement = m_util.html.abbr('[[Image:IntelligenceIcon_small.png|link=|alt=Required Intelligence]]', 'Required Intelligence', 'nounderline'), |
||
− | mana_multiplier = 'Cost and<br>Reservation<br>Multiplier', |
||
− | critical_strike_chance = 'Critical<br>Strike<br>Chance', |
||
− | mana_cost = 'Mana<br>Cost', |
||
− | life_cost = 'Life<br>Cost', |
||
− | energy_shield_cost = m_util.html.abbr('ES Cost', 'Energy shield cost'), |
||
− | rage_cost = 'Rage<br>Cost', |
||
− | mana_reserved = 'Mana<br>Reservation', |
||
− | life_reserved = 'Life<br>Reservation', |
||
− | attack_speed_multiplier = 'Attack<br>Speed<br>Multiplier', |
||
− | damage_effectiveness = 'Damage<br>Effectiveness', |
||
− | stored_uses = 'Stored<br>Uses', |
||
− | cooldown = 'Cooldown', |
||
− | vaal_souls_requirement = 'Vaal<br>souls', |
||
− | vaal_stored_uses = 'Stored<br>Uses', |
||
− | vaal_soul_gain_prevention_time = 'Soul<br>Prevention<br>Time', |
||
− | damage_multiplier = m_util.html.abbr('Damage<br>Multiplier', 'Deals x% of base damage'), |
||
− | duration = m_util.html.abbr('Base duration', 'Base duration is x seconds'), |
||
− | experience = m_util.html.abbr('Exp.', 'Experience needed to level up'), |
||
− | total_experience = m_util.html.abbr('Total Exp.', 'Total experience needed'), |
||
− | na = 'N/A', |
||
− | } |
||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | |||
− | cfg.max_stats_per_level = 8 |
||
return cfg |
return cfg |
Revision as of 22:21, 16 May 2021
Module documentation[create]
You might want to create a documentation page for this module.
Editors can experiment in this module's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this module.
Editors can experiment in this module's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this module.
-------------------------------------------------------------------------------
--
-- Configuration for Module:Item link
--
-------------------------------------------------------------------------------
local cfg = {}
-- ----------------------------------------------------------------------------
-- i18n
-- ----------------------------------------------------------------------------
cfg.i18n = {}
cfg.i18n.categories = {
-- maintenance cats
broken_item_links = 'Pages with broken item links',
}
cfg.i18n.errors = {
invalid_args = 'Item link: metadata_id, page, item_name or item_name_exact must be specified',
no_results = 'Item link: No results found for search parameter "%s".',
too_many_results = 'Item link: Too many results for search parameter "%s". Consider using page parameter instead.',
alt_art_undefined = 'Item link: Image parameter was specified, but there is no alternate art defined on page "%s"',
alt_art_invalid_index = 'Item Link: Alternate art with index/name "%s" not found on page "%s"',
}
-- ----------------------------------------------------------------------------
-- Constants
-- ----------------------------------------------------------------------------
cfg.image_size = 39
cfg.image_size_full = cfg.image_size * 2
cfg.parameters = {
name = 'items.name',
inventory_icon = 'items.inventory_icon',
html = 'items.html',
width = 'items.size_x',
height = 'items.size_y',
}
cfg.selectors = {'metadata_id', 'page', 'item_name', 'item_name_exact'}
return cfg