Module:FormatTemplate/testcases

Third pass (fixIfs of the second pass code
 Second and third passes are probably interchangeable, I think, but not verifying this at present