Wiki-Syntax Lists
In Wiki pages and other contexts that support Wiki formatting (including articles, forums, and blogs), you can easily create bulleted, numbered, and definition lists. In numbered lists, Tiki numbers the items automatically. You can also create nested lists. The following sections explain the details; see the Quick Reference for an overview. Scroll down to Help! if something goes wrong.In this page:
Table of contents
- Wiki-Syntax Lists
- Quick Reference
- Creating a Bulleted List
- Creating a Numbered List
- Creating a Nested List
- Creating an Outline Numbered List
- Bullet list example:
- Numbered list example:
- Combined Bullet and Numbered list example:
- Adding Hidden Details
- Text Continuation
- Creating a Definition List
- Creating a Table of Contents List
Quick Reference
| To Create... | Use | Example |
|---|---|---|
| Bulleted list | * (asterisk) | *Item *Item *Item |
| Numbered list | # (hash) | #Item #Item #Item |
| Definition list | ; (semicolon) | ;term:definition |
Creating a Bulleted List
If you type an asterisk (*) at the beginning of a line, Tiki places a bullet (a black dot) at the beginning of the line. The line is indented and formatted with a hanging indent, so that second and subsequent lines are indented and aligned with the first line.To create a bulleted list, do the following:
- Place the insertion point at the beginning of the line.
- Type an asterisk.
- Type the item's text.
- Press Enter.
Example :
- I put an asterisk at the beginning of this line
- And on the second too
- and on the third
- And you can see all the lines aligned.
Creating a Numbered List
If you type a hash mark (#) at the beginning of a line, Tiki numbers the line and indents it from the left margin. The item's text is formatted with a hanging indent, so that second and subsequent lines are indented and aligned with the first line.To create a numbered list, do the following:
- Place the insertion point at the beginning of the line.
- Type a hash mark. Tiki supplies the period automatically.
- Type the item's text.
- Do one of the following:
- To continue typing items, press Enter once, and go to Step 2, above.
- To stop typing the list, press Enter twice.
Creating a Nested List
A nested list is a bulleted or numbered list that has more than one level — that is, some items have "sub-items". To create a nested list, type two or more asterisks (bulleted lists) or hash marks (numbered lists) at the beginning of the line, as shown in the following examples:*Level 1 (bulleted list)
**Level 2 (bulleted list)
***Level 3 (bulleted list)
#Level 1 (numbered list)
##Level 2 (numbered list)
###Level 3 (numbered list)
Creating an Outline Numbered List
You can add some custom CSS to a page by using the (PluginHTML|HTML Plugin).{HTML()}<style type="text/css">
ol {
list-style-type: decimal;
}
ol ol {
list-style-type: lower-alpha;
}
ol ol ol {
list-style-type: lower-roman;
}
</style>
{HTML}
The following
!!!Outline numbered list
# Level 1
## Level 1 a
# Level 2
## Level 2 a
## Level 2 b
### Level 2 b i
### Level 2 b ii
# Level 3
## Level 3 a
> 1. Level 1
>> a. Level 1 a
> 2. Level 2
>> a. Level 2 a
>> a. Level 2 b
>>> i. Level 2 b i
>>> ii. Level 2 b ii
> 3. Level 3
>> a. Level 3 a
Bullet list example:
- This is a Level 1 item.
- This is another Level 1 item
- This is a Level 2 item.
- Yet another Level 1 item.
- This is a Level 2 item.
- Sub-items can have their own sub-items! This is Level 3.
- This is a Level 2 item.
- Back to Level 1.
Numbered list example:
Here's a numbered list with nested levels:- This is a Level 1 item.
- This is another Level 1 item
- This is a Level 2 item.
- Yet another Level 1 item.
- This is a Level 2 item.
- Another Level 2 item. Note the numbering.
- Sub-items can have their own sub-items! This is Level 3.
- Back to Level 1.
Combined Bullet and Numbered list example:
Syntax:
*Level 1 (bulleted list) **Level 2 (bulleted list) ###Level 3 (numbered list) ###Level 3 (numbered list) **Level 2 (bulleted list) ***Level 3 (bulleted list) #Level 1 (numbered list) **Level 2 (bulleted list) ##Level 2 (numbered list) ##Level 2 (numbered list)
Result:
- Level 1 (bulleted list)
- Level 2 (bulleted list)
- Level 3 (numbered list)
- Level 3 (numbered list)
- Level 2 (bulleted list)
- Level 3 (bulleted list)
- Level 2 (bulleted list)
- Level 1 (numbered list)
- Level 2 (bulleted list)
- Level 2 (numbered list)
- Level 2 (numbered list)
Adding Hidden Details
An expandable area allows you to display the major items in your list by default. Every item is still there, but it needs to be expanded to become visible. An expandable area is created by adding a minus - character after the star * characters.- This is a Level 1 item.
- This Level 1 item has Hidden Details. Click the Plus [+] to open it.
[+] - Back to Level 1.
Text Continuation
Text can be forced to continue at the same indentation level in a list without having a bullet or a Number assigned to it. This is accomplished by having a Plus + character start each line. The number of Plus characters controls the indentation level.- This is a Level 1 item.
This line begins with a single Plus character- This is a Level 2 item.
This line begins with a 2 Plus characters
- This is a Level 2 item.
- Back to Level 1.
Creating a Definition List
A definition list displays a term that is aligned flush left; the term's definition is positioned on the subsequent line and indented. Here's an example:- unordered list
- A list in which the order of the items is unimportant; also called a bulleted list.
To create a definition list, do the following:
- At the beginning of a line, type a semicolon (;).
- Type the term to be defined.
- Type a colon (:).
- Type the definition.
- Your line should look like this: ;term:definition
- Press Enter.
- Do one of the following:
- To type another item, go to Step 2, above.
- To end the list, press Enter again.
Creating a Table of Contents List
Use the {maketoc} plugin to automatically create a table of contents, based on the headings on the current wiki page.For example, using {maketoc} on this page will produce:
Table of contents
- Wiki-Syntax Lists
- Quick Reference
- Creating a Bulleted List
- Creating a Numbered List
- Creating a Nested List
- Creating an Outline Numbered List
- Bullet list example:
- Numbered list example:
- Combined Bullet and Numbered list example:
- Adding Hidden Details
- Text Continuation
- Creating a Definition List
- Creating a Table of Contents List
You can use the following options to customize the table of contents list:
| Option | Description | Valid Values |
|---|---|---|
| type | For backwards compatibility from older syntax: {maketoc:box}. Optional. | box |
| maxdepth | Defines how many heading levels to include in the list. If 0, then all headings will be included. Default = 0 | Numeric |
| title | Title (heading) of the table of contents. Use title="" to have no title. Default = Table of Contents Note: The title will be translated, if available. Introduced in 1.9.10 |
Alphanumeric |
| showhide | Create a link that will collapse (that is, hide) the table of contents link. Default = N | Y or N |
| nolinks | Create the table of contents without links. Default = n (links will be created). | Y or N |
| nums | Specify if the items in the table of contents listing should be numbered. Default = n (use bullets instead of numbers). | Y, N, Force (same as Y) |
Remarks
{maketoc:box} produces a table of contents without respect to the hierarchical order.Example:
