{% if b.has_build_cost and b.has_outputs and b.has_stored_wares %}
{{ b.help }}
{% for costs in b.get_build_cost %}
{% for w in costs %}
{% endfor %}
{%endfor%}
{% if b.produces and not b.trains %}
{% for w in b.get_ware_outputs %}
{%endfor%}
{% endif %}
{% if b.trains and not b.produces %}
{% for wor in b.get_worker_outputs %}
{%endfor%}
{% endif %}
{% for costs in b.get_stored_wares %}
{% for w in costs %}
{% endfor %}
{%endfor%}
{% endif %}
{% if b.has_build_cost and b.has_outputs and not b.has_stored_wares %}
{{ b.help }}
{% for costs in b.get_build_cost %}
{% for w in costs %}
{% endfor %}
{%endfor%}
{% if b.produces and not b.trains %}
{% for w in b.get_ware_outputs %}
{%endfor%}
{% endif %}
{% if b.trains and not b.produces %}
{% for wor in b.get_worker_outputs %}
{%endfor%}
{% endif %}
{% endif %}
{% if b.has_build_cost and not b.has_outputs and b.has_stored_wares%}
{{ b.help }}
{% for costs in b.get_build_cost %}
{% for w in costs %}
{% endfor %}
{%endfor%}
{% for costs in b.get_stored_wares %}
{% for w in costs %}
{% endfor %}
{%endfor%}
{% endif %}
{% if not b.has_build_cost and b.has_outputs and b.has_stored_wares %}
{{ b.help }}
{% if b.produces and not b.trains %}
{% for w in b.get_ware_outputs %}
{%endfor%}
{% endif %}
{% if b.trains and not b.produces %}
{% for wor in b.get_worker_outputs %}
{%endfor%}
{% endif %}
{% for costs in b.get_stored_wares %}
{% for w in costs %}
{% endfor %}
{%endfor%}
{% endif %}
{% if b.has_build_cost and not b.has_outputs and not b.has_stored_wares %}
{{ b.help }}
{% for costs in b.get_build_cost %}
{% for w in costs %}
{% endfor %}
{%endfor%}
{% endif %}
{% if not b.has_build_cost and b.has_outputs and not b.has_stored_wares %}
{{ b.help }}
{% if b.produces and not b.trains %}
{% for w in b.get_ware_outputs %}
{%endfor%}
{% endif %}
{% if b.trains and not b.produces %}
{% for wor in b.get_worker_outputs %}
{%endfor%}
{% endif %}
{% endif %}
{% if not b.has_build_cost and not b.has_outputs and b.has_stored_wares %}
{{ b.help }}
{% for costs in b.get_stored_wares %}
{% for w in costs %}
{% endfor %}
{%endfor%}
{% endif %}
{% if not b.has_build_cost and not b.has_outputs and not b.has_stored_wares %}