Help:List demo

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

Demo for Help:List#Multi-column numbered lists to see that with 3 digits all are shown, with each of the three methods.

Extra indentation of lists[edit]

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). This can be done with CSS:

ol { margin-left: 2cm}

or alternatively, like below.

wikitext (partly) rendering comments
:#abc
:#def
:#ghi
 
  1. abc
  2. def
  3. ghi
  4. abc
  5. def
  6. ghi
  7. abc
  8. def
  9. ghi
  10. abc
  11. def
  12. ghi
  13. abc
  14. def
  15. ghi
  16. abc
  17. def
  18. ghi
  19. abc
  20. def
  21. ghi
  22. abc
  23. def
  24. ghi
  25. abc
  26. def
  27. ghi
  28. abc
  29. def
  30. ghi
  31. abc
  32. def
  33. ghi
  34. abc
  35. def
  36. ghi
  37. abc
  38. def
  39. ghi
  40. abc
  41. def
  42. ghi
  43. abc
  44. def
  45. ghi
  46. abc
  47. def
  48. ghi
  49. abc
  50. def
  51. ghi
  52. abc
  53. def
  54. ghi
  55. abc
  56. def
  57. ghi
  58. abc
  59. def
  60. ghi
  61. abc
  62. def
  63. ghi
  64. abc
  65. def
  66. ghi
  67. abc
  68. def
  69. ghi
  70. abc
  71. def
  72. ghi
  73. abc
  74. def
  75. ghi
  76. abc
  77. def
  78. ghi
  79. abc
  80. def
  81. ghi
  82. abc
  83. def
  84. ghi
  85. abc
  86. def
  87. ghi
  88. abc
  89. def
  90. ghi
  91. abc
  92. def
  93. ghi
  94. abc
  95. def
  96. ghi
  97. abc
  98. def
  99. ghi
  100. abc
  101. def
  102. ghi
  103. abc
  104. def
  105. ghi
  106. abc
  107. def
  108. ghi
  109. abc
  110. def
  111. ghi
  112. abc
  113. def
  114. ghi
  115. abc
  116. def
  117. ghi
  118. abc
  119. def
  120. ghi
  121. abc
  122. def
  123. ghi
  124. abc
  125. def
  126. ghi
  127. abc
  128. def
  129. ghi

The colon creates a definition list and puts the list in a definition description. This is semantically incorrect, but commonly used and usually does the job.

<ul>
  <ol>
    <li>abc</li>
    <li>def</li>
    <li>ghi</li>
  </ol>
</ul>

  1. abc
  2. def
  3. ghi
  4. abc
  5. def
  6. ghi
  7. abc
  8. def
  9. ghi
  10. abc
  11. def
  12. ghi
  13. abc
  14. def
  15. ghi
  16. abc
  17. def
  18. ghi
  19. abc
  20. def
  21. ghi
  22. abc
  23. def
  24. ghi
  25. abc
  26. def
  27. ghi
  28. abc
  29. def
  30. ghi
  31. abc
  32. def
  33. ghi
  34. abc
  35. def
  36. ghi
  37. abc
  38. def
  39. ghi
  40. abc
  41. def
  42. ghi
  43. abc
  44. def
  45. ghi
  46. abc
  47. def
  48. ghi
  49. abc
  50. def
  51. ghi
  52. abc
  53. def
  54. ghi
  55. abc
  56. def
  57. ghi
  58. abc
  59. def
  60. ghi
  61. abc
  62. def
  63. ghi
  64. abc
  65. def
  66. ghi
  67. abc
  68. def
  69. ghi
  70. abc
  71. def
  72. ghi
  73. abc
  74. def
  75. ghi
  76. abc
  77. def
  78. ghi
  79. abc
  80. def
  81. ghi
  82. abc
  83. def
  84. ghi
  85. abc
  86. def
  87. ghi
  88. abc
  89. def
  90. ghi
  91. abc
  92. def
  93. ghi
  94. abc
  95. def
  96. ghi
  97. abc
  98. def
  99. ghi
  100. abc
  101. def
  102. ghi
  103. abc
  104. def
  105. ghi
  106. abc
  107. def
  108. ghi
  109. abc
  110. def
  111. ghi
  112. abc
  113. def
  114. ghi
  115. abc
  116. def
  117. ghi
  118. abc
  119. def
  120. ghi
  121. abc
  122. def
  123. ghi
  124. abc
  125. def
  126. ghi
  127. abc
  128. def
  129. ghi
  130. abc
  131. def
  132. ghi
  133. abc
  134. def
  135. ghi
  136. abc
  137. def
  138. ghi
  139. abc
  140. def
  141. ghi
  142. abc
  143. def
  144. ghi
  145. abc
  146. def
  147. ghi
  148. abc
  149. def
  150. ghi
  151. abc
  152. def
  153. ghi
  154. abc
  155. def
  156. ghi
  157. abc
  158. def
  159. ghi
  160. abc
  161. def
  162. ghi
  163. abc
  164. def
  165. ghi
  166. abc
  167. def
  168. ghi
  169. abc
  170. def
  171. ghi
  172. abc
  173. def
  174. ghi

