%if;has_public_name; %if;has_qualifiers;%public_name; %qualifier; %else;%public_name; %surname;%end; %else; %if;has_qualifiers;%first_name; %qualifier; %else;%first_name; %surname;%end; %end;

%base_header; %message_to_wizard; %if;is_male; %elseif;is_female; %end;

# %if;has_public_name; %if;has_qualifiers;%public_name; %qualifier; %else;%public_name; %surname;%end; %else; %if;has_qualifiers;%first_name; %qualifier; %else; %if;cancel_links;%first_name; %surname; %else; %first_name; %surname; %end; %end; %end;

%if;(has_sosa or has_qualifiers or has_aliases or has_nobility_titles or has_public_name or has_surnames_aliases or has_first_names_aliases)

%if;has_sosa; [*Sosa]: %if;cancel_links;%sosa; %else;%sosa;%end; %end; %foreach;qualifier; %if;not is_first; %if;has_public_name;%public_name; %qualifier; %else;%first_name; %qualifier;%end; %end; %end; %foreach;alias; %alias; %end; %if;has_nobility_titles; %foreach;nobility_title; %if;not is_first;, %end; %nobility_title; %end; %end; %if;(has_public_name or has_qualifiers) (%if;cancel_links;%first_name; %surname; %else; %first_name; %surname;%nn; %end;) %end; %foreach;surname_alias; (%first_name; %surname_alias;) %end; %foreach;first_name_alias; (%first_name_alias; %surname;) %end;

%end; %if;not cancel_links;

%if;has_referer; %end;

%end; %if;has_image;

%end; %if;(has_occupation or has_birth_date or has_birth_place or has_baptism_date or has_baptism_place or is_dead or is_buried or is_cremated or has_consanguinity) %if;has_image; | %end; %if;has_occupation; %occupation;%nl;%end; %if;has_birth_date; [*born]s %on_birth_date; %if;birthday; ([happy birthday to you!])%end; %if;has_birth_place; - %birth_place;%end;%nl; %else; %if;has_birth_place; [*born]s - %birth_place;%nl;%end; %end; %if;has_baptism_date; [*baptized]s %on_baptism_date; %if;has_baptism_place; - %baptism_place;%end;%nl; %else; %if;has_baptism_place; [*baptized]s - %baptism_place;%nl;%end; %end; %if;is_dead; %died; %if;has_death_date; %on_death_date;%end; %if;has_death_place; - %death_place;%end;%nl; %end; %if;computable_age; [*age]: %age;%nl; %end; %if;is_buried; [*buried]s %if;has_burial_date; %on_burial_date;%end; %if;has_burial_place; - %burial_place;%end;%nl; %end; %if;is_cremated; [*cremated]s %if;has_cremation_date; %on_cremation_date;%end; %if;has_cremation_place; - %cremation_place;%end;%nl; %end; %if;computable_death_age; [*age at death:] %death_age;%nl; %end; %if;(has_consanguinity and cvar_show_consang != "no"); [*consanguinity]: %consanguinity;%nl; %end; %end; %if;has_image;

%end; %if;has_parents;

### [*parents]

%foreach;parent;
- %if;(cancel_links or parent.is_restricted);%parent; %else;%parent;%end; %parent.title;%parent.dates;%nl; %end;

%end; %define;married_to(date_place) %if;is_male; %if;are_married;[*married%t to:::date_place]0 %elseif;are_not_married;[*relationship%t to:::date_place]0 %elseif;are_engaged;[*engaged%t to:::date_place]0 %elseif;is_no_sexes_check;[*relationship%t to:::date_place]0 %elseif;is_no_mention;date_place [with] %end; %else; %if;are_married;[*married%t to:::date_place]1 %elseif;are_not_married;[*relationship%t to:::date_place]1 %elseif;are_engaged;[*engaged%t to:::date_place]1 %elseif;is_no_sexes_check;[*relationship%t to:::date_place]1 %elseif;is_no_mention;date_place [with] %end; %end; %end; %define;married_to_with_place(place) %apply;married_to(", place, ") %end; %define;married_to_with_date(ondate) %apply;married_to(" ondate") %end; %define;married_to_with_date_and_place(ondate,place) %apply;married_to(" ondate, place, ") %end; %if;has_families;

### [*marriage/marriages]1 [and::child/children]1

%foreach;family;
- %if;(marriage_place = "") %if;(on_marriage_date = "")%apply;married_to("") %else;%apply;married_to_with_date(on_marriage_date) %end; %else; %if;(on_marriage_date = "")%apply;married_to_with_place(marriage_place) %else; %apply;married_to_with_date_and_place(on_marriage_date,marriage_place) %end; %end; %if;(cancel_links or spouse.is_restricted);%spouse; %else;%spouse;%end; %spouse.title;%spouse.dates; %if;has_witnesses; %sp;([witness/witnesses]w: %foreach;witness; %if;not is_first;, %end; %if;(cancel_links or witness.is_restricted);%witness; %else;%witness;%end; %witness.title;%witness.dates; %end; )%end; %if;has_comment; (%comment;)%end; %if;are_divorced;, [divorced]0%divorce_date;%end; %if;are_separated;, [separated]0%end; %if;has_children; , [having as children]0
  %foreach;child;
  - %if;(cancel_links or child.is_restricted);%child.child_name; %else; %child.child_name; %end; %child.dates;%nl; %end;
  %end; %if;(evar_opt = "from" and wizard);(%origin_file;)
  %nl;%end; %end;

%end; %if;has_relations;

### [*relation/relations]1

%foreach;relation;
- %relation_type; %if;(has_relation_him and has_relation_her) %nl;
  - %if;(cancel_links or relation_him.is_restricted);%relation_him; %else;%relation_him;%end; %relation_him.title;%relation_him.dates;%nl;
  - %if;(cancel_links or relation_her.is_restricted);%relation_her; %else;%relation_her;%end; %relation_her.title;%relation_her.dates;%nl;
  %elseif;has_relation_him;: %if;(cancel_links or relation_him.is_restricted);%relation_him; %else;%relation_him;%end; %relation_him.title;%relation_him.dates;%nl; %elseif;has_relation_her;: %if;(cancel_links or relation_her.is_restricted);%relation_her; %else;%relation_her;%end; %relation_her.title;%relation_her.dates;%nl; %end; %end; %foreach;related;
- %related_type;: %if;cancel_links;%related; %else;%related;%end; %related.title;%related.dates;%nl; %end; %foreach;witness_relation;
- %witness_relation;%nl; %end;

%end; %if;has_notes;

### [*note/notes]1

- %notes;

%end; %if;has_sources;

[*source/sources]1: %foreach;source;
- %source_type;: %source; %end; %end; %if;not cancel_links;

[*relationship computing] | %if;has_parents; [*ancestors] %end; %if;has_children; [*descendants] %end; %if;(father.has_parents or mother.has_parents) [*cousins (general term)] %else; %if;has_nephews_or_nieces; [*nephews and nieces] %end; %end; %foreach;father.child; %if;is_sibling_before; [*previous sibling]s %end; %if;is_sibling_after; [*next sibling]s %end; %end; %if;wizard; | [*update] %end;

%end; %if;(evar_opt = "misc")%misc_names;

%end;
%copyright; %base_trailer;