%( timeline contains: self events + birth of children + marriage of parents, children + death of parents, spouses, children Known bug: unable to have a %foreach; inside a sorted_list. So, unable to get the witnesses of an event. %) %let;l_mi;%if;(has_parents)%mother.index;%end;%in; %define;add(z1,z2,z3) %foreach;z1.event; %if;("z1" = "self" or event.name = [death] or (event.name = [birth] and "z1" = "child" ) or (event.name = [marriage event] and ("z1" = "child" or ("z1" = "father" and event.spouse.index = l_mi)))) %apply;add_in_sorted_list%with; %if;(event.has_date)%event.date.year;%else;9999%end; %and;
%foreach;event_witness;
%apply;capitalize(event_witness_kind) :
%apply;short_display_person("event_witness")
%end;