Create template: If/errmsg/sandbox