{% assign matching_spells = other_spells | where: 'identifier',page.identifier %}
{% for matching_spell in matching_spells %}
{% capture matching_spell_link %}{{ matching_spell.name }}{% endcapture %}
{% assign name = page.name | downcase %}
{% assign matching_spell_name = matching_spell.name | downcase %}
{% if name == matching_spell_name %}
For the {{ other_platform_label }} version of the spell, see {{ matching_spell_link }}.
{% elsif layout.platform == 'modded' %}
This spell replaces {{ matching_spell_link }}.
{% else %}
This spell is replaced by {{ matching_spell_link }} in SR.
{% endif %}
{% else %}
This spell does not have a direct equivalent in {{ other_platform_label }}.
{% endfor %}
{{ content }}
{% if layout.platform == 'modded' %}
{% assign other_spells = site.vanilla-spells %}
{% assign other_platform_label = 'vanilla' %}
{% assign message_color = 'info' %}
{% else %}
{% assign other_spells = site.spells %}
{% assign other_platform_label = 'SR' %}
{% assign message_color = 'warning' %}
{% endif %}