Module:Infobox MOS: Difference between revisions
corrected period count |
Preparations for changes to step ratio range lookup: if a range name doesn't exist, then the lookup function should return nil instead |
||
| Line 245: | Line 245: | ||
local range_name = tamnams.lookup_step_ratio_range(ratio_1, ratio_2) | local range_name = tamnams.lookup_step_ratio_range(ratio_1, ratio_2) | ||
local step_ratio_range_entry = step_ratio_range == | local step_ratio_range_entry = step_ratio_range == nil and range_name or string.format("%s (%s)", step_ratio_range, range_name) | ||
local ancestor_entry = string.format("[[%s | %s]]", ancestor_long_scalesig, ancestor_scalesig) | local ancestor_entry = string.format("[[%s | %s]]", ancestor_long_scalesig, ancestor_scalesig) | ||