• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Grid list

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentationviewedithistorypurge
This template uses Lua:
  • Module:List (sandbox)
CSSThis template uses TemplateStyles:
  • Template:Grid list/styles.css[e]

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
  • foo
  • bar
  • baz
  • qux
  • quux
{{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}}.
The above documentation is transcluded from Template:Grid list/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Grid_list&oldid=1354676220"