Module:Abilities/details table: Difference between revisions

m separate tables for each upgrade
added localization
Line 2: Line 2:


local utils = require "Module:Abilities/utils"
local utils = require "Module:Abilities/utils"
local lang = require"Module:Lang"
local commonutils = require"Module:Utilities"


local header_attrs = {'Radius', 'AbilityCastRange', 'AbilityDuration', 'AbilityCooldown', 'AbilityCooldownBetweenCharge', 'AbilityCharges'}
local header_attrs = {'Radius', 'AbilityCastRange', 'AbilityDuration', 'AbilityCooldown', 'AbilityCooldownBetweenCharge', 'AbilityCharges'}
Line 86: Line 88:
end
end
local row = '|' .. key .. '||' .. value
local label = lang._get_string(key)
if label == nil then
label = commonutils.add_space_before_cap(key)
end
local row = '|' .. label .. '||' .. value
if scale_type and scale_value then
if scale_type and scale_value then