From NuGOwiki
Contents |
List basics
| wikitext | rendering |
|---|---|
* Lists are easy to do: ** start every line with a star *** more stars means deeper levels |
|
*A newline *in a list marks the end of the list. Of course *you can *start again. |
marks the end of the list. Of course
|
# Numbered lists are also good ## very organized ## easy to follow |
|
* You can also **break lines<br>inside lists<br>like this |
|
; Definition list : list of definitions ; item : the item's definition |
|
* You can even create mixed lists *# and nest them *#* like this *#*; can I mix definition list as well? *#*: yes *#*; how? *#*: it's easy as *#*:* a *#*:* b *#*:* c |
|
A blank line within a list item or between list items
(In this and the next section, numbered lists are used in examples; unnumbered lists give a corresponding result. The only difference is the possible problem of a numbered list restarting with 1 if it is interrupted by a line that is not a list item.)
A list item can not be longer than one paragraph, unless HTML tags <br><br> or <p>...</p> are used within the list item to add space. A paragraph that does not begin with the same list item as preceding lines ("#" for a numbered list, "*" for an unnumbered list) will end the list. If the list is unnumbered, starting another paragraph with "*" will appear to continue the list, but if the list is numbered, the next paragraph which begins with "#" will start the list numbering over again from 1.
For a list with items of more than one paragraph long, adding a blank line between items may be necessary to avoid confusion.
Using <br><br>
One way to produce a paragraph break in a list is to use <br><br>. The spacing between paragraphs may look odd, however.
Example:
#Abc dummy text dummy text.<br><br>Def dummy text dummy text dummy text dummy text dummy text.<br><br> #Ghi dummy text dummy text.<br><br>Jkl dummy text dummy text dummy text dummy text dummy text.
Result:
- Abc dummy text dummy text.
Def dummy text dummy text dummy text dummy text dummy text.
- Ghi dummy text dummy text.
Jkl dummy text dummy text dummy text dummy text dummy text.
Using <p> and </p>
To get more convincing spacing, you can instead put <p> and </p> tags around each paragraph in the list item.
Example:
#Abc dummy text dummy text.<p>Def dummy text dummy text dummy text dummy text dummy text.</p> #Ghi dummy text dummy text.<p>Jkl dummy text dummy text dummy text dummy text dummy text.</p>
Result:
- Abc dummy text dummy text.
Def dummy text dummy text dummy text dummy text dummy text.
- Ghi dummy text dummy text.
Jkl dummy text dummy text dummy text dummy text dummy text.
Extra indentation of lists
In a numbered list in a large font, some browsers do not show more than two digits, unless extra indentation is applied (if there are multiple columns: for each column).
:#abc :#def :#ghi
gives
- abc
- def
- ghi