{% if s['label'] and s['label'] != "0" %} {{s['label']}} {% endif %} {% if s["grammartext"] %} {{s['grammartext']}} {% endif %} {% if s["grammartext_ijk"] %} ијек. {{s['grammartext_ijk']}} {% endif %} {% if False %} {% for g in s["grammar"] %} {% if g['tag'] %} {{g['tag']}} {% else %} {% endif %} {% if g['text'] %} {{g['text']}} {% endif %} {% endfor %} {% endif %} {% if pos %} {{pos}} {% endif %} {% if s["qualifiers"] %} {{', '.join(s['qualifiers'])}} {% endif %} {% if s["domains"] %} {{', '.join(s['domains'])}} {% endif %} {%- if s["definitions"] -%} {%- for d in s["definitions"] -%} {%- if d['text'] -%} {{d['text']}}{%- if not loop.last -%}, {%- endif -%} {%- endif -%} {%- endfor -%} {%- endif -%} {%- if s["sinonimi"] -%} {%- if s["definitions"] -%} ; {%- endif -%} син. {%- endif -%} {%- if s["sinonimi"] -%} {%- for d in s["sinonimi"] -%} {%- if loop.last and s["sinonimi"]|length > 1 -%} и {%- endif -%} {{d['head']}} {%- if not loop.last and d['head'][-1] not in specpunkt -%}, {%- endif -%} {%- endfor -%} {%- endif -%} {%- if s["antonimi"] -%} {%- if s["definitions"] or s["sinonimi"] -%};{%- endif -%} супр. {%- endif -%} {%- if s["antonimi"] -%} {%- for d in s["antonimi"] -%} {%- if loop.last and s["antonimi"]|length>2 -%} и {%- endif -%} {{d['head']}} {%- if not loop.last -%}, {%- endif -%} {%- endfor -%} {%- endif -%} {%- if s["collocations"] and s["definitions"] -%}: {%- endif -%} {%- if s["collocations"] -%} {%- for x in s["collocations"] -%} {%- if x['text'] -%} {%- if x['locus'] -%} {{ x['text']|replace(x['locus'], "" + x['locus'] + "")|safe }} {%- else -%} {{ x['text'] }} {%- endif -%} {%- endif -%} {%- endfor -%} {%- endif -%} {%- if s["collocations"] -%} {%- if s["collocations"][-1]["text"][-1] not in specpunkt -%} . {%- endif -%} {%- elif s["antonimi"] -%} {%- if s["antonimi"][-1]["head"][-1] not in specpunkt -%} . {%- endif -%} {%- elif s["sinonimi"] -%} {%- if s["sinonimi"][-1]["head"][-1] not in specpunkt -%} . {%- endif -%} {%- elif s["definitions"] -%} {%- if s["definitions"][-1]["text"][-1] not in specpunkt -%} . {%- endif -%} {%- endif -%} {%- if s["examples"] -%} {%- if not s["collocations"] -%} {%- endif -%} {%- endif -%} {% if s["examples"] %} {% for x in s["examples"] %} {% if x['text'] %} {% if x['locus'] %} {{ x['text']|replace(x['locus'], "" + x['locus'] + "")|safe }} {% else %} {{ x['text'] }} {% endif %} {% if not loop.last %} {% else %} {% if x['text'][-1] not in specpunkt %} . {% endif %} {% endif %} {% endif %} {% endfor %} {% endif %} {% if s["connected"] %}
{%- for i in range(s["connected"]|length)-%} {%- if loop.first -%} {{s["connected"][i]['role']}} {%-elif s["connected"][i]['role'] != s["connected"][i-1]['role']-%} ; {{s["connected"][i]['role']}} {%-else-%} , {%- endif-%} {{s['connected'][i]['head']}} {%- endfor -%} {% endif %}