• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Indented plainlist/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Indented plainlist


This is the template sandbox page for Template:Indented plainlist (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
Shortcuts
  • {{idpTemplate:Idp}}
  • {{ilistTemplate:Ilist}}

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, per MOS:UBLIST and MOS:PLIST.

Contents

  • 1 Usage
    • 1.1 Custom indentation
  • 2 TemplateData
  • 3 See also

Usage

edit
Example
First labelSome data
Awards
  • 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)
Second labelSome more data
{{Infobox
 |label1    = Some data
 |awards    = {{indented plainlist|
* [[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

edit
Example
First labelSome data
Awards
  • 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)
Second labelSome 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

edit
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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Content1

If supplied, the list, as a normal bulleted list. Every line should start with an asterisk. No blank lines between lines.

Contentrequired
Classclass

Adds a CSS class to the containing div.

Default
The class "plainlist" is always applied.
Example
nowrap
Stringoptional
Stylestyle

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.

Example
border:solid 1px silver; background:lightyellow;
Stringoptional
Indentationin indent

Sets a custom indentation width for the lists' items.

Default
1em
Stringoptional

See also

edit
  • {{plainlist}}
  • {{unbulleted indent list}}
The above documentation is transcluded from Template:Indented plainlist/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Indented_plainlist/sandbox&oldid=1071362487"
Last edited on 12 February 2022, at 06:40

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 12 February 2022, at 06:40 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop