Module:Sandbox/Hellknowz/Test: Difference between revisions

Content deleted Content added
m or second
add d - d m y
Line 342:
if (elements[6] == ELEMENT_WHITESPACE) then -- '3 May - 12 '
if (elements[7] == ELEMENT_MONTHWORD) then -- '3 May - 12 October'
if (elements[8] == ELEMENT_COMMA or elements[8] == ELEMENT_WHITESPACE) then -- '3 May - 12 October, '
if (elements[9] == ELEMENT_FOURDIGITS) then -- '3 May - 12 October, 2013'
if (numberOfElements == 9) then return checkAndOutput(values[9], values[3], values[1], nil, nil, nil, values[9], values[7], values[5], nil, nil, nil) end
end
end
end
end
end
end
end
elseif (elements[2] == ELEMENT_DASH) then -- '3 - '
if (elements[3] == ELEMENT_ONETWODIGITS) then -- '3 - 12'
if (elements[4] == ELEMENT_WHITESPACE) then -- '3 - 12 '
if (elements[5] == ELEMENT_MONTHWORD) then -- '3 - 12 May'
if (elements[6] == ELEMENT_COMMA or elements[6] == ELEMENT_WHITESPACE) then -- '3 - 12 May '
if (elements[7] == ELEMENT_FOURDIGITS) then -- '3 - 12 May 2013'
if (numberOfElements == 7) then return checkAndOutput(values[7], values[5], values[1], nil, nil, nil, values[7], values[5], values[3], nil, nil, nil) end
end
end