{{ number_to_text_with_suffix(len_cogs) }} {% if len_cogs != 1 %}{{ _("Cogs") }}{% else %}{{ _("Cog") }}{% endif %} {{ _("with") }} {{ number_to_text_with_suffix(len_commands) }} {% if len_commands != 1 %}{{ _("Commands") }}{% else %}{{ _("Command") }}{% endif %}



{% if cogs %} {% if not query %}
{% for cog in cogs %}

{{ cog }}

{{ cogs[cog]["description"]|markdown }}

{{ (_("Author(s): {author}")).format(author=cogs[cog]["author"])}}

{{ _("Repo:") }} {{ cogs[cog]["repo"] }}

{% for command in cogs[cog]["commands"] recursive %} {% if command.signature or command.aliases %} {% endif %} {% if command.subs %} {{ loop(command.subs) }} {% endif %} {% endfor %}
{{ _("Command") }} {{ _("Description") }}
{% if command.signature %} {{ _("Usage:") }}
{{ prefixes[0] }}{{ command.name }} {{ command.signature }}
{% endif %}
{% if command.aliases %} {{ _("Aliases:") }} {{ command.aliases|join(", ") }} {% endif %}
{% endfor %}
{% else %}
{% for cog in cogs %} {% for command in cogs[cog]["commands"] recursive %} {% if (not tab_name or cogs[cog]["name"] == tab_name) and query.lower() in command["name"].lower() %} {% if command.signature or command.aliases %} {% endif %} {% if command.subs %} {{ loop(command.subs) }} {% endif %} {% endif %} {% endfor %} {% endfor %}
{{ _("Command") }} {{ _("Description") }}
{% if command.signature %} {{ _("Usage:") }}
{{ prefixes[0] }}{{ command.name }} {{ command.signature }}
{% endif %}
{% if command.aliases %} {{ _("Aliases:") }} {{ command.aliases|join(", ") }} {% endif %}
{% endif %} {% else %}

{{ _("This page is currently unavailable until initial connection is made with a Red bot.") }}

{% endif %}