Module:HeroData: Difference between revisions

Jump to navigation Jump to search
title for dash buckets table
added "no_template" function to get_hero_scalar
Line 203: Line 203:
local hero_stat_key = frame.args[3]
local hero_stat_key = frame.args[3]
local sig_figs_or_localize = frame.args[4]
local sig_figs_or_localize = frame.args[4]
local no_template = frame.args["no_template"]
local hero_data = heroes_data[hero_key]
local hero_data = heroes_data[hero_key]
Line 226: Line 227:
local scaling_str = p.write_scalar_str(scaling_value, scaling_type)
local scaling_str = p.write_scalar_str(scaling_value, scaling_type)
 
   
return scaling_str
    if no_template == "true" then
    return scaling_value
    else
    return scaling_str
    end
end
end