A variable list is a list where each entry has one or more terms and a description. They have many potential uses, but are often used for explanations of technical terms or jargon. When published, they are shown in rows and columns, so they look like a borderless table, but they do not have the underlying structure of a table. For HTML outputs, they use description list HTML tags (<dl>, <dt> and <dd>).
Note
Variable lists have no relation to variable sets or variable content. The term variable list comes from the DocBook specification, where variablelist
is the name of the element for this type of list.
To find out about variable sets and variable content, see Variables.
For instructions on how to create a variable list, see Create a Variable List.
The variablelist
element is a "container" for all of your terms and descriptions.
<variablelist> <title></title> <varlistentry> <term></term> <listitem> <para></para> </listitem> </varlistentry> </variablelist>
-
The variablelist has a
title
. This is optional and if you do not want it, you can remove it and the variablelist will still be valid. -
Each term(s) and description pair go inside a
varlistentry
element -
Each term consists of a
term
element. You add the term text directly inside this element, there is no para. -
Each description consists of a
listitem
element and apara
element inside it. You add your description text inside thepara
element.
To create a variable list (description list):
-
Create a new topic or edit an existing one by selecting it in the Content Manager.
-
Position the cursor where the variable list is to be inserted.
-
Press Alt + Enter ⏎ (Windows) or Command ⌘ + Enter ⏎ (Mac) to display the Element Context Menu.
-
Enter
variablelist
and select it from the menu. -
Enter a text for the
title
(or remove it). -
Enter a text for the
term
andlistitem
(its description). -
Position the cursor at the end of the description and press Enter to add another term.
-
To end the list, position the cursor after the
variablelist
. -
Select Save.
Comments
0 comments
Article is closed for comments.