<!-- notes -->

<div id ="link_pages">
  %if;(not cancel_links and has_linked_pages)
    (<a href="%prefix;m=LINKED;%access;">[linked pages]</a>)
  %end;
</div>

%if;((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))
  <h3 class="highlight">[*note/notes]1</h3>
  <h5 class="highlight">[*individual notes]</h5>
  <dl><dd>
    %if;(has_linked_page.BNOTE)
      <p>%apply;capitalize(linked_page.BNOTE).</p>
    %end;
    %notes;
    %if;(has_linked_page.NOTE)
      <p>%apply;capitalize(linked_page.NOTE).</p>
    %end;
  </dd></dl>
%end;

<p style="clear:both"></p>

%if;has_families;
  %( On remet les compteurs à zéro et on commence à compter à 1 %)
  %reset_count; %incr_count;
  %foreach;family;
    %if;((wizard or friend or bvar.no_note_for_visitor="" or bvar.no_note_for_visitor="no") and has_comment) 
      %if;((count=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))) 
        <h5 class="highlight">[*marriage notes]0</h5>
      %elseif;(count=1)
          <h3 class="highlight">[*marriage notes]0</h3>
      %end;
      <dl> 
        <dt>
          [*marriage with] %spouse.first_name; %spouse.surname;
          <a href="#wed-note-%count;" name="note-wed-%count;" id="note-wed-%count;" style="text-decoration:none"><sup><font size="3" title="[see] [marriage/marriages]0"> ↑ </font></sup></a>: 
        </dt>
        <dd>%comment;</dd>
      </dl>
      %incr_count;
    %end;
  %end;
%end;

