{{#if category}}
// tag::category-{{category}}[]
{{/if}}
{{#if exclude_from_docs}}
// tag::exclude-from-docs[]
{{/if}}
{{#if is_deprecated}}
// tag::deprecated[]
{{/if}}
{{#if cloud_supported}}
// tag::redpanda-cloud[]
{{/if}}
=== {{name}}
{{#if version}}

ifndef::env-cloud[]
*Introduced in {{version}}*
endif::[]
{{/if}}
{{#if description}}

{{{description}}}
{{else}}

No description available.

{{/if}}
{{#if is_enterprise}}

ifndef::env-cloud[]
*Enterprise license required*: `{{enterprise_value}}` (for license details, see xref:get-started:licensing/index.adoc[Redpanda Licensing])
endif::[]
{{/if}}
{{#if cloud_byoc_only}}

ifdef::env-cloud[]
NOTE: This property is available only in Redpanda Cloud BYOC deployments.
endif::[]

{{/if}}
{{#if units}}

*Unit:* {{units}}
{{else}}
{{#if (formatUnits name)}}

*Unit:* {{formatUnits name}}
{{/if}}
{{/if}}
{{#if (ne defined_in "src/v/config/node_config.cc")}}
{{#if (ne needs_restart undefined)}}

*Requires restart:* {{#if needs_restart}}Yes{{else}}No{{/if}}
{{/if}}
{{/if}}

ifndef::env-cloud[]
*Restored during xref:manage:whole-cluster-restore.adoc[Whole Cluster Restore]:* {{#if (ne gets_restored false)}}Yes{{else}}No{{/if}}
endif::[]
{{#if visibility}}

// tag::self-managed-only[]
*Visibility:* `{{visibility}}`
// end::self-managed-only[]
{{/if}}
{{#if type}}

*Type:* {{type}}
{{/if}}
{{#if (and minimum maximum)}}

*Accepted values:* [`{{minimum}}`, `{{maximum}}`]
{{else}}
{{#if minimum}}

*Minimum value:* `{{minimum}}`
{{/if}}
{{#if maximum}}

*Maximum value:* `{{maximum}}`
{{/if}}
{{/if}}
{{#if (ne default undefined)}}

ifdef::env-cloud[]
*Default:* Available in the Redpanda Cloud Console
endif::[]
ifndef::env-cloud[]
*Default:* `{{formatPropertyValue default type}}`
endif::[]
{{/if}}

*Nullable:* {{#if nullable}}Yes{{else}}No{{/if}}
{{#if example}}

{{{renderPropertyExample this}}}
{{/if}}
{{#if related_topics}}
{{#with (allTopicsConditional related_topics) as |sectionType|}}

{{#if (eq sectionType "cloud")}}
ifdef::env-cloud[]
*Related topics:*

{{#each ../related_topics}}
{{#with (parseRelatedTopic this)}}
* {{{value}}}
{{/with}}
{{/each}}
endif::[]
{{else if (eq sectionType "self-managed")}}
ifndef::env-cloud[]
*Related topics:*

{{#each ../related_topics}}
{{#with (parseRelatedTopic this)}}
* {{{value}}}
{{/with}}
{{/each}}
endif::[]
{{else}}
*Related topics:*

{{#each ../related_topics}}
{{#with (parseRelatedTopic this)}}
{{#if (eq type "cloud")}}
ifdef::env-cloud[]
* {{{value}}}
endif::[]
{{else if (eq type "self-managed")}}
ifndef::env-cloud[]
* {{{value}}}
endif::[]
{{else}}
* {{{value}}}
{{/if}}
{{/with}}
{{/each}}
{{/if}}
{{/with}}
{{/if}}
{{#if aliases}}

// tag::self-managed-only[]
*Aliases:* {{join aliases ", "}}
// end::self-managed-only[]
{{/if}}

---
{{#if cloud_supported}}
// end::redpanda-cloud[]
{{/if}}
{{#if is_deprecated}}
// end::deprecated[]
{{/if}}
{{#if exclude_from_docs}}
// end::exclude-from-docs[]
{{/if}}
{{#if category}}
// end::category-{{category}}[]
{{/if}}