<% doinline = "inline" if inline else "" %>
% if preprocessor is not None:
% endif % if status == 'unsubmitted':
% elif status == 'correct':
% elif status == 'incorrect':
% elif status == 'incomplete':
% endif % if hidden:
% endif

% if status == 'unsubmitted': unanswered % elif status == 'correct': correct % elif status == 'incorrect': incorrect % elif status == 'incomplete': incomplete % endif

% if do_math:
`{::}`
% endif % if status in ['unsubmitted', 'correct', 'incorrect', 'incomplete']:
% endif % if msg: ${msg|n} % endif