Bulleted Lists
You can create bulleted (unordered) lists with * characters ():
* First list item
* Second list item
** A subitem
* Third list item
That renders as:
- First list item
- Second list item
- A subitem
- Third list item
... and the underlying HTML is:
<ul><li>First list item</li><li>Second list item<ul><li>A subitem</li></ul></li><li>Third list item</li></ul>Numbered Lists
Numbered (ordered) lists use # instead of * ():
- First item
- Second item
- Third item
You can also mix ordered and unordered list items:
* To do today
*# Eat
* To get someone else to do
*# This
*# That
*## And the other
That renders as:
- To do today
- Eat
- To get someone else to do
- This
- That
- And the other
... and the underlying HTML is:
<ul><li>To do today<ol><li>Eat</li></ol></li><li>To get someone else to do<ol><li>This</li><li>That<ol><li>And the other</li></ol></li></ol></li></ul>Here's an example the other way around, with numbers as the first level:
# To do today
#* Eat
# To get someone else to do
#* This
#* That
#** And the other
That renders as:
- To do today
- Eat
- To get someone else to do
- This
- That
- And the other
... and the underlying HTML is:
<ol><li>To do today<ul><li>Eat</li></ul></li><li>To get someone else to do<ul><li>This</li><li>That<ul><li>And the other</li></ul></li></ul></li></ol>Description Lists
Basic syntax
HTML description lists (AKA definition lists) are created with this syntax:
; Term being described
: Description / Definition of that term
; Another term
: Another description / definition
That renders as:
- Term being described
- Description / Definition of that term
- Another term
- Another description / definition
... and the underlying HTML is:
<dl><dt>Term being described</dt><dd>Description / Definition of that term</dd><dt>Another term</dt><dd>Another description / definition</dd></dl>Multiple terms and descriptions
You can create multiple descriptions for a term, or multiple terms for a single description:
; Mouse
: A rodent with a small body and a long tail
: A pointing device used to interact with a computer
; Apple
; Pear
: A type of fruit belonging to the Rosaceae family
That renders as:
- Mouse
- A rodent with a small body and a long tail
- A pointing device used to interact with a computer
- Apple
- Pear
- A type of fruit belonging to the Rosaceae family
... and the underlying HTML is:
<dl><dt>Mouse</dt><dd>A rodent with a small body and a long tail</dd><dd>A pointing device used to interact with a computer</dd><dt>Apple</dt><dt>Pear</dt><dd>A type of fruit belonging to the Rosaceae family</dd></dl>Nested description lists
Description lists may also be nested to create lists within lists:
; Coffee
: A beverage prepared from roasted coffee beans
:; Black coffee
:: Coffee served without any additives
:; Milk coffee
:: Coffee combined with steamed or frothed milk
::; Latte
::: A coffee made with espresso and steamed milk
; Tea
: A beverage typically made from tea leaves
That renders as:
- Coffee
- A beverage prepared from roasted coffee beans
- Black coffee
- Coffee served without any additives
- Milk coffee
- Coffee combined with steamed or frothed milk
- Latte
- A coffee made with espresso and steamed milk
- Tea
- A beverage typically made from tea leaves
... and the underlying HTML is:
<dl><dt>Coffee</dt><dd>A beverage prepared from roasted coffee beans<dl><dt>Black coffee</dt><dd>Coffee served without any additives</dd><dt>Milk coffee</dt><dd>Coffee combined with steamed or frothed milk<dl><dt>Latte</dt><dd>A coffee made with espresso and steamed milk</dd></dl></dd></dl></dd><dt>Tea</dt><dd>A beverage typically made from tea leaves</dd></dl>CSS Classes
You can also assign a CSS class to an individual member of a list with this notation:
* List One
*.tc-muted List Two
* List Three
That renders as:
- List One
- List Two
- List Three
... and the underlying HTML is:
<ul><li>List One</li><li class="tc-muted">List Two</li><li>List Three</li></ul>Mixing Lists and Block Quotes
Note that Block Quotes in WikiText can be mixed with lists. For example:
* List One
** List Two
**> A quote
**> Another quote
* List Three
That renders as:
- List One
- List TwoA quoteAnother quote
- List Two
- List Three
... and the underlying HTML is:
<ul><li>List One<ul><li>List Two<blockquote><div>A quote</div><div>Another quote</div></blockquote></li></ul></li><li>List Three</li></ul>Paragraphs in Lists
Entries in the list are delimited with a linebreak, making it impossible to include linebreaks within a list entry. There are a couple of workarounds.
First, you can transclude paragraph content from another tiddler. For example:
* First entry
* <$transclude tiddler="MyTiddler" mode="block"/>
* Third entrySecondly, you can use an HTML "div" element to contain the multiline content. For example:
# Step 1
# Step 2
# Step 3<div>
Here is the first of several paragraphs. Note that the double linebreak preceding this paragraph is significant.
And here is the second of several paragraphs.
</div>
# Step 4
# Step 5
# Step 6