Help:Lists

From Avon Lake Wiki
Jump to: navigation, search

This page deals with creating lists in Mediawiki.

List basics

MediaWiki offers different types of lists: ordered lists and unordered lists.

Wikitext Rendering
* Lists are easy to do:
** start every line
** with a star
*** more stars mean
**** deeper levels
  • Lists are easy to do:
    • start every line
    • with a star
      • more stars mean
        • deeper levels
* A new line
* in a list  
marks the end of the list.
* however
* you can start again.
  • A new line
  • in a list

marks the end of the list.

  • however
  • you can start again.
# Numbered lists are good
## very organized
## easy to follow
  1. Numbered lists are good
    1. very organized
    2. easy to follow
* You can also
** break lines
*: like this
  • You can also
    • break lines
    like this
* You can also
* create a mixed list
# like
# this
  • You can also
  • create a mixed list
  1. like
  2. this

Extra indentation of lists

To give a list extra indentation, use a colon before the hashtag (for ordered lists) or asterisk (for unordered lists)

Wikitext Rendering
:#this list
:#has been
:#indented
  1. this list
  2. has been
  3. indented
vs.
#this list
#has not been
#indented
  1. this list
  2. has not been
  3. indented

Multi-column lists

To create a multi-column list, add <div style="column-count:number of columns"> before the list and </div> after the list.

<div style="column-count:2">
* apple
* carpet
* geography
* mountain
* nowhere
* postage
* ragged
* toast
</div>

gives:

  • apple
  • carpet
  • geography
  • mountain
  • nowhere
  • postage
  • ragged
  • toast
<div style="column-count:3">
#apple
#carpet
#geography
#mountain
#nowhere
#postage
#ragged
#toast
</div>

gives:

  1. apple
  2. carpet
  3. geography
  4. mountain
  5. nowhere
  6. postage
  7. ragged
  8. toast