{% extends "base.html" %} {% block title %}Library S5{% endblock %} {% block content %} 六經
Library 條文搜尋 · 4 版本切換 · v0.2.3 全文搜尋

Library

{% if q %} 搜尋 "{{ q }}":命中 {{ stats.matched }} / {{ stats.total }} 條 {% if version != 'all' %} · 限定 {{ version_legend.get(version, version) }} 版{% endif %} {% else %} 共 {{ stats.total }} 條條文(4 版本) {% endif %}
{% if corpus_hits %}
七典跨典檢索 (金匱要略/溫病條辨/備急千金要方/景岳全書/萬病回春/醫宗金鑑/醫林改錯)
{% for h in corpus_hits %}
{{ h.book }}·{{ h.chapter }} 相關度 {{ "%.0f"|format(h.score * 100) }}%
{{ h.text[:400] }}{% if h.text|length > 400 %}…{% endif %}
{% endfor %}
{% endif %} {% if not passages %}
{% if q %} 沒有條文匹配「{{ q }}」。
試試:桂枝湯、少陽、發熱、弦脈、小便不利、腹瀉、厥冷 {% else %} 沒有條文 {% endif %}
{% else %} {% for p in passages %}
#{{ p.id }} · {{ p.formula }}
{{ p.category }} · {% if p.alias %}{{ p.alias|join(' · ') }}{% endif %}
{% if p.keywords %}
{% for kw in p.keywords %} {{ kw }} {% endfor %}
{% endif %}
{{ p.versions.song | highlight_q(q) | safe }}
找同方證
{% endfor %} {% endif %} {% endblock %}