{% from 'components/rule-list.macro.html' import replacementRuleList %} {%- macro rule(params) -%}
{%- if params.deprecated == true -%}

{{ params.name }} deprecated

{%- if params.replacedBy|length -%}

Replaced by {{ replacementRuleList({ specifiers: params.replacedBy }) }}

{%- else -%}

{{ params.description }}

{%- endif -%} {%- elseif params.removed == true -%}

{{ params.name }} removed

{%- if params.replacedBy|length -%}

Replaced by {{ replacementRuleList({ specifiers: params.replacedBy }) }}

{%- else -%}

{{ params.description }}

{%- endif -%} {%- else -%}
{{ params.name }} {%- if params.categories and params.categories.frozen %}

❄️ Frozen

{%- endif -%}

{{ params.description }}

{%- endif -%}
{%- if params.removed == undefined -%}
Categories: {%- if params.deprecated -%}

❌

{%- else -%} {%- endif -%}
{%- endif -%}
{%- endmacro -%}