Module:Sandbox/Hellknowz/Test: Difference between revisions

Content deleted Content added
m wow typo
add range
Line 415:
if (elements[5] == ELEMENT_ONETWODIGITS) then -- '2013-05-03'
if (numberOfElements == 5) then return checkAndOutput(values[1], values[3], values[5], nil, nil, nil) end
if (elements[6] == ELEMENT_WHITESPACE or elements[6] == ELEMENT_COMMA) then -- '3 May 2013-05-03, '
if (elements[7] == ELEMENT_ONETWODIGITS) then -- '2013-05-03, 10'
if (elements[8] == ELEMENT_TIMEPERIOD) then -- '2013-05-03, 10 am'
Line 475:
if (elements[7] == ELEMENT_MONTHWORD) then -- 'May 3, 2013 - February'
if (elements[8] == ELEMENT_WHITESPACE) then -- 'May 3, 2013 - February '
if (elements[9] == ELEMENT_ONETWODIGITS) then -- 'May 3, 2013 - February, 12'
if (elements[10] == ELEMENT_COMMA or elements[10] == ELEMENT_WHITESPACE) then -- 'May 3, 2013 - February, 12, '
if (elements[11] == ELEMENT_FOURDIGITS) then -- 'May 3, 2013 - February, 12, 2014'
if (numberOfElements == 12) then return checkAndOutput(values[5], values[1], values[3], nil, nil, nil, values[11], values[7], values[9], nil, nil, nil) end
end
end
end
end
end
end
end
elseif (elements[4] == ELEMENT_DASH) then -- 'May 3 - '
if (elements[5] == ELEMENT_MONTHWORD) then -- 'May 3 - June'
if (elements[6] == ELEMENT_WHITESPACE) then -- 'May 3 - June '
if (elements[7] == ELEMENT_ONETWODIGITS) then -- 'May 3 - June 12'
if (elements[8] == ELEMENT_COMMA or elements[8] == ELEMENT_WHITESPACE) then -- 'May 3 - June 12, '
if (elements[9] == ELEMENT_FOURDIGITS) then -- 'May 3 - June 12, 2014'
if (numberOfElements == 9) then return checkAndOutput(values[9], values[1], values[3], nil, nil, nil, values[9], values[5], values[7], nil, nil, nil) end
end
end