Module:Scale tree: Difference between revisions
No edit summary |
No edit summary |
||
| Line 88: | Line 88: | ||
--local comments = frame.args[("comment_" .. step_ratio[1] .. "_" .. step_ratio[2])] or "" | --local comments = frame.args[("comment_" .. step_ratio[1] .. "_" .. step_ratio[2])] or "" | ||
local key = step_ratios[i][1] .. "/" .. step_ratios[i][2] -- The step ratio is (literally and figuratively) the key to add comments! | local key = step_ratios[i][1] .. "/" .. step_ratios[i][2] -- The step ratio is (literally and figuratively) the key to add comments! | ||
local comment = "" | |||
if comments[key] ~= nil then | |||
comment = comments[key] | |||
end | |||
local l_s = "→ ∞" | local l_s = "→ ∞" | ||
| Line 100: | Line 104: | ||
result = result .. "|" .. l_s .. "\n" | result = result .. "|" .. l_s .. "\n" | ||
--result = result .. "|" .. comments .. "\n" | --result = result .. "|" .. comments .. "\n" | ||
result = result .. "|" .. | result = result .. "|" .. comment .. "\n" | ||
i = i + 1 | i = i + 1 | ||