{% extends "base.html" %} {% block title %}{{ article.title }} - {{ wiki_name }}{% endblock %} {% block content %} {% macro render_value(value, depth=0) %} {% if value is mapping %}
{% for k, v in value.items() %}
{{ k }}: {{ render_value(v, depth + 1) }}
{% endfor %}
{% elif value is iterable and value is not string %} {% else %} {{ value }} {% endif %} {% endmacro %}

{{ article.title }}

{{ t('common.confidence') }}
{{ "%.0f"|format(article.confidence * 100) }}%
{% if quality %}
{{ t('common.quality') }}
{{ "%.0f"|format(quality.quality_score * 100) }}%
{% endif %}
{% for key, value in article.content.items() %} {% if not key.startswith('_') %} {% if key == 'disputes' and value is iterable and value is not string %}

{{ key }}

{% for dispute in value %} {% if dispute is mapping %}
{{ dispute.get('topic', '') }}
{% if dispute.get('status') %} {{ dispute.status }} {% endif %} {% if dispute.get('consensus_shift') %}

{{ dispute.consensus_shift }}

{% endif %} {% if dispute.get('positions') is iterable %}
{% for pos in dispute.positions %} {% if pos is mapping %}
{{ pos.get('claim', '') }}
{% if pos.get('supporters') %}
{{ pos.supporters }}
{% endif %} {% if pos.get('evidence_quality') %}{{ pos.evidence_quality }}{% endif %} {% if pos.get('note') %}

{{ pos.note }}

{% endif %}
{% endif %} {% endfor %}
{% endif %}
{% else %}
{{ render_value(dispute) }}
{% endif %} {% endfor %}
{% elif key == 'historiography' and value is iterable and value is not string %}

{{ key }}

{% for entry in value %} {% if entry is mapping %}
{{ entry.get('period', '') }}

{{ entry.get('interpretation', entry.get('consensus', '')) }}

{% if entry.get('context') %}

{{ entry.context }}

{% endif %} {% if entry.get('source_type') %}{{ entry.source_type }}{% endif %} {% if entry.get('note') %}

{{ entry.note }}

{% endif %}
{% endif %} {% endfor %}
{% else %}

{{ key }}

{{ render_value(value) }}
{% endif %} {% endif %} {% endfor %}
{% if article.content._meta is defined and article.content._meta %}
{{ t('article.document_meta') }}
{{ article.content._meta | yaml_dump }}
{% endif %} {% if article.content._changelog is defined and article.content._changelog %}
{{ t('article.changelog', count=article.content._changelog|length) }}
{% for entry in article.content._changelog|reverse %}
{{ entry.date }} {{ entry.action }} {% if entry.fields %}{{ entry.fields|join(', ') }}{% endif %} {% if entry.details %}

{{ entry.details }}

{% endif %}
{% endfor %}
{% endif %} {% if article.history %}
Normalized history ({{ article.history|length }})
{{ article.history | yaml_dump }}
{% endif %}
{{ t('article.raw_yaml') }}
{{ article.content | yaml_dump }}
{{ t('common.edit') }} {{ t('article.local_graph') }}
{% endblock %}