%nn; %if;(evar_m = "MRG_IND_OK" or evar_m = "MRG_MOD_IND_OK"); [*merge::person/persons]1 # %index; %elseif;(evar_m = "MOD_IND" or evar_m = "MOD_IND_OK"); [*modify::person/persons]0 # %index; %else;[*add::person/persons]0%end;

%base_header; %message_to_wizard; %define;date(xlab,xvar,xdate)

xlab | %if;([ !dates order]0 = "ddmmyy"); [year/month/day]2 [year/month/day]1 [year/month/day]0 %else; [year/month/day]0 [year/month/day]1 [year/month/day]2 %end; | ...[or]0 [text]0

[*calendar/calendars]0 | [*precision]0

%end; %define;source(xx)

[*source/sources]0 |

%end;

# %nn; %if;(evar_m = "MRG_IND_OK" or evar_m = "MRG_MOD_IND_OK"); [*merge::person/persons]1 # %index; %elseif;(evar_m = "MOD_IND" or evar_m = "MOD_IND_OK"); [*modify::person/persons]0 # %index; %else; [*add::person/persons]0%end;

%hidden; %if;(evar_m = "MRG_IND_OK" or evar_m = "MRG_MOD_IND_OK"); %if;evar_i2;%end;%nl; %if;(evar_ini1 and evar_ini2); %end; %elseif;(evar_m = "MOD_IND" or evar_m = "MOD_IND_OK"); %else; %end;

[*first name/first names]0 |  | [*number]0 |
[*surname/surnames]0 |  | [*sex] | [M/F]0 [M/F]1 ?
[*public name] |
[*image/images]0 |

%if;has_qualifiers; %foreach;qualifier;
[*qualifier]0 |  | [*insert::qualifier]0 |
%end; %elseif;(cvar_propose_qualifier != "no");
[*qualifier]0 |  | [*insert::qualifier]0 |
%end; %if;has_aliases; %foreach;alias;
[*alias]0 |  | [*insert::alias]0 |
%end; %elseif;(cvar_propose_alias != "no");
[*alias]0 |  | [*insert::alias]0 |
%end; %if;has_first_names_aliases; %foreach;first_name_alias;
[*first name alias]0 |  | [*insert::first name alias]0 |
%end; %else;
[*first name alias]0 |  | [*insert::first name alias]0 |
%end; %if;has_surnames_aliases; %foreach;surname_alias;
[*surname alias]0 |  | [*insert::surname alias]0 |
%end; %else;
[*surname alias]0 |  | [*insert::surname alias]0 |
%end;

#### [*birth]

[*born]2... | [*place] |

%apply;date([*date]0, "birth", "birth") %apply;source("birth")

[*baptized]2... | [*place] |

%apply;date([*date]0, "bapt", "bapt") %apply;source("bapt")

#### [*death]

| [*place]0

%apply;date([*date]0, "death", "death")

[*killed (in action)]2 [*murdered]2 [*executed (legally killed)]2 [*disappeared]2 [*unspecified]2

%apply;source("death")

#### [*burial]

| [*place]0

%apply;date([*date]0, "burial", "burial") %apply;source("burial")

#### [*occupation]

#### [*relation/relations]1

%define;insert_relation(xx)

[*insert::relation/relations]0

%end; %define;relation_type(xx)

%end; %define;one_relation(xcnt,xvar,xrel,xsex)

[*first name/first names]0 |  | [*number] |  |
[*surname/surnames]0 | ([sex]0 = xsex)

%end; %apply;insert_relation("0")

%if;has_relations; %foreach;relation; %apply;relation_type(cnt)

%apply;one_relation(cnt,"fath","r_father",[M/F]0) %apply;one_relation(cnt,"moth","r_mother",[M/F]1)

%apply;insert_relation(cnt)

%end; %else; %apply;relation_type("1")

%apply;one_relation("1","fath","r_father",[M/F]0) %apply;one_relation("1","moth","r_mother",[M/F]1)

%apply;insert_relation("1")

%end;

#### [*title/titles]1

%define;insert_title(xx)

[*insert]0 [title/titles]0

%end; %define;one_title(xcnt)

[*title/titles]0 |  | [*estate]0 |
[*name]0 |  | [*nth]0 |  | [*main title]0

%apply;date([*begin]0, "t_date_startxcnt", "title_date_start") %apply;date([*end]0, "t_date_endxcnt", "title_date_end") %end %apply;insert_title("0")

%if;has_titles; %foreach;title; %apply;one_title(cnt)

%apply;insert_title(cnt)

%end; %else; %apply;one_title("1")

%apply;insert_title("1")

%end;

[*access]0 | [*if titles]0 [*public]0 [*private]0

#### [*note/notes]1

%notes;

#### [*source/sources]0

%copyright; %base_trailer;