FANDOM


Version

List v2.2.4 22:51, August 16, 2019 (UTC)

Description

This template can 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.

Dependencies

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; }

Mobile display

List displays in a single column.

Usage

Properties

cols
Value: integer
Default: 1
Number of columns to divide list into. Calculated based on items and number per column if percol used instead.
percol
Value: integer
Default: not used
Number of list items per column. Calculated based on items and columns if cols used instead.
type
Value: {list-style-type} value, ol or ul, # or *, br
Default: ul
Defines the appearance of the bullets. 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/>).
start
Value: integer
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.
reversed
Value: true
Default: not used
Reverses number order.
step
Value: decimal
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.

Arguments

The arguments are the list items in order of display.

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
Community content is available under CC-BY-SA unless otherwise noted.