谷氨酸是什么| 西打酒是什么意思| 骨折挂什么科| 反洗钱是什么意思| 急性肠胃炎有什么症状| 绿色痰液是什么感染| 牙齿过敏吃什么药| 梦见死人和棺材预示着什么| 余沧海为什么是两个人| 逍遥丸适合什么人吃| 马黛茶什么味道| 6月17日是什么星座| 轴重是什么意思| 情调是什么意思| 后羿和嫦娥是什么关系| 圣诞节送女生什么礼物好| 嫡庶是什么意思| 晚上难以入睡是什么原因| 暴饮暴食是什么意思| 什么是纳囊| 什么人容易得间质瘤| 非洲人一日三餐吃什么| 口苦吃什么药好| 天天晚上睡觉做梦是什么原因| 莲花什么时候开| 阴阳失调是什么意思| 黑彩是什么| 一条什么| 近视散光是什么意思| 女人喝黄酒有什么好处| 痣是什么| 滋阴是什么意思| 29是什么生肖| 杜甫自号什么| 最高位是什么位| 去香港澳门需要什么证件| 伤口用什么消毒| 左脸上长痘痘是什么原因| 怕空调冷风什么原因| 为什么会有肾结石| 小孩为什么发烧| 牙神经挑了为什么还疼| 身体缺钾会有什么症状| 姓蓝的是什么民族| 酸奶有什么好处| 日光浴是什么意思| 医生会诊是什么意思| 周杰伦什么病| 大运什么意思| 跳大神什么意思| 骨头属于什么垃圾| r级电影是什么意思| 什么叫开门见床头| 鬼畜什么意思| 脾肾阳虚吃什么药| 脾胃虚弱吃什么蔬菜| 女人脑供血不足吃什么| 姐姐的小孩叫什么| 年金是什么意思| tb是什么意思啊| 假冒警察什么罪怎么判| 鸡头米什么时候上市| 什么茶助眠| 什么察秋毫| 清宫后可以吃什么水果| 什么样的人容易高原反应| 肝气虚吃什么中成药| 1975属什么生肖| 局方是什么意思| 查雌激素挂什么科| 镁偏高是什么原因| 早泄有什么办法| 维生素b6主治什么| 容易长口腔溃疡是什么原因| 血压高可以吃什么水果| 3月25日是什么星座| 怀女儿有什么症状| 逆钟向转位是什么意思| 什么的跑步| 衣原体感染用什么药| 结婚10周年是什么婚| 什么的松树| 带状疱疹什么样子| 梅干菜是什么菜做的| 势利是什么意思| 尿潜血是什么病| 喝莓茶对身体有什么好处| 黑色裤子配什么颜色t恤| 康庄大道什么意思| 不排大便是什么原因| 手不自主颤抖是什么病| 饱和脂肪酸是什么意思| 首重是什么意思| 转氨酶是什么| p是什么意思医学| 胃镜是什么| 邋遢什么意思| 刘强东开什么车| 紫外线过敏什么症状| 干涉是什么意思| 蹲久了站起来头晕是什么原因| 火气旺盛有什么症状| 肚子左边疼是什么原因| 骨头属于什么垃圾| 眼白发黄是什么原因| 脚底疼是什么原因| 脱氢酶高是什么原因| 射手座和什么座最配| 吃什么食物最补血| 1800年是什么年| 穷极一生是什么意思| 舒肝健胃丸治什么病| 开什么节什么的成语| 阴骘是什么意思| 甲状腺结节有什么感觉| 肚子受凉吃什么药| 甲减是什么原因引起的| 忌作灶是什么意思| 陈皮泡水喝有什么功效和作用| 暮光是什么意思| 春运是什么意思| 米非司酮片是什么药| 6月28号是什么星座| 什么时间量血压最准| 过敏性紫癜有什么危害| 七月三十是什么星座| 大便干燥一粒一粒的吃什么药| 百合和拉拉有什么区别| 颜色什么| 二月什么座| 右肋下疼痛是什么原因| 夏天适合种什么植物| 良人是什么意思| 肾气不固吃什么中成药| 膝盖骨质增生用什么药效果好| 氰化钾是什么| 芈姝结局是什么| 什么叫韵母| 宝宝便秘吃什么好| 经常吃秋葵有什么好处| 铁锈用什么能洗掉| panerai是什么牌子| 阴道细菌感染用什么药| 小便很臭是什么原因| 舌头有齿痕吃什么药| 心五行属性是什么| 游戏黑洞是什么意思| 48年属什么生肖| 麻醉学学什么| 查生育能力挂什么科| 两个土念什么| 肠胃出血有什么症状| 1月21号是什么星座| 仓鼠和老鼠有什么区别| 追什么| 得了肠息肉有什么症状| 肿瘤患者吃什么药可以抑制肿瘤| 孕妇梦见蛇代表什么| 做梦孩子死了什么预兆| 看脚挂什么科| 尿频尿多吃什么药好| 内痔疮吃什么药最好| 平面模特是做什么的| 梦见网鱼是什么征兆| 专注力是什么意思| 东北方向五行属什么| 4.12是什么星座| 肚子特别疼是什么原因| tab是什么意思| blingbling什么意思| 管教有方是什么意思| 本科是什么| 琴代表什么生肖| 晚上八点到九点是什么时辰| loc是什么意思| 窦性心律不齐是什么原因引起的| 车前草有什么功效和作用| 后壁和前壁有什么区别| 送终是什么意思| 三十而立四十不惑什么意思| 心率低有什么危害| 舌头辣辣的是什么原因| 早上6点半是什么时辰| 拉肚子不能吃什么食物| 小孩子发烧抽搐是什么原因| 阴阳失调吃什么中成药| 淘宝什么时候有活动| 上大号出血是什么原因| 宋五行属什么| 天生丽质什么意思| 胃黏膜病变是什么意思| 容易紧张是什么原因| 成王败寇什么意思| 倒打一耙的前一句是什么| 村居是什么意思| 苦瓜干泡水喝有什么功效| aone是什么牌子| 风向是指风什么的方向| 高干文是什么意思| 1949属什么生肖| 属蛇的是什么星座| 坐飞机需要什么| 感冒头晕吃什么药| 酸菜鱼一般用什么鱼| 外阴有白色的东西是什么| 为什么不能在床上打坐| hc是胎儿的什么意思| 净字五行属什么| 心包积液是什么意思| 豁出去了什么意思| 狒狒是什么动物| 1932年属什么生肖| animals什么意思| 怀孕吃什么水果好对胎儿好| 胎神是什么意思| 黑今读什么| 儿童淋巴结肿大挂什么科| 耳朵里面疼什么原因| ag是什么意思| 花心大萝卜是什么意思| 数字化摄影dr是检查什么| 什么地方看到的月亮最大| 陈百强属什么生肖| 什么是认知障碍| thx是什么意思| 壮阳是什么意思| 猴子喜欢吃什么食物| 角膜炎吃什么药| 姜茶什么时候喝最好| 什么叫窝沟封闭| 阴茎供血不足吃什么药| 伤官配印是什么意思| 人和是什么意思| 9月6日什么星座| 秋天的落叶像什么| 相对是什么意思| 什么异思迁| 窗口是什么意思| 看甲状腺挂什么科| 董承和董卓什么关系| 氨曲南是什么药| 卡马西平片是什么药| 水对什么| 一岁宝宝口臭是什么原因引起的| 捞女是什么意思| 什么是消炎药| 宫腔内囊性回声是什么意思| 一九八七年属什么生肖| 燥热是什么意思| 拉肚子吃什么药最好| 烂大街是什么意思| 例假期间吃什么好| 口若悬什么| 什么流淌| 十二指肠霜斑样溃疡是什么意思| 磷脂是什么| 咳嗽两个月了一直不好是什么原因| 吐槽是什么意思啊| 五音是什么| 拉肚子拉出血是什么原因| 属鼠是什么命| 口腔长期溃疡是什么原因引起的| 原生家庭什么意思| 蝗虫吃什么| 百度

