Template:Unbulleted indent list

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

This template is very similar to {{unbulleted list}}, except that it automatically indents parts of long items that are wrapped onto a new line. This makes it easier to tell apart multiple such items when width is limited—e.g. in an {{infobox}}—and eliminates the need for a bulleted list.

{{Unbulleted indent list}} provides a WCAG-compliant and accessible alternative to <br />-separated lists, per MOS:UBLIST and MOS:PLIST.

Example
First labelSome data
Awards
Second labelSome more data
{{Infobox
 |label1    = Some data
 |awards    = {{unbulleted indent list
   |[[Royal Geographical Society's Founder's Medal]] (1888)
   |[[Knight Commander of the Order of the Bath]] (1896)
   |[[Chevalier dans l'Ordre de la Légion d'Honneur]] (1899)
  }}
 |label2    = Some more data
}}

Custom indentation

编辑
Example
First labelSome data
Awards
Second labelSome more data
{{Infobox
 |label1    = Some data
 |awards    = {{unbulleted indent list|(保加利亚文)
   |[[Royal Geographical Society's Founder's Medal]] (1888)
   |[[Knight Commander of the Order of the Bath]] (1896)
   |[[Chevalier dans l'Ordre de la Légion d'Honneur]] (1899)
  }}
 |label2    = Some more data
}}

TemplateData

编辑
TemplateData documentation used by VisualEditor and other tools

Unbulleted indent list模板数据

An automatically indented unbulleted list variant.

模板参数[编辑模板数据]

参数描述类型状态
Content1

Every line should start with a pipe character.

内容必需
Classclass

Adds a CSS class to the containing div.

默认值
The class "plainlist" is always applied.
示例值
nowrap
字符串可选
Stylestyle

Adds CSS style options. Complex styles should not be used in articles—per [[WP:Deviations]]—but may be acceptable on user, project, and talk pages.

示例值
border:solid 1px silver; background:lightyellow;
字符串可选
Indentationin indent

Sets a custom indentation width for the lists' items.

默认值
1em
字符串可选

See also

编辑