inflection_tables.html
2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{% load dictionary_extras i18n %}
<div class="entry-article scheme{{ lexeme.part_of_speech.color_scheme }}">
<div class="article-header">
<h1>
{{ lexeme.entry }}
{{ lexeme|attribute:"zwrotność" }}
{% if lexeme.pronunciation %}
<span class="pronunciation">[{{ lexeme.pronunciation|safe }}]</span>
{% endif %}
{% if lexeme.gloss and lexeme.part_of_speech.symbol != 'skrs' %}
<span class="gloss">{{ lexeme.gloss|safe }}</span>
{% endif %}
</h1>
<p>
{{ part_of_speech }}
{% if lexeme.part_of_speech.symbol == 'v' %}
{{ lexeme|attribute:"właściwy" }}
{{ lexeme|attribute:"przechodniość" }}
{% endif %}
{% if lexeme.part_of_speech.symbol == 'skrs' %}
{{ lexeme.gloss|safe }}
{% endif %}
<span class="qualifiers">
{{ info.qualifiers|join:" " }}
{% if info.commonness %}
{% trans 'n. wł.' %} {{ info.commonness|join:", " }}
{% endif %}
</span>
{% if lexeme.note %}
◊ {{ lexeme.note|sgjp_markup }}
{% endif %}
<em>{{ lexeme.valence|sgjp_markup }}</em>
<span class="sjpdor">
{{ info.SJPDor|yesno:"[SJPDor.]," }}
</span>
</p>
<p>
{% if lexeme.part_of_speech.lexical_class_id == 'subst' %}
{{ lexeme.lip_data.genders }}
{% endif %}
{{ lexeme|attribute:"aspekt" }}
{% if tables|length == 1 %}
{% include "pattern_list.html" with patterns=pattern_list %}
{% endif %}
</p>
</div>
<div class="inflection-tables">
{% for gender, patterns, pronunciations, gender_qualifiers, table in tables %}
<div class="inflection-table-container">
{% if lexeme|attribute:"rozwinięcie" %}
{% include "abbreviation_table.html" %}
{% else %}
{% include "inflection_table.html" %}
{% endif %}
</div>
{% endfor %}
</div>
{% if cross_references %}
<table class="cross-references">
<tr>
<th class="head" colspan="2"><span class="label">{% trans 'Odsyłacze' %}</span></th>
</tr>
{% for cr in cross_references %}
<tr>
<th class="cr-type">{{ cr.type.desc }}</th>
<td>
<span class="cr-link" id="cr{{ cr.to_lexeme.id }}">
{{ cr.to_lexeme.entry }}
</span>
</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if lexeme.extended_note %}
<p class="extended-note">
{{ lexeme.extended_note|sgjp_markup }}
</p>
{% endif %}
</div>