|
|
| Line 132: |
Line 132: |
| |} | | |} |
| Blank lines between items of an ordered list will not only cause the same problems as in the previous example, but will also restart the numbering at "1". This cannot be fixed without complex wiki markup (defeating ease-of-editing expectations), so double-spacing should always be avoided in numbered lists. | | Blank lines between items of an ordered list will not only cause the same problems as in the previous example, but will also restart the numbering at "1". This cannot be fixed without complex wiki markup (defeating ease-of-editing expectations), so double-spacing should always be avoided in numbered lists. |
|
| |
| ==== Other cases ====
| |
|
| |
| Experienced editors can use raw html to achieve more complex results, such as ordered lists using indexes other than numbers, and ordered lists not starting from 1.
| |
| {| class="wikitable"
| |
| ! Wikitext
| |
| ! Appearance
| |
| |-
| |
| |<ol type="a">
| |
| <li>this</li>
| |
| <li>list</li>
| |
| <li>uses</li>
| |
| <li>letters</li>
| |
| <li>as</li>
| |
| <li>indexes</li>
| |
| </ol>
| |
| |
| |
| <ol type="a">
| |
| <li>this</li>
| |
| <li>list</li>
| |
| <li>uses</li>
| |
| <li>letters</li>
| |
| <li>as</li>
| |
| <li>indexes</li>
| |
| </ol>
| |
| |-
| |
| |<ol start="10">
| |
| <li>this</li>
| |
| <li>list</li>
| |
| <li>starts</li>
| |
| <li>from</li>
| |
| <li>10</li>
| |
| </ol>
| |
| |
| |
| <ol start="10">
| |
| <li>this</li>
| |
| <li>list</li>
| |
| <li>starts</li>
| |
| <li>from</li>
| |
| <li>10</li>
| |
| </ol>
| |
| |-
| |
| |<ol type="I" start="50">
| |
| <li>this</li>
| |
| <li>list</li>
| |
| <li>uses</li>
| |
| <li>roman</li>
| |
| <li>numerals</li>
| |
| <li>and</li>
| |
| <li>starts</li>
| |
| <li>from</li>
| |
| <li>50</li>
| |
| </ol>
| |
| |
| |
| <ol type="I" start="50">
| |
| <li>this</li>
| |
| <li>list</li>
| |
| <li>uses</li>
| |
| <li>roman</li>
| |
| <li>numerals</li>
| |
| <li>and</li>
| |
| <li>starts</li>
| |
| <li>from</li>
| |
| <li>50</li>
| |
| </ol>
| |
| |}
| |
| Valid values for the list type are:
| |
| *1 (default, numbers)
| |
| *a (lowercase [[Wikipedia:Latin letters|latin letters]])
| |
| *A (uppercase latin letters)
| |
| *i (lowercase [[Wikipedia:Roman numberals|roman numerals]])
| |
| *I (uppercase roman numerals)
| |
| The start value <i>can</i> be negative, but only if the list uses numbers as indexes. Otherwise, bizarre results are achieved.
| |
| {| class="wikitable"
| |
| ! Wikitext
| |
| ! Appearance
| |
| |-
| |
| |<ol type="a" start="-2">
| |
| <li>definitely</li>
| |
| <li><b>not</b></li>
| |
| <li>a</li>
| |
| <li>good</li>
| |
| <li>idea!</li>
| |
| </ol>
| |
| |
| |
| <ol type="a" start="-2">
| |
| <li>definitely</li>
| |
| <li><b>not</b></li>
| |
| <li>a</li>
| |
| <li>good</li>
| |
| <li>idea!</li>
| |
| </ol>
| |
| |}
| |
|
| |
|
| === Description (definition, association) lists === | | === Description (definition, association) lists === |