### 30.6.1 Creating a template from a project configuration file

To create a general configuration template:

1. Copy one of your configuration files (one that has the most commonly used settings) to another directory, and give it a different name with extension .ini; for example MyTemplate.ini.

2. Delete from MyTemplate.ini any settings that apply only to the particular project from which you copied the configuration file. Also delete all macro definitions.

3. Delete from all your project configuration files any unused sections that have settings in MyTemplate.ini.

4. Delete from all your project configuration files any settings that occur in MyTemplate.ini, unless a setting has a different value. Settings in a project configuration file override those in a configuration template.

5. In your project configuration file, specify the following to reference the template:

[Templates]

; Configs = path to configuration template file

Configs=path\to\MyTemplate.ini

Because you originally copied MyTemplate.ini from your project configuration file, MyTemplate.ini still has a setting referencing the next configuration template in the chain supplied by Mif2Go; so the template chain remains unbroken.

The idea is to have as little as possible in individual project configuration files, and keep most common settings in the template. However, there are a few settings that can appear only in the project configuration file; see §30.6.2 Deciding what to include in a general configuration template.

| 30.6 Creating your own configuration templates |  | 30.6.2 Deciding what to include in a general configuration template |