Module:Sandbox/Hellknowz/Test: Difference between revisions

Content deleted Content added
i dotn get it, where is syntax lost
oh so like it's not actually wikitext it returns
Line 612:
local result, startDate, startTime, endDate, endTime = parseDateString(frame.args[1])
 
if (result == PARSERESULT_FAIL) then if (frame.args[2] == 'pretty') then return frame:preprocess('\'\'{{gray|Failed parse}}\'\'') else return 'Failed parse' end end
if (result == PARSERESULT_UNRECOGNIZED) then if (frame.args[2] == 'pretty') then return frame:preprocess('\'\'{{gray|Unrecognized pattern}}\'\'') else return 'Unrecognized pattern' end end
if (result == PARSERESULT_INVALID) then if (frame.args[2] == 'pretty') then return frame:preprocess('\'\'{{maroon|Invalid date/time}}\'\'') else return 'Invalid date/time' end end
if (result == PARSERESULT_INVALIDRANGE) then if (frame.args[2] == 'pretty') then return frame:preprocess('\'\'{{maroon|Invalid date range}}\'\'') else return 'Invalid date range' end end
if (result == PARSERESULT_INCOMPLETE) then if (frame.args[2] == 'pretty') then return frame:preprocess('\'\'{{cyan|Incomplete date}}\'\'') else return 'Incomplete date' end end
if (result == PARSERESULT_INCOMPLETERANGE) then if (frame.args[2] == 'pretty') then return frame:preprocess('pretty! \'\'{{cyan|Incomplete date range}}\'\' pretty!') else return 'Incomplete date range' end end
 
local s