Template:Grid list/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab. Grid list is for when you want your list to be in a grid, "oriented" from left to right, then top to bottom.

{{sidebar
|content1={{Grid list|columns=2|foo|bar|baz|qux|quux}}
}}

Parameters

[edit source]
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 source]
{{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}}.