Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
corrected period count
Ganaram inukshuk (talk | contribs)
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 == range_name and range_name or string.format("%s (%s)", step_ratio_range, range_name)
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)