Adds a base template and get the other templates to inherit from it