Template:Lang is used to store and format lists. Its way of formatting lists is in columns, which can be pre-defined, or determined by stating how many items per column should be listed. Columns automatically contain an equal amount of items, while the last one may take less if the amount is indivisible.

The template supports both <ol> (#) and <ul> (*) lists, or instead a specific list style type can be set.

Lists can start from a specificed offset, have the numbers count in reverse order, and increase/decrease by a step each time.

For the mobile display, lists always display in a single column.

This template depends on Module:List
This template uses Lua. To make adjustments to this template, edit the module page.

Mobile display

List displays in a single column.

Usage

{{List
|A
|B
|C
|cols=
|percol=
|type=
|start=
|reversed=
|decimal=
}}

Paramters

Required

<unnamed>

All unnamed parameters are items in the list.

Optional

cols
(default: "1" )

Number of columns to divide list into. Calculated based on items and number per column if percol is used instead.

Optional

percol

Number of list items per column. Calculated based on items and columns if cols used instead.

Optional

type
(default: "ul" )

Defines the appearance of the bullets when taking a list-style-type value, ol or ul, # or *, br. ol and # use the default numbered list, ul and * use the default bulleted list. br displays no bullets and removes margins (giving the appearance of a text list delimited with <br>).

Optional

start
(default: "1" )

Defines the number to start counting from. If reversed is true but no start is set, then 1 will be the last value.

Optional

reversed

Enter true to reverse the number order.

Optional

step
(default: "1" )

The number increase between one item and the next. While the value does not have to be an integer, the displayed value will be rounded down to an integer.

Examples

Basic
{{List
|A
|B
|C
|D
|E
}}
  • A
  • B
  • C
  • D
  • E
With cols set
{{List|cols=3
|A
|B
|C
|D
|E
}}
  • A
  • B
  • C
  • D
  • E
With percol set
{{List|percol=3
|A
|B
|C
|D
|E
}}
  • A
  • B
  • C
  • D
  • E
With # type set
{{List|cols=3|type=#
|A
|B
|C
|D
|E
}}
  1. A
  2. B
  1. C
  2. D
  1. E
With list-style-type type set
{{List|cols=3|type=lower-roman
|A
|B
|C
|D
|E
}}
  1. A
  2. B
  1. C
  2. D
  1. E
With br type set
{{List|cols=3|type=br
|A
|B
|C
|D
|E
}}
  • A
  • B
  • C
  • D
  • E


With start set
{{List|cols=3|type=#|start=20
|A
|B
|C
|D
|E
}}
  1. A
  2. B
  1. C
  2. D
  1. E
With reversed set
{{List|cols=3|type=#|reversed=true
|A
|B
|C
|D
|E
}}
  1. A
  2. B
  1. C
  2. D
  1. E
With reversed and start set
{{List|cols=3|type=#|reversed=true|start=10
|A
|B
|C
|D
|E
}}
  1. A
  2. B
  1. C
  2. D
  1. E
With step set
{{List|cols=3|type=#|step=2
|A
|B
|C
|D
|E
}}
  1. A
  2. B
  1. C
  2. D
  1. E
With step set to a decimal
{{List|cols=3|type=#|step=0.5
|A
|B
|C
|D
|E
}}
  1. A
  2. B
  1. C
  2. D
  1. E
With reversed and step set
{{List|cols=3|type=#|reversed=true|step=2
|A
|B
|C
|D
|E
}}
  1. A
  2. B
  1. C
  2. D
  1. E

Technical

Requires the following CSS:

.multicolumn { display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%; align-items: flex-start; }

.multicolumn > * { max-width: 445px; min-width: 130px; display: inline-block; vertical-align: top; margin-right: auto; flex-basis: auto; }
Community content is available under CC-BY-SA unless otherwise noted.