Foundation template