* Marriage Template Question

AS allows faster and more convenient creation of source records for Family Historian.
Post Reply
avatar
neil40
Famous
Posts: 244
Joined: 12 Apr 2012 13:42
Family Historian: V7
Location: Bicester, Oxfordshire

Marriage Template Question

Post by neil40 » 03 Jan 2023 21:38

Hi all/Nick

I am trying to adapt the 1837 Rich Text English Template to make one for a Roman Catholic marriage in Ireland.

The Register entry at the top reads:
1878 Marriage solemnized at the Roman Catholic Chapel of Cahir in the Registrar's District of Cahir in the Union of Clogheen in the County of Tipperary

I have changed the code to

Code: Select all

{RTF-TITLE}{YEAR}, Marriage solemnized at the Roman Catholic Chapel of {ADDR.SHORT} in the Registrars District of {ADDR.SHORT} in the Union of {PLACE.SHORT} in the County of {PLACE.MEDIUM} {RTF-TITLE.OFF}
...from using
Place: Clogheen, County Tipperary
Address: Cahir
This gives the result:
1878, Marriage solemnized at the Roman Catholic Chapel of Cahir in the Registrars District of Cahir in the Union of Clogheen in the County of Clogheen, County Tipperary

Is it possible to adapt the codes to achieve the original text please?
Neil Grantham
Researching Grantham, Skuce, Barrow and Birchall

User avatar
tatewise
Megastar
Posts: 27079
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Marriage Template Question

Post by tatewise » 03 Jan 2023 21:47

Take a look at the =COMMAINDEX[n%{PLACE}] function that is similar to the FH =TextPart(...) function and can extract any comma-separated part from the PLACE field.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
NickWalker
Megastar
Posts: 2401
Joined: 02 Jan 2004 17:39
Family Historian: V7
Location: Lancashire, UK
Contact:

Re: Marriage Template Question

Post by NickWalker » 03 Jan 2023 21:49

This would get something closer:

Code: Select all

{RTF-TITLE}{YEAR}, Marriage solemnized at the Roman Catholic Chapel of {ADDR.SHORT} in the Registrars District of {ADDR.SHORT} in the Union of {PLACE.SHORT} in =COMMAINDEX[-1%{PLACE}]{RTF-TITLE.OFF}
Nick Walker
Ancestral Sources Developer

https://fhug.org.uk/kb/kb-article/ancestral-sources/

avatar
neil40
Famous
Posts: 244
Joined: 12 Apr 2012 13:42
Family Historian: V7
Location: Bicester, Oxfordshire

Re: Marriage Template Question

Post by neil40 » 03 Jan 2023 22:46

Thanks Mike and Nick, that's just what I needed.
Neil Grantham
Researching Grantham, Skuce, Barrow and Birchall

Post Reply