《中国梦》交响乐版英国伦敦全球首演获好评

百度 这些来自人大代表、专家学者、基层群众和各有关方面的意见,不仅体现了民主精神,也体现在了《监察法》的最后定稿中。

This help page explains how to create and format lists on the English Wikipedia.

List basics

edit

There are three types of lists: unordered lists, ordered lists, and description lists (a.k.a. definition lists or association lists). In the following sections, various list types are used for different examples, but other list types will generally give corresponding results. Ordered (numbered) lists should usually be used only for list items that should be in a specific order, such as steps in a cooking recipe.

Unordered lists
Markup Renders as
* 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 newline
* in a list
marks the end of the list. Of course
* you can
* start again.
  • A newline
  • in a list

marks the end of the list. Of course

  • you can
  • start again.

Ordered lists
Markup Renders as
# Numbered lists are good
## very organized
## easy to follow
  1. Numbered lists are good
    1. very organized
    2. easy to follow

Description lists
Markup Renders as
Description (definition, association) lists:
; Term : Description
or
; Term
: Description
Can be used for more than terms and definitions ''per se''.
or
; Term
: Description Line 1
: Description Line 2

Description (definition, association) lists:

Term
Description

or

Term
Description

Can be used for more than terms and definitions per se. or

Term
Description Line 1
Description Line 2
Mixed lists
Markup Renders as
* Or create mixed lists
*# and nest them
*#* like this.
*#*; Fruits
*#*: Apple
*#*: Blueberry
  • Or create mixed lists
    1. and nest them
      • like this.
        Fruits
        Apple
        Blueberry
