{% include "core/base_data_types/structure.html" %}

{{ table_entry.formula_reduced|chemical_formula|default:"--" }}

{% if table_entry.spacegroup %} {{ table_entry.spacegroup.crystal_system|title }} {% endif %} {% if table_entry.is_theoretical == False %} Experimental {% elif table_entry.is_theoretical %} Theoretical {% endif %} {% if table_entry.energy_above_hull == 0 %} On hull {% endif %}
{% button_link label="View on Materials Project" link=table_entry.external_link theme="outline-primary" small=True open_in_new=True %}
Stability
Energy above hull
{% if table_entry.energy_above_hull is not None %} {{ table_entry.energy_above_hull|floatformat:3 }} eV/atom
Calculated by Simmate from Materials Project energies. Their website may differ.
{% else %} -- {% endif %}
Electronic
Band gap
{% if table_entry.band_gap is None %} -- {% elif table_entry.band_gap == 0 %} 0 eV (metallic) {% else %} {{ table_entry.band_gap|floatformat:3 }} eV ({{ table_entry.is_gap_direct|yesno:"direct,indirect,--" }}) {% endif %}
Magnetic
{% if table_entry.is_magnetic %} Yes ({{ table_entry.total_magnetization|floatformat:2 }} μB) {% else %} {{ table_entry.is_magnetic|yesno:"Yes,No,--" }} {% endif %}
{% include "core/base_data_types/structure_summary.html" %}