Introduction
Many users will never need/choose to customise Source TemplatesFamily Historian Version 7 introduced the ability to define sources using 'Source Templates' to aid precision and consistency in entering source-identifying information. but everyone who uses them will need to add some to their projectA Project is a Windows folder, created by Family Historian, which contains all your Family Tree information recorded in Family Historian. Normally located in the Documents\Family Historian Projects folder.. This article introduces some key terminology, describes how to add Templates to a project, and (for those users who wish to do so) how to create new Templates or customise existing ones.
If you have not already done so, we recommend you read Sources and Citations in FH7 (for Upgraders) or Sources and Citations in FH7 (for New Users) before continuing here.
Terminology: Source Template Definitions, Source Template Records and Collections
A Source Template Definition includes information needed to identify the Template (the Template name, a Category and possibly a Subcategory which are useful when determining which Template to use), and a description of the Template. It also includes all the information needed to determine how a particular Template behaves: what fields are included and the type of data each holds, and how the Title, Footnote, Short Footnote and Bibliography entry are constructed from those fields.
Source Template Definitions do not form part of any project, but sit outside them, available to be added to one or more projects of your choice. When you add a Source Template Definition to a project, it creates a Source Template Record, which does sit inside a project and appears in the Source Template record list. The distinction becomes important when Customising Templates, as changes you make to a Source Template Record are not automatically applied to a Source Template Definition (more on this later, for advanced users).
A Collection is a group of Source Template Definitions. The standard collections supplied with ƒh are the Essentials Collection and the Advanced Collection, but you can create additional custom Collections for your own use or to share with others.
How to Make Templates Available in a Project
When you create a new Project or import a Project from ƒh6, no Source Template Records are included. The first time you attempt to Create a Source from a Template, you will be asked if you wish to add the Templates from the Essentials collection, or whether you wish to add Templates as needed.
If you accept the offer, the Essentials collection of Source Template Definitions will be used to create Source Template Records within your project.
If you choose not to accept the offer, you can add Templates at any point using Tools > Source Template Definitions…, or by clicking the Find More… button wherever you’re prompted to select a Source Template Record (for example when Creating a Source from a Template). Both routes will open the Source Template Definitions Dialog, which allows you to select the Templates you want to add, and is described at Source Template Definitions Dialog
Creating and Customising Templates
The Source Template Definitions Dialog is the starting point for creating/editing your own Source Template Definitions; open it via Tools > Source Template Definitions…, or by clicking the Find More… button wherever you’re prompted to select a Source Template Record (for example when Creating a Source from a Template). It is also possible to edit a project’s Source Template Records directly. That suits changes meant for one project only, and Templates that have no Definition, but it is the wrong tool for renaming or retyping fields that already hold data (see below). A Record edited this way no longer matches its Definition, which then shows ‘mod’ in the Used column. For anything you want to reuse in other projects, edit the Definition, which also has the facilities for keeping everything in sync.
You cannot edit the standard Source Template Definitions (or add to the standard Collections), but you can Clone… an existing Template Definition or create a New… Template Definition. Both Cloned and New Definitions can be put in a Collection of your own. By default, this Collection is called Custom; however, you can call your Collection anything you like, and have as many of your own Collections as you wish. You might want to create a Collection of Templates suitable for Sources generated in a particular country, or one for the various sorts of Military Service Records created in the UK. Or you might be content with the Essentials Collection of Templates, except for some changes to the Record Title Formats to ensure all the source-identifying data is included in the Title when you export a Gedcom file.
The Help file covers creating and customising Templates, but there are some key things to bear in mind:
- Changes you make to a Source Template Definition will not be applied to the corresponding Source Template Record and associated Source recordsSource: "where information was found". This could be anything from an archive in a county records office, a book, or even a relative's recorded recollection. Citing your Sources helps to show how you reached a particular conclusion about an Individual. in your Project until you use the Compare/Sync with Source Template Record… button within the Source Template Definitions dialog and use its Perform Task options.
-
Editing a Source Template Record directly does not update the Sources and CitationsA link between a source and a fact, documenting Where within the source you find information being "cited" to support the fact/conclusion. already created from it, and ƒh gives no warning. That is fine for many changes: formats, prompts and Enum lists, adding a field, or anything at all in a Template that no Source uses yet. It is also the only way to change a Template that has no Definition, such as one imported from another program.
What it must not be used for is renaming a field, or changing its Type or Citation setting, once the field holds data. The values already entered are then disconnected. They stay in the project and show as ‘Undefined’ on the All tab, but disappear from the Main tab and from footnotes and bibliographies, where a renamed or deleted field prints ‘ERROR: *** ***’. A later Compare/Sync does not reconnect them; restoring the field’s original name and Type does.
- If you want to delete a custom Template completely, you must not only delete the relevant Source Template Definition using Tools > Source Template Definitions… and then selecting the relevant Template and clicking Delete; you must also delete the corresponding Source Template Record in any projects where it is present, by using View > Other Record Lists > Source Templates (if the Source Templates are not already visible in the Records WindowThe Records Window provides a comprehensive view of all the information stored within a Family Historian project.), and selecting the relevant Source Template Record and using the DEL key to delete it.
ƒh ties each value in a Source or Citation to its field by the field’s code and Type. The code is derived from the field name (spaces become underscores) and cannot be edited separately, so renaming a field changes its code.
Special care is needed when deleting or changing an existing Field definition:
-
Deleting a Field definition does not delete its values; they are left behind as ‘Undefined’ fields, which is why step 1 clears them first. For a Citation-specific field the values are in the Citations, not the Source records. Remove the field’s code from the formats as well, or footnotes will print ‘ERROR: *** ***’ in its place. Compare/Sync cannot remove a field from the Source Template Record, which is why step 2 uses the Property BoxThe Property Box is the primary window for data entry and for viewing details of stored records. It is used with records of all types. .
Before deleting a Field definition from the Source Template Definition perform the following steps:
- Create a QueryQuerying is a very powerful feature that allows you to specify and save criteria for identifying a set of records of a given record type. or Records Window column to display the Source record Field and delete all instances of its value.
- In the Source Template record Property Box, delete the Field Definition via the All tab.
- Finally, in the Source Template Definition, delete the Field, then Save and Close and ensure Compare/Sync with Source Template Record… is OK.
In Version 8, the Undefined Template Fields smart folders make a good final check. They list every value that a template no longer defines, in Source records and in Citations, so you can select the leftovers and delete them in one go. They also find values left behind when a field was deleted without these steps.
-
Rename or retype a field in the Definition and then sync it. Do not change the Record first: Compare/Sync only moves values that are still attached to the field.
To rename a field, change its name in the Source Template Definition Editor and correct the four formats yourself; the Editor reports ‘Code not found’ on Save if you forget. In the Compare dialog the old and new fields appear on separate lines. Select the new one, click View/Sync Item, choose the old field in the Field from Source Template Record droplist, then use Perform Task > Update record field. Existing values move to the new name. Sync each format separately, or footnotes will print ‘ERROR: *** ***’ where the old code was.
Changing a field’s Type the same way converts existing values, with two exceptions: DateWhen an Event happened, or an Attrribute was true. to Text and RepositoryA repository is a place (physical or online) where collections of original source data are stored and maintained. to Text leave the field empty. Text to Date keeps anything that is not a date as a date phrase. Take a backup first, as the Caution message says.
The Citation setting of a field cannot be changed while the field is in use. Automatic titles of existing Sources are not refreshed by a sync; each is rebuilt when the Source is next edited.
- In ƒh8 the Compare dialog also has an Adjust Field Order button, enabled when the Source Template Definition and the Source Template Record list the same fields in a different order. It reorders one to match the other, in either direction, without touching the fields themselves.