# A line break in an item is done with HTML<br/>like this.
# Just breaking the line will accidentally end the list
like this.
# This was supposed to be item 3, not a new list.
  1. A line break in an item is done with HTML
    like this.
  2. Just breaking the line will accidentally end the list

like this.

  1. This was supposed to be item 3, not a new list.
* A new paragraph in an item is also HTML.<p>Like so.</p>
* Same goes for<blockquote>"block quotations"</blockquote>like that.
* Note that these are done without line-breaking the wikimarkup.
  • A new paragraph in an item is also HTML.

    Like so.

  • Same goes for

    "block quotations"

    like that.
  • Note that these are done without line-breaking the wikimarkup.

Common mistakes

edit

There must be no blank lines between list items. Blank lines terminate a list, splitting it into two separate lists. This is most easily illustrated using an ordered list:

Markup Renders as
# This is the first item.
# This is the second item.
# This is the third item.
# This is the fourth item.
  1. This is the first item.
  2. This is the second item.
  3. This is the third item.
  4. This is the fourth item.
# This is the first item.
# This is the second item.

# This is the third item.
# This is the fourth item.
  1. This is the first item.
  2. This is the second item.
  1. This is the third item.
  2. This is the fourth item.

In the second example above, the numbering resets after the blank line. This problem is less noticeable with other list types, but it still affects the underlying HTML code and may have disruptive effects for some readers; see WP:LISTGAP for details.

In order to be a list, each line must begin the same way. This holds true for mixed lists.

Markup Renders as
# If you start with
# one type of list,
#; and then a sublist
#: of a different type,
#:* the list characters
# always go in order.
  1. If you start with
  2. one type of list,
    and then a sublist
    of a different type,
    • the list characters
  3. always go in order.
# If you reverse
# the order,
;# everything
:# gets
*:# thrown off
# and nothing matches up.
  1. If you reverse
  2. the order,
  1. everything
  2. gets
    1. thrown off
  1. and nothing matches up.

This mistake can also be less noticeable in some circumstances, but it creates single-item lists of different types; besides being semantically wrong, this may cause disruptive side effects for some readers.

Do not use a semicolon simply to give a list a title. Semicolons and colons make one kind of list; asterisks make another.

Markup Renders as
;Never do
*this
Never do
  • this

Paragraphs and other breaks

edit

All of the techniques described in this section can be used with each other and with any type of list, at any list level.

Paragraphs inside list items

edit

For simplicity, list items in pure wiki markup cannot be more complex than a basic paragraph. A line break in the wikimarkup of a list item will end not just the item but the entire list, and reset the counter on ordered lists. Separating unordered list items with blank lines may look approximately normal on-screen, but it creates many separate one-item lists, which is a problem for people using screen readers and is discouraged by the guideline on accessibility for people with disabilities, and is also problematic for machine analysis of the article, and for reuse of Wikipedia content more generally.

Paragraphs can be created inside list items by using the HTML <p>...</p> (paragraph) element around the second and subsequent paragraphs, with no line breaks in the wikimarkup:

Markup Renders as
# Paragraph 1.<p>Paragraph 2.</p><p>Paragraph 3.</p>
# Second item.
  1. Paragraph 1.

    Paragraph 2.

    Paragraph 3.

  2. Second item

