%( op_m=1 Notes and marriage comments %) %( op_m=2 Notes and event notes (+comments for marriages) %) %let;op_m;%if;(op_m!="")%op_m;%else;%if;(has_families or bvar.display_timeline="yes")1%end;%else;2%end;%in; %reset_count; %if;has_linked_page.BNOTE;%incr_count;%end; %if;has_notes;%incr_count;%end; %if;has_birth_note;%incr_count;%end; %if;has_baptism_note;%incr_count;%end; %if;has_death_note;%incr_count;%end; %if;has_burial_note;%incr_count;%end; %if;has_linked_page.NOTE;%incr_count;%end; %foreach;event; %if;event.has_note;%incr_count;%end; %end; %reset_count2; %foreach;family; %if;has_comment;%incr_count2;%end; %if;has_marriage_note;%incr_count2;%end; %end; %define;link_pages() %if;(not cancel_links and has_linked_pages) %end; %end; %if;(op_m=1 and (wizard or friend or bvar.no_note_for_visitor = "" or bvar.no_note_for_visitor = "no") and (has_notes or has_linked_page.BNOTE or has_linked_page.NOTE or count2>0)) %if;(count>0 or has_linked_page.BNOTE and linked_page.BNOTE!="")

[*individual notes]

%apply;link_pages()
%if;(has_linked_page.BNOTE and linked_page.BNOTE!="")

%apply;capitalize(linked_page.BNOTE).

%end;
%notes;
%end; %if;(count2>0 and has_families) %( On remet les compteurs à zéro, on démarre à 1 - synchro avec unions.txt %) %reset_count; %foreach;family; %incr_count; %if;((wizard or friend or bvar.no_note_for_visitor="" or bvar.no_note_for_visitor="no") and has_comment) %if;(count=1 or count2=1 and (has_notes or has_linked_page.BNOTE or has_linked_page.NOTE))

%if;(nb_families>1)[*marriage notes/marriages notes]1%else;[*marriage notes/marriages notes]0%end;

%end;
%if;(not cancel_links) ^ %else;^ %end; %if;(nb_families>1)%apply;nth([nth (generation)], count) [marriage with]%else;[*marriage with]%end; %spouse.first_name; %spouse.surname; [:]
%comment;
%end; %end; %end; %if;(has_linked_page.NOTE and linked_page.NOTE!="")

%apply;capitalize(linked_page.NOTE).

%end; %elseif;((count>0 or count2>0) and op_m=2)

[*note/notes]1

%if;(has_linked_page.BNOTE and linked_page.BNOTE!="")
%apply;capitalize(linked_page.BNOTE).
%end; %if;has_notes;

[*individual notes]

%notes;
%end; %if;has_birth_note;

[*birth]

%birth_note;
%end; %if;has_baptism_note;

[*baptism]

%baptism_note;
%end; %foreach;family; %if;(has_comment or has_marriage_note)

[*marriage notes/marriages notes]0%sp; [with] %spouse.first_name; %spouse.surname;

%end;
%nn; %if;has_comment;%comment;%end; %if;(has_comment and has_marriage_note)%nl;%end; %if;has_marriage_note;%marriage_note;%end;
%end; %if;has_death_note;

[*death]

%death_note;
%end; %if;(has_burial_note and is_buried)

[*burial]

%burial_note;
%elseif;(has_burial_note and is_cremated)

[*cremation]

%burial_note;
%end; %foreach;event; %if;event.has_note; %if;(event.name!=[birth] and event.name!=[baptism] and event.name!=[marriage event] and event.name!=[death] and event.name!=[burial] and event.name!=[cremation])

%apply;capitalize(event.name)

%event.note;
%end; %end; %end; %if;(has_linked_page.NOTE and linked_page.NOTE!="")
%apply;capitalize(linked_page.NOTE).
%end; %nl; %end; %reset_count;