Template:Plainlist/doc

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search

Lua error: Internal error: The interpreter exited with status 1. Lua error: Internal error: The interpreter exited with status 1. Lua error: Internal error: The interpreter exited with status 1. This template provides a WCAG/ISO-standards-compliant accessible alternative to <br /> separated lists, per WP:UBLIST and WP:PLIST

Usage

{{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 />. Detailed reasons for using this template can be found at WP:UBLIST.

This template can be used with or without {{endplainlist}}. It is an alternative to {{unbulleted list}}, which performs the same function in a more concise but less wiki-style manner. Note that {{unbulleted list}} will work inside image captions, whereas {{plainlist}} does not.

Examples

Markup Renders asLua error: Internal error: The interpreter exited with status 1.

Alternative syntax

Markup Renders asLua error: Internal error: The interpreter exited with status 1.

Parameters

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Plainlist in articles based on its TemplateData.

TemplateData for Plainlist

Lua error: Internal error: The interpreter exited with status 1.Lua error: Internal error: The interpreter exited with status 1.

Controlling line-breaking

Template {{nbsp}} may be used with {{wbr}} and {{nowrap}} to control line-breaking in bulletless lists, to prevent wrapped long entries from being confused with multiple entries. See Template:Wbr/doc#Controlling line-breaking in infoboxes for details.

Technical details

{{Plainlist}} works by constructing a div with the CSS class "plainlist" which has the styles listed in Template:Plainlist/styles.css.

Wikitext Expanded template HTML
{{Plainlist|
* Example 1
* Example 2
* Example 3
}}
Lua error: Internal error: The interpreter exited with status 1.
<div class="plainlist">
<ul>
<li>Example 1</li>
<li>Example 2</li>
<li>Example 3</li>
</ul>
</div>

Redirects

See also

  • {{unbulleted list}} – essentially the same but uses | ... | ... | ... instead of |* ... * ... * ...
  • {{flatlist}} and {{hlist}} (replacements for comma- or dash-separated lists)
  • {{bulleted list}}
  • {{indented plainlist}}
  • {{ordered list}}
  • Lua error: Internal error: The interpreter exited with status 1. for more information on creating lists within the Infobox family of templates, with examples in the following Lua error: Internal error: The interpreter exited with status 1.

Lua error: Internal error: The interpreter exited with status 1.

Flat
{{hlist}}
{{hlist |item1 |item2 |...}}

Lua error: Internal error: The interpreter exited with status 1.

{{flatlist}}
{{flatlist|
* item1
* item2
* ...}}

  • item1
  • item2
  • ...
{{cslist}}
{{cslist |item1 |item2 |...}}

Lua error: Internal error: The interpreter exited with status 1.

{{bold list}}
{{bold list |item1 |item2 |...}}

Lua error: Internal error: The interpreter exited with status 1.

Bulleted and Ordered
{{bulleted list}}
{{bulleted list |item1 |item2 |...}}

Lua error: Internal error: The interpreter exited with status 1.

{{ordered list}}
{{Ordered list |list_style_type=lower-alpha |first |second |...}}

Lua error: Internal error: The interpreter exited with status 1.

Unbulleted
{{unbulleted list}}
{{unbulleted list |item1 |item2 |...}}

Lua error: Internal error: The interpreter exited with status 1.

{{plainlist}}
{{plainlist|
* item1
* item2
* ...}}

  • item1
  • item2
  • ...
{{glossary}}
(glossary, description, definition, association)
{{glossary}}

{{term|first term}} {{defn|first description}}
Lua error: Internal error: The interpreter exited with status 1. Lua error: Internal error: The interpreter exited with status 1.
Lua error: Internal error: The interpreter exited with status 1. Lua error: Internal error: The interpreter exited with status 1.
{{glossary end}}


<dt class="glossary " id="Lua error: Internal error: The interpreter exited with status 1." style="margin-top: 0.4em;">first term
first description
<dt class="glossary " id="Lua error: Internal error: The interpreter exited with status 1." style="margin-top: 0.4em;">second term
second description
<dt class="glossary " id="Lua error: Internal error: The interpreter exited with status 1." style="margin-top: 0.4em;">...
....
Other
{{flowlist}}
[[File:Bad Title Example.png|left|thumb|100px]]

{{flowlist|
*item1
*item2
*...}}


  • item1
  • item2
  • ...
{{columns-list}}
{{columns-list|colwidth=5em|
# first
# second
# third
# ...}}

Lua error: Internal error: The interpreter exited with status 1.Lua error: Internal error: The interpreter exited with status 1.

Lua error: Internal error: The interpreter exited with status 1.