Module:Abilities/details table: Difference between revisionsGive feedback
Created page with "p = {} local utils = require "Module:Abilities/utils" p.get_details_table = function(frame) local hero_name = frame.args[1] local ability_num = frame.args[2] local ability = utils.get_ability_card_data(hero_name, ability_num) if(ability == nil) then return "Ability Not Found" end local rows = '' for info_section_num=1, 10 do local info_section = ability['Info'..info_section_num] if info_section == nil then break end -- display props from info sections..." |
No edit summary |
||
| Line 27: | Line 27: | ||
rows = rows .. create_row(prop.Key, prop.Value, scale_type, scale_value) | rows = rows .. create_row(prop.Key, prop.Value, scale_type, scale_value) | ||
end | end | ||
end | |||
-- then any header data, cooldowns, charges, range etc. | -- then any header data, cooldowns, charges, range etc. | ||
| Line 44: | Line 45: | ||
end | end | ||
return p | |||