Template:Grid list/doc
Appearance
![]() | This is a documentation subpage for Template:Grid list. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template uses Lua: |
![]() | This template uses TemplateStyles: |
Grid list is for when you want your list to be in a grid, "oriented" from left to right, then top to bottom.
Usage
[edit]
|
{{sidebar |content1={{Grid list|columns=2|foo|bar|baz|qux|quux}} }}
Parameters
[edit]n
- Item to place in the list
columns
- Number of columns. Required parameter to get any columns. Works only above 640px (width constraint is for mobile support). Currently only works with the value 2. "Automatic" columns may be supported at some point, see CSS tricks, so extending this too much probably doesn't make a ton of sense.
Difference from other templates
[edit]- {{aligned table}}
- Use when a table is the semantic you want to provide (such as in {{History of Chad}}). See also WP:ACCESS.
- {{div col}}
- Use when you want the items to proceed top to bottom then left to right.
- {{flex list}}
- Use when you don't really care how many end up in a row. See also basically any other Module:List template as found at {{HTML lists}}.