Module:Xenpaper: Difference between revisions

Ganaram inukshuk (talk | contribs)
Trying previous change again...
ArrowHead294 (talk | contribs)
No edit summary
Line 1: Line 1:
local mos = require('Module:MOS')
local mos = require("Module:MOS")
local rat = require('Module:Rational')
local rat = require("Module:Rational")
local p = {}
local p = {}


Line 32: Line 32:
for i = 1, #step_pattern + 1 do
for i = 1, #step_pattern + 1 do
if i ~= #step_pattern + 1 then
if i ~= #step_pattern + 1 then
text = text .. string.format('%d--_', i - 1)
text = text .. string.format("%d--_", i - 1)
else
else
text = text .. string.format('%d---', i - 1)
text = text .. string.format("%d---", i - 1)
end
end
end
end
Line 84: Line 84:
local ratio_as_text = rat.as_ratio(ratios[i], "%2F")
local ratio_as_text = rat.as_ratio(ratios[i], "%2F")
if i ~= #ratios then
if i ~= #ratios then
text = text .. string.format('%d--_', i - 1)
text = text .. string.format("%d--_", i - 1)
else
else
text = text .. string.format('%d---', i - 1)
text = text .. string.format("%d---", i - 1)
end
end
end
end