{{ $type := .Get "type" | default "normal" }} {{ if not (eq $type "margin") }} {{ if eq $type "full" }}
{{ else }}
{{ end }} {{ end }} {{ if eq $type "full" }} {{ with .Get "link" }}{{ end }} {{ if .Get "link" }}{{ end }}
{{ else }}{{/* margin or normal */}} {{ if eq $type "margin" }} {{ with .Get "link" }}{{ end }} {{ if .Get "link" }}{{ end }} {{ end }} {{ end }} {{ with .Get "title"}}{{ . }} {{ end}} {{ with .Get "caption"}}{{ . }}{{ end }} {{ with .Get "attrlink"}}{{ end }} {{ with .Get "attr" }}{{ . }}{{ end }} {{ if .Get "attrlink" }}{{ end }} {{ if eq $type "full" }}
{{ else }} {{ end }} {{ if ( eq $type "normal" ) }} {{ with .Get "link" }}{{ end }} {{ if .Get "link" }}{{ end }} {{ end }} {{ if not (eq $type "margin") }}
{{ end }}