%define;init_nb_asc(tplnum)
%let;templ;%bvar.perso_module_tplnum;%in
%if;(templ = "famille" or templ = "arbre_3gen_v" or templ = "arbre_3gen_v_photo")
%if;(count < 3)
%reset_count;%incr_count;%incr_count;%incr_count;
%end;
%elseif;(templ = "arbre_4gen_v")
%if;(count < 4)
%reset_count;%incr_count;%incr_count;%incr_count;%incr_count;
%end;
%elseif;(templ = "arbre_5gen_h")
%if;(count < 5)
%reset_count;%incr_count;%incr_count;%incr_count;%incr_count;%incr_count;
%end;
%else;
%if;(count < 1)
%reset_count;%incr_count;
%end;
%end;
%end
%define;init_nb_desc(tplnum)
%let;templ;%bvar.perso_module_tplnum;%in
%if;(templ = "unions")
%if;(count < 3)
%reset_count;%incr_count;%incr_count;%incr_count;
%end;
%else;
%if;(count < 1)
%reset_count;%incr_count;
%end;
%end;
%end
%define;init_from_gen_desc(tplnum)
%let;templ;%bvar.perso_module_tplnum;%in
%if;(templ = "family")
%if;(count < 3)
%reset_count;%incr_count;%incr_count;%incr_count;
%end;
%else;
%if;(count < 1)
%reset_count;%incr_count;
%end;
%end;
%end
%define;init_cache(nb_asc, from_gen_desc, nb_desc)
%init_cache.nb_asc.from_gen_desc.nb_desc;
%end;
%(note that p_mod= (b)%bvar.p_mod; or (e)%evar.p_mod;%)
%if;(evar.p_mod="zz" or (bvar.p_mod="zz" and evar.p_mod="") or
(bvar.p_mod="" and evar.p_mod=""))
%(Statique%)
%apply;init_cache(3, 2, 2)
%if;(has_parents and (father.has_parents or mother.has_parents))
%let;op_m;1%in;%include;modules/gr_parents
%end;
%(be carefull h1 is col-12 for full width then an opening
is inside personnal_data %)
%let;op_m;3%in;%include;modules/individu
%let;op_m;2%in;%include;modules/unions
%let;op_m;1%in;%include;modules/chronologie
%let;op_m;1%in;%include;modules/notes
%let;op_m;2%in;%include;modules/sources
%if;(p_mod="" or p_mod="zz")
%end; %( end of
from personnal_data %)
%if;has_parents;
%let;op_m;2%in;%include;modules/arbre_3gen_photo
%end;
%let;op_m;1%in;%include;modules/fratrie
%let;op_m;1%in;%include;modules/relations
%else;
%(Dynamic %)
%apply;init_cache(3, 2, 2)
%for;i;0;p_mod_nbr;
%let;mmi;%apply;mm(i)%in;
%let;ooi;%apply;oo(i)%in;
%if;(mmi!="" and ooi!=0)
%apply;get_mod(mmi, ooi)
%end
%end;
%end;
%if;(evar.opt = "misc")
%misc_names;
%end;
%if;(not cancel_links)
%include;trl
%include;copyr
%end;