Difference between revisions of "Template:Flatlist/doc"

From Captain of Industry Wiki
Jump to: navigation, search
(Creation)
 
(+example of {{endflatlist}} usage)
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
This template provides a [[Wikipedia:Web Content Accessibility Guidelines|WCAG]]/ISO-standards-compliant accessible alternative to comma- or dash- (or other single character-) separated lists, per [[Wikipedia:WP:FLATLIST]] and [[Wikipedia:WP:HLIST]]. '''See [[Wikipedia:Template:Flatlist]] for full documentation.'''
This template provides a [[Wikipedia:Web Content Accessibility Guidelines|WCAG]]/ISO-standards-compliant accessible alternative to comma- or dash- (or other single character-) separated lists, per [[Wikipedia:WP:FLATLIST|WP:FLATLIST]] and [[Wikipedia:WP:HLIST]]. '''See [[Wikipedia:Template:Flatlist]] for full documentation.'''


==Usage==
==Usage==
Line 25: Line 25:
}}
}}


This template can be used with or without {{tl|endflatlist}}. For image captions, list (i.e. asterisk) markup does not work, so consider using {{tl|hlist}} instead.
When piping parameters is not desired, combine with {{tl|endflatlist}}, such as:
 
{{markup|
<nowiki>{{flatlist}}
* cat
* dog
* horse
* cow
* sheep
* pig
{{endflatlist}}</nowiki>|
{{flatlist}}
* cat
* dog
* horse
* cow
* sheep
* pig
{{endflatlist}}
}}
 
For image captions, list (i.e. asterisk) markup does not work, so consider using {{tl|hlist}} instead.


== See also ==
== See also ==

Latest revision as of 10:08, 3 February 2022

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