Template:Flatlist/doc

From Captain of Industry Wiki
< Template:Flatlist
Revision as of 10:08, 3 February 2022 by Thadius856 (talk | contribs) (+example of {{endflatlist}} usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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