Module:HeroData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) title for dash buckets table |
Gammaton32 (talk | contribs) 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) | ||
if no_template == "true" then | |||
return scaling_value | |||
else | |||
return scaling_str | |||
end | |||
end | end | ||