Repository navigation
Citations
How Gramps Connect writes a citation out as text, where each choice about that is made, and how to make your own formats. The circled (i) next to a Citation's or Source's Formatted citation opens this page.
A selected Citation starts with Formatted citation: its source written out as a reference, with the page, date and confidence on the line below, the way Gramps prints a report's endnotes:
Smith, John, "Parish Registers", London, 1890, (PR)
p. 12 - 1 May 1890 [High]
A Source shows the same first line as Formatted source. Copy puts the text on the clipboard, ready to paste into a story, a note or an email. It copies formatted text and plain text together: a word processor or email keeps any italics and bold, and anywhere else gets the plain words. Dates follow the tree's date format (Preferences > Family tree > Dates).
A citation's text comes about in one of two ways:
- Manual text: text you typed or pasted in, shown exactly as entered (see Manual text).
- Auto formatted: written from the source's and citation's fields, using a format. It follows any later edit to those fields.
For auto formatting, the first of these that applies decides the format:
- A format set for only this citation.
- A format set for this source, and so for all its citations.
- The tree's own format, the Citation formatter in Preferences.
A short grey line under the text always says which it is:
| The line says | Meaning |
|---|---|
| Written manually, shown exactly as entered. | the citation has manual text |
| Auto formatted using the tree's format (Legacy). | nothing was set for it or its source |
| Auto formatted using Enhanced, set for this source. | its source chose a format |
| Auto formatted using Enhanced, set for this citation only. | this citation chose its own |
| Set to "…" for this source, which this tree doesn't have, … | the format named there was renamed or deleted, so the tree's is used |
The Citations list has a Date column, the date recorded on each citation (for example the date of the entry in a register), shown in the tree's date format. Click its header to sort by it.
A Source's Referenced by lists its citations with their page and date, so several citations of the same source are easy to tell apart. The source's own title is left off those rows, since it's the record you are looking at. Citations listed under Referenced by elsewhere (on a Note or a Media item) show their date after the source title and page.
Everyone who can see a citation sees its formatted text, Copy and this (i). Write manually and Auto format change records, so they only appear for people who may edit them (Editors, Owners and Admins). Choosing the tree's Citation formatter and editing its templates is a tree setting, so it needs a tree Owner or Admin, like the other Preferences on the Family tree tab.
Preferences > Family tree > Citations > Citation formatter sets
the format every citation uses unless it or its source chose another.
It matches Gramps desktop's own Citation formatter preference, which
Gramps uses for report endnotes, and Import from Gramps desktop…
reads it from your gramps.ini.
The choices are Legacy, Enhanced and any templates the tree has. Below the choice, a few of the tree's own citations are written out in it, so you can see the difference before pressing Save.
Legacy, the default, is the format Gramps ships with:
Author, "Title", Publication info, (Abbreviation)
Page - Date [Confidence]
Empty fields are left out with their commas, and the confidence only appears when it isn't Normal.
Enhanced, from Gramps' CiteEnhanced addon, is the same but starts with the source's first repository and its call number:
Repository [Call number], Author, "Title", Publication info, (Abbreviation)
Both are written from the record already on screen, so they appear at once, and they use Gramps' own translations of their punctuation (French quotation marks in French, for example).
A census, a parish register and a book are usually cited differently. Auto format on a Citation's or Source's Formatted citation opens a list of every format the tree has: its own (the default), Legacy, Enhanced and any templates. Each one is shown with the record you're on already written out in it, so you can see exactly what you'd get. Click one to select it, then Apply; Cancel changes nothing.
On a Citation, the top of the list chooses between All citations of this source and Only this citation, for the rare citation that needs its own format; Same as its source takes that back.
New formats aren't made here: they're the tree's, so they're made in Preferences by a tree Owner or Admin (see Making a template). For them, the bottom of the list has Make one in Preferences, which opens Preferences at Citations; everyone else sees a note that a tree owner can add more.
The choice is kept as a Citation template attribute on the Source (or the Citation) holding the format's name, so Gramps desktop keeps it and you can see it among the record's attributes. Names match whatever their capitals. If the tree has no format by that name any more (a template was renamed or deleted), the tree's own format is used and the grey line says which name it couldn't find.
Auto format is greyed out on a citation that has manual text: manual text is shown as it is, whatever the format. Remove the manual text first to format that citation automatically.
Sometimes you want a citation to read exactly as you write it, for example the ready-made citation a website hands you (FamilySearch's "Cite this record", Ancestry's source citation). Write manually on a Citation's Formatted citation lets you type or paste it. From then on it's shown, and copied, exactly as entered, instead of being formatted automatically: it doesn't change when the source or citation is edited, or when a different format is chosen.
The text is kept as the citation's Citation text attribute, so Gramps desktop keeps it too. Edit manual text changes it, and Remove manual text and format automatically goes back to auto formatting.
Gramps Connect doesn't try to read the author, title or page back out of manual text, since every site writes citations its own way.
Writing manual text and choosing a format each change one record (the Citation, or the Source for all its citations) in a single step, so each shows up in that record's History and can be undone there like any other edit. Templates and the tree's Citation formatter are Preferences: they change when you press Save, and Revert before that drops your changes, but saved Preferences have no history of their own.
Preferences > Family tree > Citations > New template opens the template editor. A template has a name and two lines:
- the source line, written for the Source, and
- the citation line, written for the Citation.
The editor starts from the format in use; Start from replaces it with Legacy, Enhanced or one of the starter templates, which also names a template that has no name yet. While you type, it writes a few of the tree's own citations with the template, and names any part the server can't read (a misspelled field lists the fields that exist). OK waits until both lines read cleanly. A new template becomes the tree's Citation formatter; Edit and Delete sit next to each template. Deleting the one in use goes back to Legacy, and any source that named it falls back to the tree's format. Templates are kept when you press Save.
A template is ordinary text, with a field to fill in between backticks. Legacy, written as a template, is:
`author`[, "`title`"][, `pubinfo`][, (`abbrev`)]
`page`[ - `date`][ \[`confidence`\]]
-
`field`is replaced by that field's value. What goes between the backticks is a GOQL expression, the same as in a list column, so it can follow links to other records. Tab completes inside backticks. -
[ ... ]is an optional part: it's left out when any field inside it is empty, so a missing author or page never leaves a stray comma or dash. Optional parts can sit inside each other; an inner part being empty doesn't remove the outer one. -
Separators at the start of a part (spaces,
,;:.and dashes) are also left out when nothing comes before the part on its line. So`author`[, "`title`"]gives"Title", not, "Title", when there's no author. A(or a quotation mark is kept. -
Leftover punctuation is tidied once the line is written, so an empty
field outside
[ ]doesn't leave stray marks either: a comma, semicolon or colon right after another one, at the very end of the line (even just inside a closing quote), or next to a bracket is left out; empty(),[]and""go; and double spaces become one. So"Title,"with nothing after it becomes"Title", and"Local News," , p. 3becomes"Local News," p. 3. Only punctuation the template wrote is tidied, never anything in a field's own value. -
*italic*and**bold**work as in Markdown:*`title`*writes the title in italics. Only the template's own text is read for these marks, never a field's value, and a mark opened inside a[ ]part must be closed in that same part. -
A backslash makes the next character plain text:
\[and\]for square brackets,\`for a backtick,\*for an asterisk,\\for a backslash.
On the source line, fields belong to the Source:
| Field | What it is |
|---|---|
`title`, `author`
|
the source's title and author |
`pubinfo` |
its publication info |
`abbrev` |
its abbreviation |
`gramps_id` |
its Gramps ID, e.g. S0012 |
`repositories[0].name` |
the name of the first repository holding it |
`reporef_list[0].call_number` |
its call number there |
`reporef_list[0].media_type` |
its media type there (Book, Film, Electronic, ...) |
`attribute_list['Film'].value` |
the value of its "Film" attribute |
On the citation line, fields belong to the Citation:
| Field | What it is |
|---|---|
`page` |
the citation's Volume/Page |
`date` |
its date, in the tree's date format |
`confidence` |
its confidence, by name (Very Low ... Very High); Normal shows nothing |
`gramps_id` |
its Gramps ID |
`attribute_list['URL'].value` |
the value of one of its attributes |
`source.title` |
a field of its source: source. then any source field |
[1] instead of [0] reaches the second repository, and so on. An
attribute's type is spelled as Gramps shows it, either a type of your own
("Film") or one of Gramps' built-in types; see
An attribute by its type.
Start from offers five ready-made formats for common kinds of record, written in the layered style genealogists use for source citations (the style described in Elizabeth Shown Mills' books). They're a starting point: pick one, rename or adjust it, and use Auto format to choose it for the sources it suits.
| Starter | For | Example |
|---|---|---|
| Online record | a record seen on a website: FamilySearch, Ancestry, FindMyPast, FreeBMD, Find a Grave, an online index | "England and Wales Census, 1881," database with images, FamilySearch John Smith household, Leeds, Yorkshire (https://… : accessed 22 November 2026); citing The National Archives, Kew, RG11/4321, folio 56, page 7 |
| Archive record | a census, parish register or civil register seen in an archive or on microfilm | St Peter's Parish, Baptisms 1810-1840, Leeds, Yorkshire; West Yorkshire Archive Service, RDP68/3/1 John Smith baptism, p. 12, no. 96 (3 May 1820); microfilm 1,234,567 |
| Book | a printed book | Jane Doe, A History of Leeds (London: Smith & Co., 1890) p. 45 |
| Newspaper | an article, in print or in an online archive |
Leeds Mercury (Leeds, Yorkshire) "Local News," 4 May 1890, p. 3, col. 2 |
| Gravestone | a gravestone or memorial | Beckett Street Cemetery, Leeds, Yorkshire John Smith gravestone, section B, grave 412, photographed 12 June 2019 |
Any part with nothing recorded is left out, so a source without a repository or a citation without a URL still reads properly.
The starters use Gramps' own fields wherever there is one:
| Part of the citation | Where it's kept |
|---|---|
| Database, register, book or newspaper title | the Source's Title |
| Author | the Source's Author |
| Publisher, place and year ("London: Smith & Co., 1890") | the Source's Pub. info |
| Website or archive | a Repository (its name) |
| Archive reference or film for the whole source | the repository reference's Call number |
| Volume, page, folio, entry, enumeration district | the Citation's Volume/Page |
| Date of the record (for a gravestone, when photographed) | the Citation's Date |
| A transcription | a Note on the Citation |
For what Gramps has no field for, they read these attributes, which you add in the Source's or Citation's own Attributes:
| Attribute | On | What it holds | Example |
|---|---|---|---|
| Place | Source | the place the collection covers, or where a newspaper or cemetery is | Leeds, Yorkshire |
| Medium | Source | the form it takes | database with images |
| Original | Source | the original records an online database was made from | The National Archives, Kew |
| Item | Citation | which record it is | John Smith household |
| URL | Citation | the record's own web address | https://www.familysearch.org/ark:/… |
| Accessed | Citation | when you viewed it online, as you'd write it | 22 November 2026 |
| Film | Citation | a film number, when it differs from record to record | 1,234,567 |
Attributes are kept as written, and Gramps desktop keeps them too. Your own templates can use any attribute names you like; these are simply the ones the starters read.
A template can't show someone more than they may see. For a person who can't see private records (a Guest), a private attribute, a private repository or a private source is simply empty, so its part of the template is left out.
Templates are filled in by the server, so a citation's formatted text appears a moment after the rest of its page; Legacy and Enhanced appear at once. For a Guest on a very large tree this can take about a second. Going back to a citation you've just seen shows its text right away while it's checked again.
The Bibliography View Gramplet (from the Gramplet Store, for People,
Families, Events, Places, Media, Sources and Citations) lists every source
behind the selected record as a numbered bibliography: each source once,
with its citations lettered below, each written in its own format, and a
Copy for the whole list. Click a number to open its source, or a
letter to open that citation. For a person it gathers their own citations
and those on their names, events and families. Gramplet authors can draw
the same list with bibliography(); see
Gramplets.
Everything here is stored in ways Gramps desktop keeps:
- Manual text is the citation's Citation text attribute.
- A chosen format is a Citation template attribute on the Source or Citation.
- The tree's formatter and templates are part of the tree's Preferences.
Gramps desktop doesn't use them to write its reports, though: its reports follow desktop's own Citation formatter preference. The attributes simply stay on the records, visible in desktop's editors, and come back to Gramps Connect unchanged.
Gramps Connect is part of the family of Gramps-based software.
Getting started
Using the app
- Working Together
- Messaging
- Search & Filters
- GOQL (advanced search)
- Charts
- Maps
- Stories & Photos
- Data Model & Editing
- Citations
- Gramplets & Add-on Store
- Administration & Settings
Building & contributing