User:Wlgrin/Sandbox/Generic/Main/Template001/code/Appraisal step3

{{safesubst:#ifeq:{{{mode}}}|blank|‌|
{{safesubst:#switch:{{{mode}}}|error={{safesubst:User:Wlgrin/Sandbox/Generic/Main/Template001/code/Appraisal error|test-id={{{test-id}}}|result-name={{{result-name}}}|failure-reference={{{failure-reference}}}|failure-category={{{failure-category}}}|error-type-name=Input error|text-short={{{text-short}}}|text-long={{{text-long}}}}}|pass|fail={{safesubst:#switch:{{{type}}}|manual={{safesubst:User:Wlgrin/Sandbox/Generic/Main/Template001/code/Hovertip|base-text={{{text-short}}} (ℳ)|tip-text=Manual appraisal: {{{text-long|}}}}}|automatic={{safesubst:User:Wlgrin/Sandbox/Generic/Main/Template001/code/Hovertip|base-text={{{text-short}}}|tip-text=Automatic appraisal: {{{text-long|}}}}}|#default={{safesubst:User:Wlgrin/Sandbox/Generic/Main/Template001/code/Hovertip|base-text={{{text-short}}}|tip-text={{{text-long|}}}}}}}|#default|disabled|untested={{safesubst:User:Wlgrin/Sandbox/Generic/Main/Template001/code/Hovertip|base-text={{{text-short}}}|tip-text={{{text-long|}}}}}}}{{safesubst:#ifeq:{{{mode}}}|fail|{{safesubst:User:Wlgrin/Sandbox/Generic/Main/Template001/code/Appraisal error|test-id={{{test-id}}}|result-name={{{result-name}}}|failure-reference={{{failure-reference}}}|failure-category={{{failure-category}}}|error-type-name=Test case failure|text-short=|text-long={{safesubst:#switch:{{{type}}}|manual=Rated by manual appraisal{{safesubst:#if:{{{timestamp|}}}|{{safesubst:#ifeq:{{safesubst:lcfirst:{{safesubst:#titleparts:{{{timestamp}}}|1|1}}}}|error|.| performed at {{safesubst:User:Wlgrin/Sandbox/Generic/Main/Template001/code/Appraisal timestamp|value={{{timestamp}}}}} UTC.}}}}|automatic=Rated by automatic appraisal; actual result does not match expected result.|#default=}}}}}}
{{safesubst:#ifexpr: {{safesubst:#ifeq:{{{show-timestamp|false}}}|true|1|0}}or ( ( {{safesubst:#ifeq:{{{mode}}}|pass|1|0}}or {{safesubst:#ifeq:{{{mode}}}|fail|1|0}})and {{safesubst:#ifeq:{{{type}}}|manual|1|0}})|
{{safesubst:#if:{{{timestamp|}}}|{{safesubst:#ifeq:{{safesubst:lcfirst:{{safesubst:#titleparts:{{{timestamp}}}|1|1}}}}|error|{{safesubst:#switch:{{{timestamp}}}|error/transclusion={{safesubst:User:Wlgrin/Sandbox/Generic/Main/Template001/code/Appraisal error|test-id={{{test-id}}}|result-name={{{result-name}}}|failure-reference={{{failure-reference}}}|failure-category={{{failure-category}}}|error-type-name=Input error|text-short=timestamp was not substituted|text-long=Invalid timestamp in manual appraisal: the timestamp must be substituted. Use {{subst:TTest/i/Timestamp}}.}}|#default={{safesubst:User:Wlgrin/Sandbox/Generic/Main/Template001/code/Appraisal error|test-id={{{test-id}}}|result-name={{{result-name}}}|failure-reference={{{failure-reference}}}|failure-category={{{failure-category}}}|error-type-name=Input error|text-short=Invalid timestamp|text-long=Invalid timestamp in manual appraisal.}}}}|{{safesubst:User:Wlgrin/Sandbox/Generic/Main/Template001/code/Appraisal timestamp|value={{{timestamp}}}}} UTC}}|{{safesubst:User:Wlgrin/Sandbox/Generic/Main/Template001/code/Appraisal error|test-id={{{test-id}}}|result-name={{{result-name}}}|failure-reference={{{failure-reference}}}|failure-category={{{failure-category}}}|error-type-name=Input error|text-short=(when?)|text-long=No timestamp was supplied with the {{safesubst:#ifeq:{{{type}}}|manual|manual }}appraisal. Use {{subst:TTest/i/Timestamp}}.}}}}
}}
}}
{{Documentation}}