inflection_tables.html 1.75 KB
{% load dictionary_extras %}
<div class="entry-article scheme{{ lexeme.part_of_speech.color_scheme }}">
  <h1>
    {{ lexeme.entry }}
    {{ lexeme|attribute:"zwrotność" }}
    {% if lexeme.pronunciation %}
      <span class="pronunciation">[{{ lexeme.pronunciation|safe }}]</span>
    {% endif %}
    {% if lexeme.gloss %}
      <span class="gloss">{{ lexeme.gloss|safe }}</span>
    {% endif %}
  </h1>
  <p>
    {{ lexeme.part_of_speech.full_name }}
    {% if lexeme.part_of_speech.symbol == 'v' %}
      {{ lexeme|attribute:"właściwy" }}
      {{ lexeme|attribute:"przechodniość" }}
    {% endif %}
    <span class="qualifiers">
      {{ info.qualifiers|join:" " }}
      {% if info.commonness %}
        n. wł. {{ info.commonness|join:", " }}
      {% endif %}
    </span>
    {% if lexeme.note %}
      ◊ {{ lexeme.note|safe }}
    {% endif %}
    <span class="sjpdor">
      {{ info.SJPDor|yesno:"[SJPDor.]," }}
    </span>
  </p>
  <p>
    {% if lexeme.part_of_speech.lexical_class.symbol == 'subst' %}
      {{ lexeme.lip_data.inflection_characteristics }}
    {% endif %}
    {{ lexeme|attribute:"aspekt" }}
    {% if tables|length == 1 %}
      {{ lexeme.lip_data.patterns }}
    {% endif %}
  </p>
  <p class="separator"></p>
  <div class="inflection-tables">
    {% for inflection_characteristic, table in tables %}
      <div class="inflection-table-container">
        {% include "inflection_table.html" %}
      </div>
    {% endfor %}
  </div>
  {% if cross_references %}
    <table class="cross-references">
      <tr><th class="head" colspan="2">Odsyłacze</th></tr>
      {% for cr in cross_references %}
        <tr>
          <th>{{ cr.type.desc }}</th>
          <td>{{ cr.to_lexeme.entry }}</td>
        </tr>
      {% endfor %}
    </table>
  {% endif %}
</div>