MediaWiki translates an unordered list (ul) without any list items (li) as an indentation and replaces them with a div with a style="margin-left: 2em".

<ul>
#abc
#def
#ghi
</ul>

  1. abc
  2. def
  3. ghi
  4. abc
  5. def
  6. ghi
  7. abc
  8. def
  9. ghi
  10. abc
  11. def
  12. ghi
  13. abc
  14. def
  15. ghi
  16. abc
  17. def
  18. ghi
  19. abc
  20. def
  21. ghi
  22. abc
  23. def
  24. ghi
  25. abc
  26. def
  27. ghi
  28. abc
  29. def
  30. ghi
  31. abc
  32. def
  33. ghi
  34. abc
  35. def
  36. ghi
  37. abc
  38. def
  39. ghi
  40. abc
  41. def
  42. ghi
  43. abc
  44. def
  45. ghi
  46. abc
  47. def
  48. ghi
  49. abc
  50. def
  51. ghi
  52. abc
  53. def
  54. ghi
  55. abc
  56. def
  57. ghi
  58. abc
  59. def
  60. ghi
  61. abc
  62. def
  63. ghi
  64. abc
  65. def
  66. ghi
  67. abc
  68. def
  69. ghi
  70. abc
  71. def
  72. ghi
  73. abc
  74. def
  75. ghi
  76. abc
  77. def
  78. ghi
  79. abc
  80. def
  81. ghi
  82. abc
  83. def
  84. ghi
  85. abc
  86. def
  87. ghi
  88. abc
  89. def
  90. ghi
  91. abc
  92. def
  93. ghi
  94. abc
  95. def
  96. ghi
  97. abc
  98. def
  99. ghi
  100. abc
  101. def
  102. ghi
  103. abc
  104. def
  105. ghi
  106. abc
  107. def
  108. ghi
  109. abc
  110. def
  111. ghi
  112. abc
  113. def
  114. ghi
  115. abc
  116. def
  117. ghi
  118. abc
  119. def
  120. ghi
  121. abc
  122. def
  123. ghi
  124. abc
  125. def
  126. ghi
  127. abc
  128. def
  129. ghi
  130. abc
  131. def
  132. ghi
  133. abc
  134. def
  135. ghi
  136. abc
  137. def
  138. ghi
  139. abc
  140. def
  141. ghi
  142. abc
  143. def
  144. ghi
  145. abc
  146. def
  147. ghi
  148. abc
  149. def
  150. ghi
  151. abc
  152. def
  153. ghi
  154. abc
  155. def
  156. ghi
  157. abc
  158. def
  159. ghi
  160. abc
  161. def
  162. ghi
  163. abc
  164. def
  165. ghi
  166. abc
  167. def
  168. ghi
  169. abc
  170. def
  171. ghi
  172. abc
  173. def
  174. ghi
  175. abc
  176. def
  177. ghi
  178. abc
  179. def
  180. ghi
  181. abc
  182. def
  183. ghi
  184. abc
  185. def
  186. ghi
  187. abc
  188. def
  189. ghi
  190. abc
  191. def
  192. ghi
  193. abc
  194. def
  195. ghi
  196. abc
  197. def
  198. ghi
  199. abc
  200. def
  201. ghi
  202. abc
  203. def
  204. ghi

Creates an identical markup to the equivalent HTML example. This is the recommended method.

