Module:Sandbox/Hellknowz/Test: Difference between revisions

Content deleted Content added
fix elseif
comma not period, elseif was okay
Line 651:
end
end
ifelseif (elements[32] == ELEMENT_FOURDIGITSELEMENT_COMMA) then -- 'May, 2012' (only valid one)
end
if (elements[3] == ELEMENT_FOURDIGITS) then -- 'May, 2012'
-- can't elseif next, it has witspace as before
if (elements[2] == ELEMENT_WHITESPACE or elements[2] == ELEMENT_PERIODWHITESPACE) then -- 'May, '
if (elements[3] == ELEMENT_FOURDIGITS) then -- 'May, 2012' (only valid one)
if (numberOfElements == 3) then return checkAndOutput(values[3], values[1], nil, nil, nil, nil) end
end