Template:Plainlist
Template page
More actions
This template provides a Web Content Accessibility Guidelines/ISO-standards-compliant accessible alternative to <br /> separated lists.
Usage
{{plainlist}} starts a plain (i.e. unbulleted) list, such as:
- cat
- dog
- horse
- cow
- sheep
- pig
It uses proper HTML list markup, which is more standards-compliant and more accessible than separating list items with <br />.
Examples
| Wikitext | Renders as |
|---|---|
{{Plainlist|
* cat
* dog
* horse
* cow
* sheep
* pig
}}
|
|
Technical details
{{Plainlist}} works by constructing a div with the CSS class "plainlist" which has the styles listed in Template:Plainlist/styles.css.
| Wikitext | HTML |
|---|---|
{{Plainlist|
* Example 1
* Example 2
* Example 3
}}
|
<div class="plainlist"> <ul> <li>Example 1</li> <li>Example 2</li> <li>Example 3</li> </ul> </div> |
See also
- Template:Plainlist on Wikipedia, which this template was ported from.
| The above documentation is transcluded from Template:Plainlist/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |