Age at marriage

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Age at marriage are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you are having trouble downloading with the Google Chrome browser, try using try right-click and select Open in new Window, then F5, or use another browser Caution

Ambox notice.png The latest version of this mod uses the guidelines for TNG v12+ cust_text.php files. If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

TNG 13.0
TNG 12.0

Age at Marriage
Summary Adds a "Age at Marriage" field to getperson.php
Mod Updated 14 Mar 2022
Download link v12.3.0.5
TNG 12.0
TNG 13.0
Download stats Montrer les statistiques
Author(s) Michel Kirsch
Homepage Racines luxo-hennuyeres
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod for TNG v12+
Min TNG V v12+
Max TNG V n.c
Files modified


Related Mods

Purpose of the Mod

Adds a field to the TNG main page (getperson.php) with the age of the married persons at the wedding date.
If the partner's age is equal to or less than a limit you set, his or her age will be coloured and bolded. You can adjust the age at which the partner's age will be coloured. You can also choose the color.
It takes a minimum of the wedding's YEAR AND the birth's (or baptism's) YEAR for the field to display.
In the parameters, you could also choose between 3 different displays :
1 = He : 20 years and 6 months - She 19 years and 1 month.
2 = He : 20 years - She 19 years.
3 = He : 20.5 years - She 19.08 years.
A second parameter to display text is proposed :
1 = He was .... - She was....
2 = He : .. She : ...
3 = Nothing (Example : 20 years and 6 months - 19 years and 1 month.)
Since version 2c, marriage between persons of the same sex has been the subject of adapted messages.
Since version 2d, you can add "old" at the end of line (appropriate parameter must be set to 1 in Mod Manager)
Since version 3, You can display the age at marriage for the parents too (default) Since version 4 and 4a, the marriage duration is calculated and a parameter file keeps your settings at upgrade.



The new added field for the family AND the parents.


Based on an idea of Jean-Louis Valory and Written by : Michel Kirsch from Charleroi - Hainaut - Belgium Many people have contributed with their ideas and tests to the development of the Mod: Bob, Hanne, Katryne, Ken, Rick, Rob, Ron,...


A TNG v12.3.0 installation in working order.

IMPORTANT : Before installing

Before installing, it is judicious to make a backup copy of the files that will be modified by this mod.

TNG Modules Impacted

You can click on the [Expand] link on the right to display the list of TNG Modules change and the [Collapse] link to hide this section again.

The following TNG Modules are modified, and should be backed up prior to installing this mod:



  • Unzip the received file directly in the "mods" sub directory of your TNG installation.
  • Via Mod Manager, install the Mod.


  • Uninstall and eventually Delete the current Mod.
  • Your settings are protected during the update process.
  • Proceed as for an installation with the new Mod.

Known Problems

None at this day...

In the event of a problem

  • Try using the Mod Manager Remove capability
  • Copy the backup of the affected files back to your TNG directory
  • Retry. If the problem persists, open an issue in the TNG Community Forums or on the page of Michel Kirsch. At worst, send a mail to MyMail


This Mod is supplied with Swedish, Italian, Portuguese (since v5), Danish (since v3), Czech, German (since v2d), Dutch (since v2a), French and English languages.
If you wish to add another language the following fields of cust_text.php are to be modified:

You can click on the [Expand] link on the right to display the list of TNG Modules change and the [Collapse] link to hide this section again.

// Age at Marriage Mod
$text['mahe'] = "He :";
$text['mashe'] = "She :";
$text['mahewas'] = "He was";
$text['mashewas'] = "She was";
$text['marriedage'] = "Age at Marriage";
$text['mamonth'] = "month";
$text['mamonths'] = "months";
$text['old'] = "old";
$text['marsince'] = "Married ";
$text['marduring'] = "Were Married ";
$text['mamax'] = "less than ";
// Age at Marriage Mod


Accessible via the "Edit options" button of the Mod Manager, there are 11 options:

You can click on the [Expand] link on the right to display the list of TNG Modules change and the [Collapse] link to hide this section again.

1) Text to be displayed.

Options : 1 = He was 20 years - She was 19 years
: 2 = He : 20 years - She : 19 years.
: 3 = 20 years - 19 years

2) Set to 1, this parameter display the first part of the first name instead the pronoun He/She. Default is 0.

   Since v5, you can choose how many parts of the firstname the Mod will display (1 for the first part, 3 for the 3 first parts of the firstname, etc...)
      Example : Helmut was 20 years - Elise was 19 years

3) Display of the age.

Options : 1 = ... 20 years and 6 months.
: 2 = ... 20 years.
: 3 = ... 20,5 years.

4) Set on 1, this adds the word "old" at the end of the sentence.

      Example : Helmut was 20 years old. (jähren alt / jaren oud / ....)

5) You can provide a sign indicating that this age is estimated. This will be the case when a date is not complete.
Recommandations : You must provide a space char at the end of your sequence if needed => [~]space. Left blank for no sign.

     Example : the birthdate is only "1974" => Helmut was 20 years and 3 months old [~]

6) Separator used between the spouse's age at display. The default is - (Hyphen)
You can use an another separator, but you must use its ASCII number! (See this list)

7) Depending of the separator you use and the language you use, the separator (parameter 6)must be preceeded or not with a space.
With this parameter set to 1, a space will precede the separator.

8) If set on 1, the program try to add a sentence about the marriage length.

Examples : Were married 15 years and 5 months. => The spouses are divorced or at least one of them is deceased.
: Married 25 years and 8 months => the marriage is still active.
: Were Married less than 5 years => No divorce and no death : the length is based on the date of the next spouse's marriage.

