What is the best way to: Make the doors for the castle the same size

OPT:
1). Make a template and use it to mark the wood after cutting
2). Make a template and use it to mark the wood before cutting
Answer:
2).