Template:Indented plainlist
This template is very similar to {{plainlist}}
, except that it automatically indents parts of long items that are wrapped onto a new line. This makes it easier to tell apart multiple such items when width is limited—e.g. in an {{infobox}}
—and eliminates the need for a bulleted list.
{{Indented plainlist}}
provides a WCAG-compliant and accessible alternative to <br />
-separated lists.
Usage
[change source]First label | Some data |
---|---|
Awards | |
Second label | Some more data |
{{Infobox |bodystyle = width:21em |title = Example |label1 = First label | data1 = Some data |label2 = Awards | data2 = {{indented plainlist| * [[Oscars]] * [[Emmys]] }} |label3 = Second label | data3 = Some more data }}
Custom indentation
[change source]First label | Some data |
---|---|
Awards | |
Second label | Some more data |
{{Infobox
|label1 = Some data
|awards = {{indented plainlist|indent=2em|
* [[Royal Geographical Society's Founder's Medal]] (1888)
* [[Knight Commander of the Order of the Bath]] (1896)
* [[Chevalier dans l'Ordre de la Légion d'Honneur]] (1899)
}}
|label2 = Some more data
}}
TemplateData
[change source]TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
See a monthly parameter usage report for Template:Indented plainlist in articles based on its TemplateData.
TemplateData for Indented plainlist An automatically indented plainlist variant.
|
See also
[change source]- {{plainlist}}
- {{unbulleted indent list}}