Module:List/doc

From CCDirectLink

This is the documentation page for Module:List

List template. Based on MediaWiki List Module

About

Creates a list in an specified format.

Parameter

Do not use named parameter for 1 ... x. The first Parameter will be automatically marked as 1, the second as 2 and so on.

Parameter Description Type Status
listType 1 List type

Default: NULL

Example:

{{#invoke:list|bulleted|a|b|c}}
  • a
  • b
  • c
{{#invoke:list|unbulleted|a|b|c}}
  • a
  • b
  • c
{{#invoke:list|horizontal|a|b|c}}
  • a
  • b
  • c
{{#invoke:list|ordered|a|b|c}}
  1. a
  2. b
  3. c
{{#invoke:list|horizontal_ordered|a|b|c}}
  1. a
  2. b
  3. c
[ "bulleted" | "unbulleted" | "horizontal" | "ordered" | "horizontal_ordered" ] Required
listEntries 2...x List entries

Default: NULL

Example: no example

WikiCode Optional
olStart start Start entry.
<ol start="">
MDN (ol). Requires listType [ "ordered" | "horizontal_ordered" ]

Default: 1

Example:

{{#invoke:list|ordered|a|b|c|start=5}}
  1. a
  2. b
  3. c
{{#invoke:list|ordered|a|b|c|start=-5}}
  1. a
  2. b
  3. c
SignedNumber Optional
olType type Ordered list type.
<ol type="">
MDN (ol). Requires listType [ "ordered" | "horizontal_ordered" ]. It's recommended to use style,class or param list_style_type instead

Default: 1

Example:

{{#invoke:list|ordered|a|b|c|type=i}}
  1. a
  2. b
  3. c
{{#invoke:list|ordered|a|b|c|type=a}}
  1. a
  2. b
  3. c
[ "1" | "a" | "A" | "i" | "I" ] Optional
cssType list_style_type Recommended list style type. Uses the css attribute list-style-type

Default: NULL

Example:

{{#invoke:list|ordered|a|b|c|list_style_type=lower-alpha}}
  1. a
  2. b
  3. c
{{#invoke:list|ordered|a|b|c|list_style_type=lower-greek}}
  1. a
  2. b
  3. c
{{#invoke:list|ordered|a|b|c|list_style_type=decimal-leading-zero}}
  1. a
  2. b
  3. c
MDN (list-style-type) Optional
divClass class class attribute for the
<div>...</div>
surrounding the list

Default: NULL

Example: no example

String Optional
divStyle style style attribute for the
<div>...</div>
surrounding the list

Default: NULL

Example: no example

String Optional
listStyle list_style style attribute for the list

Default: NULL

Example: no example

String Optional
itemStyle item_style style attribute for the list items

Default: NULL

Example: no example

String Optional
itemXStyle item1_style...itemX_style style attribute for item x in list

Default: NULL

Example: no example

String Optional
itemXValue item1_value...itemX_value value attribute for item x in list

Default: NULL

Example: no example

String Optional
listIndent indent Set margin-left for list (intent * 1.6 em)

Default: NULL

Example: no example

String Optional

See Template:TemplateData and Template:TemplateData/entry for more information about the parameter list and DDNCode for more information about types and the DDN Notation

Examples

  • First item
  • Second item
  • Third item
{{#invoke:list|bulleted|First item|Second item|Third item|item1_style=background-color:yellow;|item2_style=background-color:silver;color:black;}}