## V. Standard BBCode Library

[ Previous: G. Containers | Next: Appendix A. Standard Smileys ]

### H. Lists

`[list]...[*]...[*]...[/list]`

`[list=type]...[*]...[*]...[/list]`
The `[list]` tag is designed for creating lists of things. In its default form, where no type is given, it creates a simple bullet-point list, like this:

Code:
    [list]
    [*]John
    [*]Mary
    [*]Bill
    [*]Sue
    [/list]
| Output: John Mary Bill Sue

Notice that while you do need to have an ending `[/list]` tag, you don't need to have an ending `[/*]` tag for each `[*]` tag; this makes creating lists somewhat simpler.

You can also create numbered lists by specifying what type of list you want; for example, if you want a numbered list, use type "`1`", or for an alphabetic list, use type "`A`", or for Roman numerals, use type "`i`". Two examples are shown below:

Code:
    [list=1]
    [*]John
    [*]Mary
    [*]Bill
    [*]Sue
    [/list]
| Output: John Mary Bill Sue

Code:
    [list=A]
    [*]John
    [*]Mary
    [*]Bill
    [*]Sue
    [/list]
| Output: John Mary Bill Sue

NBBC supports a wide variety of different kinds of list types, and matches capabilities, more-or-less, with the various list styles defined in the CSS 2.1 standard. A complete list of supported types is given below:

Type | Description | Example | CSS equivalent
--- | --- | --- | ---
1 | Ordered list using Arabic numerals | 1, 2, 3... | `decimal`
01 | Ordered list using numbers with a leading zero | 01, 02, 03..., 10, 11... | `decimal-leading-zero`
A | Ordered list using capital letters | A, B, C... | `upper-alpha`
a | Ordered list using lowercase letters | a, b, c... | `lower-alpha`
I | Ordered list using capital Roman numerals | I, II, III, IV... | `upper-roman`
i | Ordered list using lowercase Roman numerals | i, ii, iii, iv... | `lower-roman`
greek | Ordered list using lowercase Greek letters | α, β, γ... | `lower-greek`
armenian | Ordered list using Armenian numbering |  | `armenian`
georgian | Ordered list using Georgian numbering | an, ban, gan... | `georgian`
circle | Unordered list using circle-bullets |  | `circle`
disc | Unordered list using disc-bullets |  | `disc`
square | Unordered list using square-bullets |  | `square`

[ Previous: G. Containers | Next: Appendix A. Standard Smileys ]

Copyright © 2010, the Phantom Inker. All rights reserved.