Template:Plainlist
<br />
separated lists.
Usage[edit source]
{{plainlist}} starts a plain (i.e. unbulleted) list, such as:
It uses proper HTML list markup, which is more standards-compliant and more accessible than separating list items with <br />
.
This template can be used with or without {{endplainlist}}.
Examples[edit source]
{{plainlist| * [[cat]] * [[dog]] * [[horse]] * [[llama]] }}
{{plainlist}} * [[cat]] * [[dog]] * [[horse]] * [[llama]] {{endplainlist}}
Technical details[edit source]
{{Plainlist}} works by constructing a div with the CSS class "plainlist" which has the following style (see MediaWiki:Common.css):
.plainlist ul {
line-height: inherit;
list-style: none none;
margin: 0;
}
.plainlist ul li {
margin-bottom: 0;
}
Wikitext | Expanded template | HTML |
---|---|---|
{{Plainlist| * Example 1 * Example 2 * Example 3 }} |
<div class="plainlist"> * Example 1 * Example 2 * Example 3 </div> |
<div class="plainlist">
<ul>
<li>Example 1</li>
<li>Example 2</li>
<li>Example 3</li>
</ul>
</div>
|
Credits[edit source]
This template's code and documentation were taken from the English Wikipedia.
TemplateData[edit source]
TemplateData for Plainlist
This template provides a WCAG/ISO-standards-compliant accessible alternative to <br /> separated lists. It uses proper HTML list markup, which is more standards-compliant and more accessible than separating list items with <br />.
Parameter | Description | Type | Status | |
---|---|---|---|---|
List content | 1 | If supplied, the list, as a normal bulleted list. (Every line should start with an asterisk. No blank lines between lines.) | Content | suggested |
CSS classes | class | Adds a CSS class to the containing div.
| String | optional |
Custom CSS | style | Adds CSS style options.
| Unknown | optional |
Indent level | indent | Indents the list by a number of standard indents (one indent being 1.6em), particularly handy for inclusion in an indented discussion thread.
| Number | optional |