Sharing User-Defined and Imported Templates
ƒh is written assuming a workflow from the Source Template Definition to Source Template Record to Source Record, so if a new template is required this is normally implemented by creating the definition first. While this is usually the preferred route, there will be occasions where the template is created without a definition. In particular, when Source Template Records are imported from another application, ƒh does not automatically create the corresponding definition. If there is no definition file, the Source Template Record cannot be shared with other projects. Another common scenario is where a user who is familiar with Source Templates from another application but unfamiliar with ƒh Source Template Definitions will create new Source Template Records directly.
It is not possible to create Source Template Definitions from existing Source Template Records in ƒh “out of the box”, but this gap is filled by the Create Source Template Definitions pluginPlugins are small programs that allow new features to be added without upgrading Family Historian itself; some plugins are written by Calico Pie and others are written by users.. Download and run this plugin to automatically create all missing Source Template Definitions and add them to the corresponding Collection file.
Once the missing Source Template Definitions have been created, any user-defined or imported templates can be added to other ƒh projects as described above.
Importing and Exporting Collections
File > Import/Export or the Source Template Definitions Dialog Import… and Export… buttons allow you to use Template Collection files (.fhst extension) created by other people, or to make a Collection that you’ve created available for other people to use.
Collections which FHUGThe Family Historian User Group is a group of users with wide-ranging experience, from newcomers to very experienced users, all of whom are very willing to share their knowledge about the programme. users have made available for others can be found at Download Type: Source Templates. If you want to contribute a Collection of your own, please go to Add/Update a Download.