Support with/without template file extension
Fix default number format and more flexible construction