|
To Create... | Use | Example |
---|---|---|
Bulleted list | * (asterisk) | * Item * Item * Item |
Numbered list | # (hash) | # Item # Item # Item |
Definition list | ; (semicolon) | ;term:definition |
If you forget which character to use while you're editing, click the Wiki Quick Help tab.
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:
Example :
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:
If you place more than one numbered list in a page, the items are separately numbered.
Since Tiki18 one can make numbered lists output unique numbers for each sub-item instead of reseting the counter to 1. For example, when it is wrapped in a PluginDiv with class="uol"
parameter:
{DIV(class=uol)} # Item 1 ## Sub-item ### Sub-item ### Sub-item #### Sub-item #### Sub-item #### Sub-item # Item 2 ## Sub-item ## Sub-item ### Sub-item ### Sub-item #### Sub-item #### Sub-item # Item 3 ## Sub-item ### Sub-item {DIV}
The output should be something like this image:
How it is rendered on this page:
wiki_make_ordered_list_items_display_unique_numbers
) on the "Editing and Plugins" control panel to apply this globally on all ordered lists rendered in Tiki.
If you want to opt-out some list from this formatting, you can then wrap it in a div with class nouol
.
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)
You can add some custom CSS to a page by using the (PluginHTML|HTML Plugin).
{HTML()}<style type="text/css"> .mylist ol { list-style-type: decimal; } .mylist ol ol { list-style-type: lower-alpha; } .mylist ol ol ol { list-style-type: lower-roman; } </style> {HTML}
The following
{DIV(class=mylist)} # 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 {DIV}
Will show as
In a bulleted list, you can create additional sub-levels beyond the third level, but Tiki doesn't use distinctive bullets beyond Level 3.
Here's a numbered list with nested levels:
You can create deeper levels of nesting, but doing so might prove confusing to your readers.
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:
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.
Expandable areas work with Bulleted and Numbered lists.
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.
Expandable areas work with Bulleted and Numbered lists.
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:
To create a definition list, do the following:
Better definition lists can be created using the DL plugin.
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:
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) |
{maketoc:box} produces a table of contents without respect to the hierarchical order.
Example: