gedcomToHTML.pl 1.2 templates

A template file will be used if it exists in the directory from which the program was run and it has the correct name. If the template file cannot be found internal defaults are used.

Templates for downloading

To download these, choose "save link..." from the menu in your browser (right mouse button menu in Netscape or Microsoft internet explorer). Make sure that you rename the files to the correct name (i.e. without _def or _dans).

Give same output as the default: tpl_ind_top.html, tpl_ind_bot.html, tpl_people.html, tpl_surnames.html

The ones I used to make my files: tpl_ind_top.html, tpl_ind_bot.html, tpl_people.html, tpl_surnames.html

Templates that give similar people and surnames lists to Gedpage: tpl_ind_top.html, tpl_ind_bot.html, tpl_people.html, tpl_surnames.html

Individual's files

Two files are used - one is inserted at the top and one at the bottom. The files are tpl_ind_top.html and tpl_ind_bot.html respectively.

tpl_ind_top.html should include a <body> statement. #ind_name in the template file is replaced by the individuals full name in the HTML output. A template file which works in the same way as the defaults can be downloaded by clicking save link here. It looks like:

<body>
<h1>#ind_name</h1>
The contents of the tpl_ind_bot.html file qill be inserted after all the information but before the Created by ... line. It should not contain </body> or </html>html tags. A template file which works in the same way as the defaults can be downloaded by clicking save link here. It looks like:
<hr width=50%>
<br><a href="people.html">List of people</a>
| <a href="surnames.html">List of surnames</a><p>

List of people file

The format of this is a little more complicated than the individual's template file. It must be a valid complete html file, with head and body sections. The part of the file where the people are printed is between #main and #end statements. Lines between these statements that do not begin with #ns are inserted for each individual in the GEDCOM file. Lines starting with #ns are only inserted when the surname of the individual is different to that of the previous individual. Substitution is performed on the following strings.

String Data inserted
#ind_id Individual's ID number
#ind_surname Individual's surname
#ind_forname Individual's forname
#ind_birt_date Individual's birth date
#ind_deat_date Individual's death date

The #footer command can be used to add the version information outside the #main section.

A template file which works in the same way as the defaults can be downloaded by clicking save link here. It looks like:

<html><head><title>People</title></head>

<body>
<h1>List of people</h1>
#main
#ns <a name="#ind_surname">
<a href="##ind_id.html">#ind_surname, #ind_forname </a>(#ind_birt_date - #ind_deat_date)<br>
#end

<p><hr width=50%>
<br><a href="surnames.html">List of surnames</a><p>
#footer
</body></html>

Note the extra # before #ind_id as that is part of the anchor.

List of surnames file

The list of surnames template is similar to the list of people template. It does not have the #ns command and only has substitution for #ind_surname. A template file which works in the same way as the defaults can be downloaded by clicking save link here. It looks like:
<html><head><title>Surnames</title></head>

<body>
<h1>List of surnames</h1>
#main
<a href="people.html##ind_surname">#ind_surname</a><br>
#end

<p><hr width=50%>
<br><a href="people.html">List of people</a><p>
Created by <a href="http://www.bath.ac.uk/~enpdp">Dan Pidcock</a>'s <a href="http://www.bath.ac.uk/~enpdp/Gedcom/gedcomToHTML.html">Gedcom to HTML converter</a> v1.2.<p>
</body></html>

gedcomToHTML.pl
MeDan Pidcock (contact me)