List outputs various kinds of lists. It supports bulleted, unbulleted, horizontal, ordered, and horizontal ordered lists. It allows for easy css styling of the list or of the individual list items. Full documentation is available on Wikipedia.
Installation[]
- Install the Lua module:
- Install the CSS styles by copying the default styles to your MediaWiki:Common.css.
Usage[]
Basic usage[]
{{#invoke:List|function|first item|second item|third item|...}}
All parameters[]
{{#invoke:List|function
|first item|second item|third item|...
|start = start number for ordered lists
|list_style_type = type of marker for ordered lists (uses CSS)
|class = class
|style = style
|list_style = style for the list
|item_style = style for all list items
|item1_style = style for the first item |item2_style = style for the second item |...
|item1_value = value for the first item |item2_value = value for the second item |...
(for ordered lists only)
|indent = indent for horizontal lists
}}
Functions[]
| Function name | Produces | Example output |
|---|---|---|
bulleted
|
Bulleted lists |
|
unbulleted
|
Unbulleted lists |
|
horizontal
|
Horizontal bulleted lists |
|
ordered
|
Ordered lists (numbered lists and alphabetical lists) |
|
horizontal_ordered
|
Horizontal ordered lists |
|