%( 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!="")%apply;capitalize(linked_page.BNOTE).
%end;%apply;capitalize(linked_page.NOTE).
%end; %elseif;((count>0 or count2>0) and op_m=2)%apply;capitalize(linked_page.BNOTE).%end; %if;has_notes;
%notes;%end; %if;has_birth_note;
%birth_note;%end; %if;has_baptism_note;
%baptism_note;%end; %foreach;family; %if;(has_comment or has_marriage_note)
%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_note;%end; %if;(has_burial_note and is_buried)
%burial_note;%elseif;(has_burial_note and is_cremated)
%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])
%event.note;%end; %end; %end; %if;(has_linked_page.NOTE and linked_page.NOTE!="")
%apply;capitalize(linked_page.NOTE).%end; %nl; %end; %reset_count;