Template:Flatlist/doc: Difference between revisions
From Captain of Industry Wiki
								
												
				| Thadius856 (talk | contribs)  Creation | Thadius856 (talk | contribs)  +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: | ||
| }} | }} | ||
| 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 is a template documentation subpage for Template:Flatlist. It contains usage information, categories, and other content that is not part of the original template page. | 
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
}} | 
 | 
When piping parameters is not desired, combine with {{endflatlist}}, such as:
| Markup | Renders as | 
|---|---|
| {{flatlist}}
* cat
* dog
* horse
* cow
* sheep
* pig
{{endflatlist}} | 
 | 
For image captions, list (i.e. asterisk) markup does not work, so consider using {{hlist}} instead.
See also
- {{endflatlist}}
- {{hlist}}
- {{plainlist}} and {{unbulleted list}}
- {{bulleted list}}
- {{ordered list}}
- {{nowrap}}
- {{pagelist}}
