Template:Unbulleted indent list
This template is very similar to {{unbulleted list}}, 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.
- REDIRECT Template:Template link code provides a WCAG-compliant and accessible alternative to
<br />-separated lists, per MOS:UBLIST and MOS:PLIST.
Usage
| First label | Some data |
|---|---|
| Awards | |
| Second label | Some more data |
{{Infobox
|label1 = Some data
|awards = {{unbulleted indent list
|[[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
}}
Custom indentation
| First label | Some data |
|---|---|
| Awards | |
| Second label | Some more data |
{{Infobox
|label1 = Some data
|awards = {{unbulleted indent list|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
TemplateData documentation used by VisualEditor and other tools
|
|---|
|
See the monthly parameter usage report for this template.
TemplateData for Unbulleted indent list <templatedata> { "description": "An automatically indented unbulleted list variant.", "params": { "1": { "label": "Content", "description": "Every line should start with a pipe character.", "type": "content", "required": true }, "class": { "label": "Class", "description": "Adds a CSS class to the containing div.", "type": "string", "default": "The class \"plainlist\" is always applied.", "example": "nowrap" }, "style": { "label": "Style", "description": "Adds CSS style options. Complex styles should not be used in articles—per WP:Deviations—but may be acceptable on user, project, and talk pages.", "type": "string", "example": "border:solid 1px silver; background:lightyellow;" }, "in": { "label": "Indentation", "description": "Sets a custom indentation width for the lists' items.", "type": "string", "default": "1em", "aliases": [ "indent" ] } } } </templatedata> |
| The above documentation is transcluded from Template:Unbulleted indent list/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. |