Template:Flatlist/doc

From Captain of Industry Wiki
Jump to: navigation, search

This template provides a WCAG/ISO-standards-compliant accessible alternative to comma- or dash- (or other single character-) separated lists, per WP:FLATLIST and Wikipedia:WP:HLIST. See Wikipedia:Template:Flatlist for full documentation.

Usage

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

Markup Renders as
{{flatlist|
* cat
* dog
* horse
* cow
* sheep
* pig
}}
  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig

When piping parameters is not desired, combine with {{endflatlist}}, such as:

Markup Renders as
{{flatlist}}
* cat
* dog
* horse
* cow
* sheep
* pig
{{endflatlist}}
  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig

For image captions, list (i.e. asterisk) markup does not work, so consider using {{hlist}} instead.

See also