| Écrire de la documentation en utilisant DocBook: Un cours accéléré | ||
|---|---|---|
| Précédent | Chapitre 6. Listes | Suivant |

La variablelist est similaire à une définition de liste HTML. Elle est utilisée quand vous avez une liste de termes et de définitions. Elle consiste en plusieurs balises : <varlistentry>, utilisées pour grouper des termes ensemble, <term>, contient le terme et <listitem>, contient la définition du terme.
Exemple 6-4. Une variablelist
<variablelist> <varlistentry> <term>Black Beans</term> <listitem><para>My favorite black bean recipe is black bean soup, but they also go well with rice.</para></listitem> </varlistentry> <varlistentry> <term>Apples</term> <term>Bananas</term> <listitem><para>You can eat them straight, but they also go well in salads and in desserts.</para></listitem> </varlistentry> </variablelist>
Une fois converti, l'exemple ressemble à ça :
My favorite black bean recipe is black bean soup, but they also go well with rice.
You can eat them straight, but they also go well in salads and in desserts.
| Précédent | Sommaire | Suivant |
| La orderedlist | Niveau supérieur | La segmentedlist |