sidebar
sidebar — A portion of a document that is isolated from the main narrative flow.
Synopsis
sidebar ::=
- Sequence of:
- Interleave of:
- One of:
- One or more of:
bridgehead
dialogue
drama
formalgroup
poetry
remark
revhistory
stagedir
- Indexing inlines
- Admonition elements
- Formal elements
- Graphic elements
- Informal elements
- List elements
- Paragraph elements
- Publishing elements
- Technical elements
- Verbatim elements
- Zero or more of:
- Sequence of:
- One or more of:
- Zero or more of:
- One or more of:
- Sequence of:
Attributes
Common attributes and common linking attributes.
Additional attributes:
- floatstyle
Additional Constraints
- sidebar must not occur among the children or descendants of sidebar
Description
A sidebar
is a short piece of text, rarely
longer than a single column or page, that is presented outside the
narrative flow of the main text.
Sidebars are often used for digressions or interesting observations that are related, but not directly relevant, to the main text.
Processing expectations
Formatted as a displayed block. Sometimes
sidebar
s are boxed or shaded.
DocBook does not specify the location of the
sidebar
within the final displayed flow of text.
The wrapper may float or remain where it is located.
Attributes
Common attributes and common linking attributes.
- any attribute
Any attribute in any other explicit namespace
- floatstyle
Specifies style information to be used when rendering the float
Parents
These elements contain sidebar
: abstract
, acknowledgements
, answer
, appendix
, article
, bibliodiv
, bibliography
, bibliolist
, blockquote
, callout
, calloutlist
, caption
, caution
, chapter
, colophon
, cover
, danger
, dedication
, dialogue
, drama
, entry
, example
, figure
, footnote
, glossary
, glossdef
, glossdiv
, glosslist
, important
, index
, informalexample
, informalfigure
, itemizedlist
, legalnotice
, linegroup
, listitem
, meta
(db.meta.content), note
, orderedlist
, para
, partintro
, poetry
, preface
, procedure
, qandadiv
, qandaset
, question
, result
, revdescription
, section
, setindex
, sidebar
, simplesect
, step
, taskprerequisites
, taskrelated
, tasksummary
, textobject
, tip
, toc
, variablelist
, warning
.
Children
The following elements occur in sidebar
: address
, anchor
, bibliolist
, blockquote
, bridgehead
, calloutlist
, caution
, danger
, dialogue
, drama
, epigraph
, equation
, example
, figure
, formalgroup
, formalpara
, glosslist
, important
, indexterm
(db.indexterm.endofrange), indexterm
(db.indexterm.singular), indexterm
(db.indexterm.startofrange), info
(db.info), info
(db.titleforbidden.info), informalequation
, informalexample
, informalfigure
, informaltable
, itemizedlist
, literallayout
, mediaobject
, note
, orderedlist
, para
, poetry
, procedure
, qandaset
, remark
, revhistory
, section
, sidebar
, simpara
, simplelist
, simplesect
, stagedir
, subtitle
, table
, task
, tip
, title
, titleabbrev
, variablelist
, warning
.
See Also
Related elements: abstract
, blockquote
, epigraph
.
Examples
1 |<article xmlns='http://docbook.org/ns/docbook'>
|<title>Example sidebar</title>
||
<section><title>An Example Section</title>
5 ||
<para>Some narrative text.
|</para>
||
<sidebar><title>A Sidebar</title>
10 |<para>Sidebar content.
|</para>
|</sidebar>
||
<para>The continuing flow of the narrative text, as if the
15 |sidebar was not present.
|</para>
||
</section>
|20 |
</article>