9) If this parameter is set on 1, the age at marriage of the current person's parents will be displayed too.

10) Minimum age to marry. If the spouse is younger than this age, the age at marriage will be presented in bold and
in the color defined at parameter 11, thus drawing your attention to a possible date error.

11) This color will highlight that the spouse is younger than the minimum age you define at parameter 10. Left blank to use default color (black)

Historic of modifications

Version Release Date Contents 14 Mar 2022 Code is now in a separate file - Fix problems with same sex marriage and display of firstnames instead pronouns - Add Portuguese, Swedish and Italian languages - Option 2) modified to display more than one part of the firstname. 18 Feb 2022 Add a protected parameters file - Refine the conditions to display the "estimated" sign (~) which is now displayed before the age instead at line's end. 15 Feb 2022 Add a sentence giving the marriage duration (Thanks to Bob's idea!) - Fix 2 PHP8 warnings - Add parameters in relation with new functionnalities and display (See list above) - Can display firstnames instead pronouns He/She. - Take in account marriage of same sex. 25 Dec 2021 Add the age at marriage for the parents row too (Thanks to Ron idea !). 18 mar 2021 Minor modification to avoid PHP warnings (Brent). 17 nov 2020 You can now add 'old' at the end of the line (She was 23 years old) - Voor Nederlands, u kan nu 'oud' aan het einde vand de lijn (Ze was 23 jaren oud)). 15 oct 2020 Marriage between persons of the same sex has been the subject of adapted messages. 21 sep 2020 Some language files are optional to allow installation for users who have deleted these files from their version. 29 Aug 2020 Add a second parameter to display text. 26 Aug 2020 Modify code to calculate age (years no more rounded) - Add options for display - Does not show ages if the two ages are unknown 23 Aug 2020 Change variables to avoid problems with other Mods (Relate Mod). Changing EN cust_text.php 22 Aug 2020 First online version.

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:
If you have any problem to do it, send me a mail...

URL User Note Mod-Version TNG-Version User-language
Racines luxo-hennuyeres Michel Kirsch Mod's Developer 13.0.2 FR/EN/NL/DE/SP
Stegemüller Family History Hanne B. Stegemüller Public site 13.1.2 EN, DE, DA
Malkins in New Zealand Rick Malkin Public / Private 13.1.1 EN
Racine d'Alsace J-Louis Valory Private - T17 customized 12.3 FR
Genealogy of a Dutch East-Indies Family Rob Severijns Private 13.1.1 NL, EN
Bastiaanssen Genealogy Jan Bastiaanssen Public / Private 13.1.2 NL, EN, ES
Roots & Relatives Remembered Ron Krzmarzick Public & Private See Here See Here EN,DE,CS
Lignées revestoises Katryne Chauvigné-Bourlaud Village site - Public 13.1.1 FR/EN/DE/IT
GeneaKat Katryne Chauvigné-Bourlaud Family site - Private 13.1.1 FR/EN/SP/IT/PT
Kleinmann Genealogy John Kleinmann 13.0.1 EN
Jan Suhr släktforskning Jan Suhr Public 13.0 SE/DK/EN
Généalogie des familles Meresse et Facon Philippe Meresse 13.0.1 EN/FR/NL
Hooley Family Links Rick Hooley Public/Private See Here See Here EN
Bumbery-Wangler Bob Bumbery Public/Private site 13.0.0 English
Bart Joggele aus Mauren, Liechtenstein Gerald Meier Private site 13.1.1 DE/EN/ES/IT/PT
The Duttons of New England Darrin Dutton Public / Private 13.1 English
Familenforschung Kattau Uwe Kattau Public / Private 13.0.2 DE
Genealogische Datenbank JPB Public site see here see here DE, EN, FR
The Cole / Tanner Family Tree David Cole Public/Private see here see here EN, DE, FR, ES, NL
YourTrees Berkshire FHS/Paul Barrett Private/Synology NAS 13.0.4 EN
Van den Heuvel genealogiepagina Jan van den Heuvel Public 12.02 NL,EN,DE
Johnson/Bryans Family Tree Charlie Ferrero Public (with customised version of this mod) (customised) 13.1 EN
Lathrope Family Genealogy S Sharpe Public 13.0.4 EN
Our Roy and Boucher Families Ken Roy Public 13.1.1 EN, FR
Journeys In Genealogy Pat Thrush Public 13.1.1 EN
Delvee Family Association Rob Roy Public 13.1.1 EN
Roy Family Genealogy Rob Roy Public 13.1.1 EN
Mueller Diefenbach Heritage Pages Bob Mueller Public 12.3 EN
La Saga BIGEY François B Public 13.1.1 FR
Jarocinski Family Database Michał Jarociński Non-public site

(account on request) 13.1.1 PL / EN
Sejarah Thümann Jeffrey Thümann Public 13.0.3 NL, EN
Os Belard Luís Belard da Fonseca Public/Private 13.1.2 PT
Geslagregisters Louis Scholtz Public-Private 13.1 AF,DE,EN,FR,NL
Familjen Johnson Leif Johnson Public 13.1 SE, EN
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN
Huygens - Van de Moortel Tom Huygens Public/Private on WordPress 13.1.2 NL Michał Kołek Private 13.1.1 PL
MOTYER Family Genealogy John Mark Motyer Public site See here See here EN
Our Immigrant Ancestors Jim Larson Private site 13.1.2 EN, NO
Van Peer Project Drew McClenaghan Private 12.3 EN