Output HTML for a block-level element with an optional title and caption.
node
The block-level element to render.
class
The value of the HTML class
attribute.
title
An element to use for the title.
caption
An element to use for the caption.
titleattr
An optional value for the HTML title
attribute.
icon
An icon for the block, as a copyable node set.
This template outputs HTML for a formal DocBook element, one that can have a title or caption. It passes the class
parameter to html.class.attr
. If the class
parameter is not provided, it uses the local name of node
. Even if title
and caption
are both empty, this template still outputs the extra wrapper elements for formal elements. If titleattr
is provided, it is used for the value of the HTML title
attribute on the outermost div
element.
This template handles conditional processing.