Do not use <br> as a substitute for <p>...</p>; they have different semantics and are not interchangeable.

For code readability (the improvement is more apparent when the paragraphs are long, rather than with short examples like these), line-breaks may be created with HTML comments, <!-- ... -->, that begin on one line against the end of that line's code and end on another line, against the beginning of that line's code:

Markup Renders as
# Paragraph 1.<!--
 --><p>Paragraph 2.</p><!--
 --><p>Paragraph 3.</p>
# Second item.
  1. Paragraph 1.

    Paragraph 2.

    Paragraph 3.

  2. Second item.

This technique can be used with the other examples below.

Line breaks inside list items

edit

Use a single <br /> for a non-paragraph line break, e.g. where using a nested list is not desired because sub-items are already preceded by numbers:

Markup Renders as
# Gather ingredients:<br/>1{{frac|1|2}}&nbsp;tsp eye of newt (powdered)<br/>2 bat wings<br/>4&nbsp;cups mandrake root juice
# Stir in cauldron over low flame for 30 minutes
  1. Gather ingredients:
    11?2 tsp eye of newt (powdered)
    2 bat wings
    4 cups mandrake root juice
  2. Stir in cauldron over low flame for 30 minutes

This must be done with coded <br /> line breaks; an actual wikitext linebreak (i.e. pressing enter/return while writing the source code) will bring the list to an end.

Nested blocks inside list items

edit

Similar HTML usage can provide for block quotations within list items:

Markup Renders as
* Beginning of first item.<blockquote>A large quotation.</blockquote>Rest of first item.
* Second item.
  • Beginning of first item.

    A large quotation.

    Rest of first item.
  • Second item.

Another case like this is small nested code blocks:

Markup Renders as
The {{tnull|fnord}} template has two parameters:
# {{para|foo}} This indicates the ''foo'' level:<pre>{{fnord|foo=20}}</pre>
# {{para|bar}} This indicates...

The {{fnord}} template has two parameters:

  1. |foo= This indicates the foo level:
    {{fnord|foo=20}}
  2. |bar= This indicates...

Here, linebreaks still cannot occur inside the list item, even if they are inside <pre>, and the HTML comment trick does not work inside <pre>, which is why this technique is only suitable for short code examples. For longer ones, see the <syntaxhighlight> MediaWiki tag.

The HTML comment trick does work between elements inside the same list item:

Markup Renders as
* Beginning of first item.<!--
--><blockquote>A large quotation.</blockquote><!--
-->Rest of first item.
* Second item.
  • Beginning of first item.

    A large quotation.

    Rest of first item.
  • Second item.

Continuing a list item after a sub-item

edit

Unlike in HTML, in wikimarkup, unfortunately, sublists follow the same rules as sections of a page. In other words a list item cannot continue on again after sublist has started. Instead, a new item (or new list) must start.

This makes the following type of example impossible using only wikimarkup (whether using numbered or bulleted lists, or a combination):

  1. The first item in a list
  2. Another list item, with a subsection:
    • subitem 1
    • subitem 2
    continuing on with the second item
    further text in list item 2
  3. List Item 3

For single lists with multiple subitems / indentation levels, one can either use HTML tags directly, or the {{ordered list}} and/or {{bulleted list}} templates. The HTML tag for an unordered (bulleted) list is <ul> and for an ordered (numbered) list is <ol>, both enumerate each new list item using the <li> tag. For complex lists, use of the templates is usually recommended.

Attempting to produce a single multilayered list using wikimarkup will instead result in the software attempting to create multiple, nested lists, which generally results in visually confusing formatting and/or breaking list numbering, as well as breaking functionality for users of screen readers for the visually impaired.

For a bulleted list, this limitation can be somewhat worked around by splitting every item into a new list; and using indented text where necessary. However this is still not recommended. With numbered lists this approach will break the numbering.

