2014-09-24 10:41:12 +00:00
|
|
|
caption: Lists
|
2013-12-05 16:21:10 +00:00
|
|
|
created: 20131205160257619
|
2016-05-03 02:28:06 +00:00
|
|
|
modified: 20160607093103220
|
2018-03-05 11:22:18 +00:00
|
|
|
tags: WikiText Lists
|
2013-12-05 16:21:10 +00:00
|
|
|
title: Lists in WikiText
|
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
2016-05-03 02:28:06 +00:00
|
|
|
! Bulleted Lists
|
2013-12-06 16:24:11 +00:00
|
|
|
|
2019-10-13 14:35:36 +00:00
|
|
|
You can create bulleted (unordered) lists with `*` characters (<<.icon $:/core/images/list-bullet>>):
|
2013-12-05 16:21:10 +00:00
|
|
|
|
|
|
|
<<wikitext-example src:"* First list item
|
|
|
|
* Second list item
|
|
|
|
** A subitem
|
|
|
|
* Third list item
|
|
|
|
">>
|
|
|
|
|
2016-05-03 02:28:06 +00:00
|
|
|
! Numbered Lists
|
2013-12-06 16:24:11 +00:00
|
|
|
|
2019-10-13 14:35:36 +00:00
|
|
|
Numbered (ordered) lists use `#` instead of `*` (<<.icon $:/core/images/list-number>>):
|
2013-12-05 16:21:10 +00:00
|
|
|
|
|
|
|
# First item
|
|
|
|
# Second item
|
|
|
|
# Third item
|
|
|
|
|
|
|
|
You can also mix ordered and unordered list items:
|
|
|
|
|
|
|
|
<<wikitext-example src:"* To do today
|
|
|
|
*# Eat
|
|
|
|
* To get someone else to do
|
|
|
|
*# This
|
|
|
|
*# That
|
|
|
|
*## And the other
|
|
|
|
">>
|
|
|
|
|
2014-10-05 15:18:56 +00:00
|
|
|
Here's an example the other way around, with numbers as the first level:
|
2014-10-01 17:54:34 +00:00
|
|
|
|
|
|
|
<<wikitext-example src:"# To do today
|
|
|
|
#* Eat
|
|
|
|
# To get someone else to do
|
|
|
|
#* This
|
|
|
|
#* That
|
|
|
|
#** And the other
|
|
|
|
">>
|
|
|
|
|
2013-12-06 16:24:11 +00:00
|
|
|
! CSS Classes
|
|
|
|
|
2013-12-05 16:21:10 +00:00
|
|
|
You can also assign a CSS class to an individual member of a list with this notation:
|
|
|
|
|
|
|
|
<<wikitext-example src:"* List One
|
2024-06-29 12:26:09 +00:00
|
|
|
*.tc-muted List Two
|
2013-12-05 16:21:10 +00:00
|
|
|
* List Three
|
|
|
|
">>
|
|
|
|
|
2013-12-06 16:24:11 +00:00
|
|
|
! Mixing Lists and Block Quotes
|
|
|
|
|
|
|
|
Note that [[Block Quotes in WikiText]] can be mixed with lists. For example:
|
|
|
|
|
|
|
|
<<wikitext-example src:"* List One
|
|
|
|
** List Two
|
|
|
|
**> A quote
|
|
|
|
**> Another quote
|
|
|
|
* List Three
|
|
|
|
">>
|
2014-09-24 10:41:12 +00:00
|
|
|
|
|
|
|
! Paragraphs in Lists
|
|
|
|
|
2014-09-24 11:23:40 +00:00
|
|
|
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:
|
2014-09-24 10:41:12 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
* First entry
|
|
|
|
* <$transclude tiddler="MyTiddler" mode="block"/>
|
|
|
|
* Third entry
|
|
|
|
```
|
2014-09-24 11:23:40 +00:00
|
|
|
|
|
|
|
Secondly, 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
|
|
|
|
```
|