* Source templates and capitalization

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
User avatar
BakerJL75
Famous
Posts: 200
Joined: 14 Dec 2020 11:29
Family Historian: V7

Source templates and capitalization

Post by BakerJL75 » 04 Jan 2021 02:41

I'm creating source templates. I have a field called {Type} that is input as database and images. This works fine in my footnote. But in my Bibliography I would like it to say Database and images. Capitalized.

A similar issue, if the Author is put in as John Doe, it's fine in the footnote. But in the Bibliography, I want it to say Doe, John.

I somehow feel maybe there is an entire class of 'functions' (Namecase and/or Reverse) I'm not finding. Are either of these doable? And if there is something I need to go read, that's great too.

Thanks,
Jackie
Thanks,
Jackie

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

Re: Source templates and capitalization

Post by tatewise » 04 Jan 2021 10:44

Checkout the FH Help > Family Historian Help > Sources and Source Templates > Source Template Formats

There under Field Code Qualifiers there is REVERSE for Name fields that does what you want, along with some others.

I wonder if you entered Database and Images in Title case (Capitalization means entirely in CAPITALS) which would be correct for Bibliography, you could then use the =ToLower(...) function in the Footnote, but I have not tried that.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
BakerJL75
Famous
Posts: 200
Joined: 14 Dec 2020 11:29
Family Historian: V7

Re: Source templates and capitalization

Post by BakerJL75 » 04 Jan 2021 19:45

tatewise wrote:
04 Jan 2021 10:44
I wonder if you entered Database and Images in Title case (Capitalization means entirely in CAPITALS) which would be correct for Bibliography, you could then use the =ToLower(...) function in the Footnote, but I have not tried that.
Thanks Mike. That worked. {=ToLower(%SOUR._FIELD[2]%)}

Jackie
Thanks,
Jackie

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Source templates and capitalization

Post by Jane » 05 Jan 2021 10:51

Jackie, you might want to use the shortcut for the field you want rather than using the index, as if one of the fields is not entered you might not get the value you were expecting.

These are covered in the Help https://www.family-historian.co.uk/help ... ences.html at the bottom of the page.

I would guess your field would be something like
%SOUR.~TX-TYPE%
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
BakerJL75
Famous
Posts: 200
Joined: 14 Dec 2020 11:29
Family Historian: V7

Re: Source templates and capitalization

Post by BakerJL75 » 05 Jan 2021 11:34

Thank you Jane. I'll work on that. I'm still struggling figuring out data references, but making progress and appreciate the help.
Thanks,
Jackie

Post Reply