Creating Lists: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
No edit summary
Tels (talk | contribs)
m add <br>
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
* This is a list item
* This is a list item
* This is another list item
* This is another list item


== Numbered Lists ==
== Numbered Lists ==
For Numbered Lists just put the '''#''' sign in front of the list items, like this:
For Numbered Lists just put the '''#''' sign in front of the list items, like this:
  <nowiki># This is a list item</nowiki>
  <nowiki># This is a list item</nowiki>
Line 14: Line 16:
# This is a list item
# This is a list item
# This is another list item
# This is another list item
=== Line-Breaks in Numbered Lists ===


Note that placing a non-list-line between the numbered list items, the numbering will be broken, like this:
Note that placing a non-list-line between the numbered list items, the numbering will be broken, like this:
  <nowiki># This is a list item</nowiki>
  <nowiki># This is a list item</nowiki>
A line that is not a list-item will break the numbering.
A line that is not a list-item will break the numbering.
  <nowiki># This is another list item</nowiki>
  <nowiki># This is another list item</nowiki>


Line 25: Line 29:
# This is another list item
# This is another list item


[[Category:Tutorial]]
One way to fix this is to use <nowiki><br></nowiki> as a line-breaker:
[[Category:Wiki]]
 
<nowiki># This is a list item<br></nowiki>A line that is not a list-item, with very long text.
<nowiki># This is another list item</nowiki>
 
This is what it looks like:
# This is a list item<br>A line that is not a list-item, with very long text.
# This is another list item
 
{{tutorial-wiki|sort=Lists}}

Latest revision as of 12:36, 23 March 2012

Unnumbered Lists

To create a list in Wiki Articles, simply place a star * in front of each line, like this:

* This is a list item
* This is another list item

This is what it looks like:

  • This is a list item
  • This is another list item


Numbered Lists

For Numbered Lists just put the # sign in front of the list items, like this:

# This is a list item
# This is another list item

This is what it looks like:

  1. This is a list item
  2. This is another list item

Line-Breaks in Numbered Lists

Note that placing a non-list-line between the numbered list items, the numbering will be broken, like this:

# This is a list item
A line that is not a list-item will break the numbering.
# This is another list item

This is what it looks like:

  1. This is a list item

A line that is not a list-item will break the numbering.

  1. This is another list item

One way to fix this is to use <br> as a line-breaker:

# This is a list item<br>A line that is not a list-item, with very long text.
# This is another list item

This is what it looks like:

  1. This is a list item
    A line that is not a list-item, with very long text.
  2. This is another list item