-- The Main purpose is to convert ROMAN dates to Arabic numerals-- wjk - Matroc local p =
function p.romantonum(frame) local RN = local convert = 0 local x, y = 0 local input = frame.args[1] or "error" if input
while i < strlen do x, y = RN[string.sub(input,i,i) ], RN[string.sub(input,i+1,i+1) ] if x < y then convert = convert + (y - x) i = i + 2 else convert = convert + x i = i + 1 end end
if i <= strlen then convert = convert + RN[string.sub(input,i,i) ] end return convert endreturn p