{{ $list := .AlternativeOutputFormats }} {{ $length := (len $list) }} {{ if $list }} {{ range $index, $element := $list }} {{ .Name }}{{ if ne (add $index 1) $length }} | {{ end }} {{ end }} {{ end }}