{{ with .Get "align" }}
{{ end }} {{ with .Get "href" }}{{ end }} {{ with .Get {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
{{ if isset .Params "title" }}

{{ .Get "title" }}

{{ end }} {{ if or (.Get "caption") (.Get "attr")}} {{ .Get "caption" }} {{ if isset .Params "attrlink"}} {{ if isset .Params "align"}} {{/* we need the class here to remove margin-left for center alignment */}}
{{ else }} {{ end }} {{ end }} {{ .Get "attr" }} {{ if isset .Params "attrlink"}}{{ end }} {{ end }}
{{ end }} {{ if isset .Params "align" }}
{{ end }} {{ if isset .Params "href" }}{{ end }}