Without extra indentation[edit]

  1. abc
  2. def
  3. ghi
  4. abc
  5. def
  6. ghi
  7. abc
  8. def
  9. ghi
  10. abc
  11. def
  12. ghi
  13. abc
  14. def
  15. ghi
  16. abc
  17. def
  18. ghi
  19. abc
  20. def
  21. ghi
  22. abc
  23. def
  24. ghi
  25. abc
  26. def
  27. ghi
  28. abc
  29. def
  30. ghi
  31. abc
  32. def
  33. ghi
  34. abc
  35. def
  36. ghi
  37. abc
  38. def
  39. ghi
  40. abc
  41. def
  42. ghi
  43. abc
  44. def
  45. ghi
  46. abc
  47. def
  48. ghi
  49. abc
  50. def
  51. ghi
  52. abc
  53. def
  54. ghi
  55. abc
  56. def
  57. ghi
  58. abc
  59. def
  60. ghi
  61. abc
  62. def
  63. ghi
  64. abc
  65. def
  66. ghi
  67. abc
  68. def
  69. ghi
  70. abc
  71. def
  72. ghi
  73. abc
  74. def
  75. ghi
  76. abc
  77. def
  78. ghi
  79. abc
  80. def
  81. ghi
  82. abc
  83. def
  84. ghi
  85. abc
  86. def
  87. ghi
  88. abc
  89. def
  90. ghi
  91. abc
  92. def
  93. ghi
  94. abc
  95. def
  96. ghi
  97. abc
  98. def
  99. ghi
  100. abc
  101. def
  102. ghi
  103. abc
  104. def
  105. ghi
  106. abc
  107. def
  108. ghi
  109. abc
  110. def
  111. ghi
  112. abc
  113. def
  114. ghi
  115. abc
  116. def
  117. ghi
  118. abc
  119. def
  120. ghi
  121. abc
  122. def
  123. ghi
  124. abc
  125. def
  126. ghi
  127. abc
  128. def
  129. ghi
  130. abc
  131. def
  132. ghi
  133. abc
  134. def
  135. ghi
  136. abc
  137. def
  138. ghi
  1. abc
  2. def
  3. ghi
  4. abc
  5. def
  6. ghi
  7. abc
  8. def
  9. ghi
  10. abc
  11. def
  12. ghi
  13. abc
  14. def
  15. ghi
  16. abc
  17. def
  18. ghi
  19. abc
  20. def
  21. ghi
  22. abc
  23. def
  24. ghi
  25. abc
  26. def
  27. ghi
  28. abc
  29. def
  30. ghi
  31. abc
  32. def
  33. ghi
  34. abc
  35. def
  36. ghi
  37. abc
  38. def
  39. ghi
  40. abc
  41. def
  42. ghi
  43. abc
  44. def
  45. ghi
  46. abc
  47. def
  48. ghi
  49. abc
  50. def
  51. ghi
  52. abc
  53. def
  54. ghi
  55. abc
  56. def
  57. ghi
  58. abc
  59. def
  60. ghi
  61. abc
  62. def
  63. ghi
  64. abc
  65. def
  66. ghi
  67. abc
  68. def
  69. ghi
  70. abc
  71. def
  72. ghi
  73. abc
  74. def
  75. ghi
  76. abc
  77. def
  78. ghi
  79. abc
  80. def
  81. ghi
  82. abc
  83. def
  84. ghi
  85. abc
  86. def
  87. ghi
  88. abc
  89. def
  90. ghi
  91. abc
  92. def
  93. ghi
  94. abc
  95. def
  96. ghi
  97. abc
  98. def
  99. ghi
  100. abc
  101. def
  102. ghi
  103. abc
  104. def
  105. ghi
  106. abc
  107. def
  108. ghi
  109. abc
  110. def
  111. ghi
  112. abc
  113. def
  114. ghi
  115. abc
  116. def
  117. ghi
  118. abc
  119. def
  120. ghi
  121. abc
  122. def
  123. ghi
  124. abc
  125. def
  126. ghi
  127. abc
  128. def
  129. ghi
  130. abc
  131. def
  132. ghi
  133. abc
  134. def
  135. ghi
  136. abc
  137. def
  138. ghi
  139. abc
  140. def
  141. ghi
  142. abc
  143. def
  144. ghi
  145. abc
  146. def
  147. ghi
  148. abc
  149. def
  150. ghi
  151. abc
  152. def
  153. ghi
  154. abc
  155. def
  156. ghi
  157. abc
  158. def
  159. ghi
  160. abc
  161. def
  162. ghi
  163. abc
  164. def
  165. ghi
  166. abc
  167. def
  168. ghi
  169. abc
  170. def
  171. ghi
  172. abc
  173. def
  174. ghi