Markup Renders as
<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
    1. list item B1
    2. list item B2
    continuing list item A1
  2. list item A2
{{ordered list
  | list item A1 {{ordered list
       | 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
# 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? <<< appears out of allignment
  2. list item A2

The last of these is visually confusing and results in invalid markup. It caused the creation of an embedded but improperly formed description list (the <dl> HTML element): it has a definition, indicated by : (in HTML that's <dd>), but no term (the missing ; element, which corresponds to HTML <dt>). Similar problems occur with bulleted and mixed bulleted/numbered lists:

Markup Renders as
<ol>
  <li>list item A1
    <ul>
      <li>list item B1</li>
      <li>list item B2</li>
    </ul>continuing list item A1
  </li>
  <li>list item A2</li>
</ol>
  1. list item A1
    • list item B1
    • list item B2
    continuing list item A1
  2. list item A2
{{ordered list
  | list item A1 {{unordered list
       | list item B1 
       | list item B2 
    }} continuing list item A1
  | list item A2
}}
  1. list item A1
    • list item B1
    • list item B2
    continuing list item A1
  2. list item A2
# list item A1
## list item B1
## list item B2
#: continuing list item A1?
# list item A2
  1. list item A1
    • list item B1
    • list item B2
    continuing list item A1? <<< appears out of allignment
  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:

Markup Renders as
<ol>
  <li>list item A1
    <ol>
      <li>list item B1
        <ol>
          <li>list item C1
        </ol>continuing list item B1
      </li>
      <li>list item B2</li>
    </ol>
  </li>
  <li>list item A2</li>
</ol>
  1. list item A1
    1. list item B1
      1. list item C1
      continuing list item B1
    2. list item B2
  2. list item A2
{{ordered list
  | list item A1 {{ordered list
       | list item B1 {{ordered list
         | list item C1
       }} continuing list item B1
       | list item B2 
    }}
  | list item A2
}}
  1. list item A1
    1. list item B1
      1. list item C1
      continuing list item B1
    2. list item B2
  2. list item A2
# list item A1
## list item B1
### list item C1
##: continuing list item B1?
## list item B2
# list item A2
  1. list item A1
    1. list item B1
      1. list item C1
      continuing list item B1?
    2. list item B2
  2. list item A2

Again, the third example is not desirable, as it produces broken markup and is visually confusing anyway.

See also meta:Template:List demo.

Spacing between items

edit

For an ordered list with items that are more than one paragraph long, using the HTML comment trick mentioned above to add a blank line between items in the wikicode may be necessary to avoid editor confusion. This is done with a commented-out line:

# First item<!--
                                                 -->
# Second item

This doesn't produce unwanted visible spacing or bad list code in the rendered page like adding a plain blank line would:

  1. First item
  2. Second item

The comment must begin on the same line on which the preceding item ends, and the comment must end on its own line.

Wrong:

# First item
<!--
                                                -->
# Second item

Wrong:

# First item
<!--

-->#Second item

If the rendered text has a readability problem due to complex list items, or for some other reason space is desired between list items, simply add a pair of explicit HTML line-breaks to the end of the list items:

# Item 1<br/><br/>
# Item 2<br/><br/>

gives

  1. Item 1

  2. Item 2

Compare the version without the spacing:

  1. Item 1
  2. Item 2

Changing the list type

edit

The list type (which type of marker appears before the list item) can be changed in CSS by setting the list-style-type property. This can be done using the {{Ordered list}} template:

Markup Renders as
{{ordered list|type=lower-roman
  | About the author
  | Foreword to the first edition
  | Foreword to the second edition
}}
  1. About the author
  2. Foreword to the first edition
  3. Foreword to the second edition

Or, using HTML:

Markup Renders as
<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

edit

In a numbered list in a large font, some browsers do not show more than two digits (2 spaces width) of indentation, unless extra indentation is applied (if there are multiple columns: for each column). This is fixed by increasing the default indentation of 3.2em by 2em more, and it can be done in multiple ways:

When using explicit HTML <li> list items, use an explicit CSS margin spacing of 4em to double the default 2em spacing. Though not the simplest, this is the cleanest and most versatile method, as it does not rely on any peculiarities of the parser, nor on abusing any semantic markup for purely visual purposes. It allows starting with a number other than 1 (see below). It is the recommended method for complex lists.

Markup Renders as
<ol style="margin-left: 5.2em;">
  <li>abc</li>
  <li>def</li>
  <li>ghi</li>
</ol>
  1. abc
  2. def
  3. ghi
{{ordered list|style=margin-left: 2em
  | abc
  | def
  | ghi
}}
  1. abc
  2. def
  3. ghi

The parser translates an ordered list, <ol>, without any list items, <li> (in this case, it contains just another <ol>) into a <div> with a style="margin-left: 2em;", causing indentation of the contents. This is a versatile but potentially confusing method, as it allows starting with a number other than 1 (see below). It is kludgey, unnecessarily complex, and looks like invalid HTML. While the parser corrects it on-the-fly, only MediaWiki experts know this, with the result that other editors are likely to try to "correct" it by removing what looks like redundant <ol> code.

Markup Renders as
<ol>
  <ol>
    <li>abc</li>
    <li>def</li>
    <li>ghi</li>
  </ol>
</ol>
    1. abc
    2. def
    3. ghi

Just put an explicit HTML <ol>...</ol> around wiki-markup list items. It functions the same as the previous example with the content of the "ordered 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 simplest method, and recommended when starting a simple list with number 1.

Markup Renders as
<ol>
# abc
# def
# ghi
</ol>
    1. abc
    2. def
    3. ghi

A list of one or more lines starting with a colon creates an HTML5 description list (formerly definition list in HTML4 and association list in draft HTML5), without terms to be defined/described/associated, but with the items as descriptions/definitions/associations, 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 description/definition, so the whole list is indented.

Deprecated method: The technique below produces poorly formed (though technically DTD-validating) markup and abuses the semantic HTML purpose of description lists for a purely visual effect, and is thus a usability and accessibility problem. It will work in a hurry, but should be replaced with cleaner code; see WP:Manual of Style/Glossaries for several approaches.

Markup Renders as
:# abc
:# def
:# ghi
 
  1. abc
  2. def
  3. ghi

Specifying a starting value

edit

Specifying a starting value is possible with the {{ordered list}} template by using the start and value attributes.

Markup Renders as
{{ordered list|start=9
| Amsterdam
| Rotterdam
| The Hague
}}
  1. Amsterdam
  2. Rotterdam
  3. The Hague

Or:

Markup Renders as
{{ordered list
| item1_value=9 | 1 = Amsterdam
| item2_value=8 | 2 = Rotterdam
| item3_value=7 | 3 = The Hague
}}
  1. Amsterdam
  2. Rotterdam
  3. The Hague

Alternatively, only the list item whose value is being set needs to be written in HTML, the rest of the list may use wiki syntax:

Markup Renders as
# <li value="9">Amsterdam</li>
# Rotterdam
# The Hague
  1. Amsterdam
  2. Rotterdam
  3. The Hague

This does not work inside <ol>...</ol>.

Comparison with a table

edit

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

{|
|-
| style="text-align: right" |  9. || Amsterdam
|-
| style="text-align: right" | 10. || Rotterdam
|-
| style="text-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 lists

edit

Wrap a list in {{Columns-list}} to add columns.

This setup also works with numbered lists.

{{columns-list}} is the general solution. You can combine it with any other type of list formatting, including but not limited to every type of list syntax mentioned on this page. It works with content that are not lists as well.

Streamlined style or horizontal style

edit

It is also possible to present short lists using very basic formatting, such as:

''Title of list:'' example 1, example 2, example 3

Title of list: example 1, example 2, example 3

This style requires less space on the page, and is preferred if there are only a few entries in the list, it can be read easily, and a direct edit point is not required. The list items should start with a lowercase letter unless they are proper nouns.

See also WP:HLIST.

Tables

edit

A one-column table is very similar to a list, but it allows sorting. If the wikitext itself is already sorted with the same sortkey, this advantage does not apply. A multiple-column table allows sorting on any column.

See also Help:Table.

Interaction with floating elements

edit

List bullets and numbers can sometimes overlap left-floating images, and indented lines may not appear correctly when next to left-floating images. For example:

Markup Renders as
[[File:Westminstpalace.jpg|left|thumb|100px]]
<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
    1. list item B1
    2. list item B2
    continuing list item A1
  2. list item A2
[[File:Westminstpalace.jpg|left|thumb|100px]]
First line
:Second line
::Third line
:::Fourth line
 

First line

Second line
Third line
Fourth line

The {{flowlist}} template enables lists to stay clear of these left-floating objects:

[[File:Westminstpalace.jpg|left|thumb|100px]]
{{flowlist}}
  <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>
{{endflowlist}}

{{flowlist}}
First line
:Second line
::Third line
:::Fourth line
{{endflowlist}}

Renders as:

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

First line

Second line
Third line
Fourth line

This method will not work inside of a table, and if your list is longer than the floated element, then the list will not flow around the image like normal, but instead be one block, leaving white space below the floated element.

Manipulating lists with user stylesheets

edit

Virtually anything about how lists are displayed can be customized at the user end with CSS. Some of the more useful tweaks are outlined below. Of course, you enter the code in Text Editor mode — if you enter it in WYSIWYG mode, it is entered using escape characters. Also, if you enter HTML in the Text Editor and switch to WYSIWYG mode, the HTML is lost and re-converted to markdown without styles.

Extra indentation

edit

As noted above, in a numbered list in a large font, some browsers do not show more than two digits of indentation width, unless extra indentation is applied (if there are multiple columns; then indentation for each column). While this should be fixed in the wikicode, user stylesheet CSS can work around the problem for as long as it is present, by increasing the default indentation of 3.2em by 2em more:

 ol { margin-left: 5.2em;}

Changing unordered lists to ordered ones

edit

With the following user style CSS, ul { list-style: decimal; }, unordered lists are changed to ordered ones for sighted users (but not users who must use assistive technology). This applies (as far as the CSS selector does not restrict this) to all ul-lists in the HTML source code:

  • those produced with *
  • those with <ul> in the wikitext
  • those produced by the system

Since each special page, like other pages, has a class based on the pagename, one can separately specify for each type whether the lists should be ordered, see Help:User contributions#User styles and Help:What links here#User styles.

However, it does not seem possible to make all page history lists ordered (unless one makes all lists ordered), because the class name is based on the page for which the history is viewed.

How to find entries for a list

edit

The easiest way to find relevant articles for a new list or missing entries in an existing one is by finding the most relevant category and checking its entries. Sometimes lists are about things that are intersections of categories for which the PetScan tool can be used.

More relevant articles may also be found linked in the list's topic's article and the articles already featured in the list ? most often in their "See also" sections (if existent) and the automatically suggested "RELATED ARTICLES" below them.

Other ways to find relevant articles include searching Wikipedia for the lists' topic and searching the Web for the topic in quotes " (with synonyms also in quotes and appended after an OR) and appending the word wiki or Wikipedia or site:Wikipedia.org to them.

Lastly the "What links here"-tool can be used on the list's topic's article to find relevant articles.

For lists that do not require the entries to have a Wikipedia article there are additional ways of finding relevant entries such as lists on external websites (e.g. Goodreads for books) ? typically involving Web searches.

See also

edit
12年义务教育什么时候实行 疝气什么症状 prc是什么意思 lee是什么牌子中文名 腹腔肠系膜淋巴结是什么病
端庄的意思是什么 ct检查是什么意思 肝功能看什么科室 用什么消肿最快 凉糕是什么做的
困境是什么意思 生菜有什么营养价值 什么叫静息心率 雄性激素过高是什么原因 被螨虫咬了非常痒用什么药膏好
茶寿为什么是108岁 韭黄和韭菜有什么区别 什么是气胸有什么症状 尿常规红细胞高是什么原因 类风湿吃什么药有效
什么国家的钱最值钱luyiluode.com 仪表堂堂是什么生肖hcv8jop5ns7r.cn 思前想后是什么意思hcv7jop9ns0r.cn 干戈指什么hcv8jop3ns8r.cn 头疼想吐是什么原因hcv9jop7ns1r.cn
雪芽是什么茶hcv9jop3ns6r.cn 淋巴细胞绝对值偏高是什么原因hcv8jop8ns6r.cn 低血糖会出现什么症状hcv9jop3ns6r.cn 月经来潮是什么意思hcv8jop7ns4r.cn 三个直念什么hcv8jop1ns8r.cn
码是什么单位hcv7jop6ns5r.cn OB什么意思hcv9jop1ns2r.cn 晕车药叫什么名字hcv8jop3ns6r.cn 脑炎是什么原因引起的hcv9jop3ns5r.cn 肌醇是什么东西hcv7jop9ns8r.cn
absolue是兰蔻的什么产品hcv8jop6ns4r.cn 血红蛋白浓度偏低是什么原因hcv8jop6ns7r.cn 计数单位是什么意思hcv7jop7ns3r.cn 苦瓜和什么不能一起吃hcv9jop4ns9r.cn 西兰花炒什么好吃ff14chat.com
百度