Template:Flatlist/doc

From Weezerpedia

This template provides a WCAG/ISO-standards-compliant accessible alternative to comma- or dash- (or other single character-) separated lists, per WP:FLATLIST and MOS:HLIST.

Lists output by {{Flatlist}} and {{Hlist}} are semantically and visually identical, and differ only in the wiki-markup used to create the lists.

Usage

{{flatlist}} starts a horizontal list, such as:

  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig

For navigation boxes using {{navbox}}, one can set |listclass=hlist, and achieve the same styling without using this template. For image captions, list (i.e. asterisk) markup does not work, so consider using {{hlist}} instead.

Examples

{{flatlist|
* cat
* dog
* horse
* cow
* sheep
* pig
}}

produces:

  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig

Syntax for ordered lists

{{flatlist|
# first
# second
# third
# fourth
# fifth
# sixth
}}

produces:

  1. first
  2. second
  3. third
  4. fourth
  5. fifth
  6. sixth

Using optional parameters

{{flatlist |indent=2 
|style=border:solid 1px silver; background:lightyellow; 
|class=nowraplinks |
*''[[Alone: The Home Recordings of Rivers Cuomo]]'' (2007)
*''[[Alone II: The Home Recordings of Rivers Cuomo]]'' (2008)
*''[[Not Alone: Rivers Cuomo & Friends Live at Fingerprints]]'' (2009)
*''[[Alone III: The Pinkerton Years]]'' (2011)
*''[[Alone IV: The Blue-Pinkerton Years]]'' (2020)
*''[[Alone V: Before Weezer]]'' (2020)
*''[[Alone VI: The Black Room]]'' (2020)
*''[[Alone VII: The Green Years]]'' (2020)
*''[[Alone VIII: The Maladroit Years]]'' (2020)
*''[[Alone IX: The Make Believe Years]]'' (2020)
*''[[Alone X: The Red-Raditude-Hurley Years]]''* (2020)
*''[[Alone XI: The EWBAITE Years]]'' (2020)
*''[[Alone XII: The White Year]]'' (2020)
*''[[Alone XIII: The Pacific Daydream Black Years]]'' (2021)
*''[[Alone XIV: The Pandemic Years]]
}}

produces: