Template:TableList/doc
This template creates a simple unordered list intended for use in table cells.
Compared to other commonly-used ways to format table cells, it provides more spacing between items than using <br/>
and more compact spacing than using <p>
and both more compact and more consistent spacing than using line breaks.
Comparison[edit]
{{TableList}} | <br/>
|
<p></p>
|
<p/>
|
Line breaks |
---|---|---|---|---|
|
Item 1 Item 2 Item 3 |
Item 1 Item 2 Item 3 |
Item 1 Item 2 Item 3 |
Item 1
Item 2 Item 3 |
Usage[edit]
This template takes positional arguments and one optional named parameter, length
.
The first list items will be the positional arguments in the provided order. If length
is given and is larger than the number of positional arguments, the list will be padded until there are length
items.
Example[edit]
{| class="article-table" |{{TableList|Item 1|Item 2|Item 3|Item 4}} |{{TableList|length = 4|Item 1|Item 2}} |}
Column 1 | Column 2 |
---|---|
|
|
Creates a standardized unordered list of items for use in table cells
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | no description | Unknown | suggested |
2 | 2 | no description | Unknown | suggested |
3 | 3 | no description | Unknown | optional |
4 | 4 | no description | Unknown | optional |
5 | 5 | no description | Unknown | optional |