{{- $integrations := where $.Site.RegularPages "Section" "integrations" -}}
{{- $selectedIntegrations := partial "functions/select-integrations-by-docs-feature" (dict "integrations" $integrations "feature" (.Get "key")) -}}
{{- $count := len $selectedIntegrations -}}
{{- if ne (len $selectedIntegrations) 0 -}}
{{ if gt (len $selectedIntegrations) 1 }}
{{ replace (.Get "plural_intro") "COUNT" $count }}
{{ replace (.Get "plural_link") "COUNT" $count }}
{{ replace (.Get "plural_outro") "COUNT" $count }}
{{ else }}
{{ .Get "singular_intro" }}
{{ .Get "singular_link" }}
{{ .Get "singular_outro" }}
{{ end }}
{{- end -}}