Template:Plainlist

From Not a Wiki
Revision as of 10:50, 13 July 2023 by Fifo F (talk | contribs)

Usage

This template provides a WCAG/ISO-standards-compliant accessible alternative to <br /> separated lists, per [[wikipedia:WP:UBLIST]] and [[wikipedia:WP:PLIST]]. It uses proper HTML list markup, which is more standards-compliant and more accessible than separating list items with <br />. Detailed reasons for using this template can be found at WP:UBLIST.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
List content1

If supplied, the list, as a normal bulleted list. (Every line should start with an asterisk. No blank lines between lines.) See template page for how this works otherwise.

Contentsuggested
CSS classesclass

Adds a CSS class to the containing div.

Default
The class "plainlist" is always applied.
Stringoptional
Custom CSSstyle

Adds CSS style options. Complex styles should not be used in articles (per [[wikipedia:WP:Deviations]]) but may be acceptable on user, project, and talk pages.

Example
border:solid 1px silver; background:lightyellow
Stringoptional
Indent levelindent

Indents the list by a number of standard indents (one indent being 1.6em), particularly handy for inclusion in an indented discussion thread.

Example
2
Numberoptional