Citations, reimagined

· Doug Blank

Genealogists and family historians know that every fact in a tree needs a citation: where it came from, so that you, or a cousin years from now, can find the record again and judge how far to trust it. But if you’re like me, the citation is the part you put off.

Say you’ve found this Social Security record for one of your relatives on FamilySearch:

A FamilySearch record page for Frederick Eugene Blank in the United States Social Security Numerical Identification Files, with Cite This Record and a Copy Citation button on the left
A record on FamilySearch. On the left, under “Cite This Record”, is the citation FamilySearch writes for you.

You add what it tells you to your tree: a birth, a death, a place he lived. Now for the citation. FamilySearch has already written one: click Copy Citation and this is on your clipboard:

"United States, Social Security Numerical Identification Files (NUMIDENT), 1936-2007",
  FamilySearch (https://www.familysearch.org/ark:/61903/1:1:6K3G-8D53
  : Tue Jul 07 06:10:55 UTC 2026), Frederick E Blank.

Most genealogy websites do the same. Find a Grave puts one at the bottom of every memorial page, and Gramps itself writes them in its reports.

And there’s the problem.

Two worlds

Websites speak text: a citation is a sentence, written to be read. Gramps speaks fields: a source with a title, a citation with a date, a web address in its own attribute, so that records can be grouped, sorted, searched and written out again in whatever style you need.

Until now, you were the translator between the two. Either you retyped the citation, piece by piece, into a source and a citation, deciding as you went what each piece was and where it belonged. Or, like many people I know, you pasted the text into a note and moved on. That’s far better than nothing, but a note is just text: Gramps can’t tell which source it came from, can’t group it with your other records from that collection, and can’t sort or search it by date or web address.

And translation only ever went one way. Gramps could write a citation from its fields, but nothing could read one back into them.

One description, both directions

The new idea is simple: a citation template describes a format completely enough to work in both directions.

Last month’s post, Citing your sources, auto formatted, introduced templates for writing citations. Here is the one for FamilySearch:

The FamilySearch citation template: a source line reading "Title", Kind of record, FamilySearch, and a citation line with Web address, Date looked at, What the record is, Date of the record and Original record
The FamilySearch template: one line for the source, one for the citation.

A template has a source line and a citation line. Each is ordinary text, the quotation marks, commas and words like “FamilySearch”, with citation elements between backticks. Square brackets mark a part that’s left out when its element is empty.

Read forwards, it says how to write a FamilySearch citation from your tree. But it also says exactly which words surround each element. So it can be read backwards: find those fixed words in a pasted citation, and whatever lies between them is the title, the web address, the date you looked at it. The same few lines that write FamilySearch’s citations also recognise them, and take them apart.

That changes what a citation is. The text and the fields stop being two separate things you keep in sync by hand. They become two views of the same citation, and a template is the bridge between them:

A shared vocabulary

For a bridge to work, both sides need to agree on the names of things. The pieces a citation is made of are what Evidence Explained calls its elements, and Gramps Connect now gives each one a plain name and a place in your tree where it’s kept:

Preferences, Citations tab: the list of citation elements, each with a name that can be edited, whether it is on the source or the citation, and the field or attribute it is kept in
Preferences > Citations: each element’s name and where it’s kept. Blue ones are on the source, orange ones on the citation.

Templates are written with these names, pasted text is split into them, and they’re what you see on screen. Where each one is kept is written the same way as in GOQL, the language behind Gramps Connect’s columns, searches and filters, and it’s always one of Gramps’ own fields or attributes, so Gramps desktop keeps everything too. A tree owner can rename the elements, reorder them, or add one for an attribute of their own, such as “Cemetery”.

What it looks like

Gramps Connect comes with templates for FamilySearch and Find a Grave, each written from real citations copied from those sites. Gramps’ own Legacy and Enhanced, and the starter templates for online records, archives, books, newspapers and gravestones, work both ways too. So you can start right away.

Reading: paste a citation

Start a new citation as usual and click Paste a citation… at the top. Paste what the website gave you. Gramps Connect tries every template on the text, and Looks like says which one fits clearly better than the rest. Click Split into elements, and the text is marked up as if with a highlighter: blue pieces for the source (what you looked in, shared by all its citations), orange for this citation (the one record).

The Paste a citation window with the FamilySearch citation from above: the collection title marked Title, then Web address, Date looked at and What the record is; below, a Source box for a new source with that title, and a Citation box listing the other three
The FamilySearch citation from above, read by the FamilySearch template.

Because the source is now real data, it’s shared. If your tree already has a source with that title, the new citation is added to it. Paste ten Find a Grave citations and you get one “Find a Grave” source with ten citations, not ten copies of the same text:

The Paste a citation window with a Find a Grave citation split into Title, Kind of record, Web address, Date looked at, What the record is, Page or number, Original record and Contributor; the Source box says Find a Grave is already in your tree
A Find a Grave memorial’s citation. The tree already has a Find a Grave source, so the new citation joins it.

Continue fills in the citation editor so you can check everything before you save. Saving creates the citation, and a new source if it needs one, as a single change that History can undo.

Nothing here is a guess you have to take on faith. Every piece is marked where you can see it, and if one is wrong, select the right text and click its name, click inside a mark to rename or remove it, or edit the text in place. Text no template recognises is simply left for you to mark by hand. And because templates are just descriptions, the same citation always splits the same way, without your research leaving your own tree for an AI service.

Writing: the same citation, any way you like

The text you pasted is kept on the citation, and at first it’s shown exactly as you pasted it. But Gramps Connect also checks the bridge: if a template writes the very same text back from the fields it read, it says so, and offers to use that template for every citation of that source.

A saved Find a Grave citation showing its formatted citation, a line saying it is shown as pasted, and a line saying Find a Grave writes this citation exactly as pasted, with a button to use it for all citations of Find a Grave
After saving: Find a Grave’s template writes this citation back word for word, so nothing was lost in reading it.

Switching means the citation is now written from its fields: fix a date or a web address, and the citation follows. And since the fields are the citation, it can be written in any template at all. Template shows it in every one the tree offers, ready to choose for this citation or for its whole source:

The Template window, with the same Find a Grave citation written in the tree's default template, Legacy, Enhanced, Find a Grave, FamilySearch and Online record
One citation, read once, written six ways.

Teaching it a new format

Because a template is only a description, teaching Gramps Connect a new website takes no programming. In Preferences > Citations, click New template, start from one of the existing ones, and paste a few of that site’s real citations into Try it on a pasted citation. It shows how the template reads each one, and whether it writes the text back exactly. Adjust until every sample comes back unchanged, and that site’s citations can be both read and written from then on.

The New citation template window, started from FamilySearch, with a FamilySearch World War II draft card citation pasted into Try it on a pasted citation, split into Title, Web address, Date looked at, What the record is and Date of the record, and the note It writes this text back exactly
Trying a template on another citation copied from FamilySearch: every element found, and the text written back exactly.

A template of your own takes the place of a built-in one with the same name, so you can also adjust the Find a Grave or FamilySearch template for your tree.

Try it

← All posts