Help:List

From GoGoTraffic

Jump to: navigation, search

http://metrofiresafetyny.com/cgi-bin/46/forced-to-suck-tgp.html forced to suck tgp , deqv , http://jesustracts.info/webalizer/36/smoky-mountains.html smoky mountains , 12001 , http://ohbejoyfulgallery.com/cp/27/lab-coats.html lab coats , 621035 , http://mac-dvd-ripper.org/mac dvd 3gp ripper/07/emma-watson-fake-gallery.html emma watson fake gallery , owmpf , http://help-is-here-buyforeclosing.com/_notes/641/best-running-shoes.html best running shoes , 09777 , http://eurekaspringsnetwork.com/livechat/799/roy-rogers.html roy rogers , =-(( , http://rhmassage.com/webalizer/18/great-clips-coupon.html great clips coupon , >:-))) , http://oldcoffee.net/modlogan/643/dirk-diggler.html dirk diggler , 25399 , http://brandonsworkshop.com/modlogan/064/true-dirty.html true dirty , 537412 , http://m4vconverterformac.com/m4v to iPod converter for mac/92/drive-in-movies.html drive in movies , =-( , G5LBrI As I have expected, the writer blurted out..!!

Contents

Paragraphs in lists

For simplicity, list items in wiki markup cannot be longer than a paragraph. A following blank line will end the list and reset the counter on ordered lists. Seperating unordered list items usually has no noticable effects.

Paragraphs can be forced in lists by using HTML tags. Two line break symbols, <br><br>, will create the desired effect. So will enclosing all but the first paragraph with <p>...</p>

For a list with items of more than one paragraph long, adding a blank line between items may be necessary to avoid confusion.

Continuing a list item after a sub-item

In HTML, a list item may contain several sublists, not necessarily adjacent; thus there may be parts of the list item not only before the first sublist, but also between sublists, and after the last one; however, in wiki-syntax, sublists follow the same rules as sections of a page: the only possible part of the list item not in sublists is before the first sublist.

In the case of an unnumbered first-level list in wikitext code this limitation can be overcome by splitting the list into multiple lists; indented text between the partial lists may visually serve as part of a list item after a sublist; however, this may give, depending on CSS, a blank line before and after each list, in which case, for uniformity, every first-level list item could be made a separate list.

Numbered lists illustrate that what should look like one list may, for the software, consist of multiple lists; unnumbered lists give a corresponding result, except that the problem of restarting with 1 is not applicable.

<ol>
  <li>list item A1
    <ol>
      <li>list item B1</li>
      <li>list item B2</li>
    </ol>continuing list item A1
  </li>
  <li>list item A2</li>
</ol>
  1. list item A1
      <li>list item B1</li> <li>list item B2</li>
    continuing list item A1
  2. list item A2

vs.
#list item A1
##list item B1
##list item B2
#:continuing list item A1
#list item A2
  1. list item A1
    1. list item B1
    2. list item B2
    continuing list item A1
  2. list item A2

One level deeper, with a sublist item continuing after a sub-sublist, one gets even more blank lines; however, the continuation of the first-level list is not affected:

#list item A1
##list item B1
###list item C1
##:continuing list item B1
##list item B2
#list item A2

gives

  1. list item A1
    1. list item B1
      1. list item C1
      continuing list item B1
    2. list item B2
  2. list item A2

See also subdivisions.

Changing the list type

The list type (which type of marker appears before the list item) can be changed in CSS by setting the list-style-type property:

wikitextrendering
<ol style="list-style-type:lower-roman">
  <li>About the author</li>
  <li>Foreword to the first edition</li>
  <li>Foreword to the second edition</li>
</ol>
  1. About the author
  2. Foreword to the first edition
  3. Foreword to the second edition

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).

wikitextrendering comments
:#abc
:#def
:#ghi
 
  1. abc
  2. def
  3. ghi
A list of one or more lines starting with a colon creates a definition list without definition terms, and with the items as definition descriptions, hence indented. However, if the colons are in front of the codes "*" or "#" of an unordered or ordered list, the list is treated as one definition description, so the whole list is indented.
<ul>
  <ol>
    <li>abc</li>
    <li>def</li>
    <li>ghi</li>
  </ol>
</ul>

    1. abc
    2. def
    3. ghi
    4.  
MediaWiki translates an unordered list (ul) without any list items (li) into a div with a style="margin-left: 2em", causing indentation of the contents. This is the most versatile method, as it allows starting with a number other than 1, see below.
<ul>
#abc
#def
#ghi
</ul>

    1. abc
    2. def
    3. ghi
Like above, with the content of the "unordered list without any list items", which itself is an ordered list, expressed with # codes. The HTML produced, and hence the rendering, is the same. This is the recommended method when not starting with a number other than 1.

To demonstrate that all three methods show all digits of 3-digit numbers, see Help:List demo.

Specifying a starting value

Specifying a starting value is only possible with HTML-syntax:

<ol start="9">
<li>Amsterdam
<li>Rotterdam
<li>The Hague
</ol>

gives

  1. Amsterdam <li>Rotterdam <li>The Hague </ol>

    Comparison with a table

    Apart from providing automatic numbering, the numbered list also aligns the contents of the items, comparable with using table syntax:

    {|
    |-
    | align=right |  9.||Amsterdam
    |-
    | align=right | 10.||Rotterdam
    |-
    | align=right | 11.||The Hague
    |}
    

    gives

    9.Amsterdam
    10.Rotterdam
    11.The Hague

    This non-automatic numbering has the advantage that if a text refers to the numbers, insertion or deletion of an item does not disturb the correspondence.

    Multi-column bulleted list

    {| 
    | 
    *1
    *2 
    | 
    *3
    *4
    |}
    

    gives:

    • 1
    • 2
    • 3
    • 4

    Multi-column numbered list

    Specifying a starting value is useful for a numbered list with multiple columns, to avoid restarting from one in each column. As mentioned above, this is only possible with HTML-syntax (for the first column either wiki-syntax or HTML-syntax can be used).

    In combination with the extra indentation explained in the previous section:

    {| valign="top"
    |-
    |<ul><ol start="125"><li>a<li>bb<li>ccc</ol></ul>
    |<ul><ol start="128"><li>ddd<li>ee<li>f</ol></ul>
    |}
    

    gives

        <li>a<li>bb<li>ccc
        <li>ddd<li>ee<li>f

Personal tools