Jump to content

Template:Plainlist/doc

From Voices of Democracy Wiki

Script error: No such module "Shortcut". Script error: No such module "Uses TemplateStyles". 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:

Page Template:Plainlist/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").

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 asScript error: No such module "For loop".

Page Template:Markup/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").

Alternative syntax

Markup Renders asScript error: No such module "For loop".

Page Template:Markup/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").

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

Script error: No such module "Format TemplateData".

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
}}
Script error: No such module "LuaCall".
<div class="plainlist">
<ul>
<li>Example 1</li>
<li>Example 2</li>
<li>Example 3</li>
</ul>
</div>

Redirects

See also

Script error: No such module "navbox top and bottom".

Horizontal list
Page Template:Mono/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").{{hlist}}
{{hlist|item1 |item2 |...}}
  • item1
  • item2
  • ...
Horizontal list
Page Template:Mono/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").{{flatlist}}
{{flatlist|
* item1
* item2
* ...}}
  • item1
  • item2
  • ...
Horizontal list
Page Template:Mono/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").{{cslist}}
{{cslist|item1 |item2 |...}}

Page Template:Cslist/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").Script error: No such module "Cslist".

Bulleted list
Page Template:Mono/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").{{bulleted list}}
{{bulleted list|item1 |item2 |...}}
  • item1
  • item2
  • ...
Numeric ordered list
Page Template:Mono/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").{{ordered list}}
{{Ordered list|first |second |...}}
  1. first
  2. second
  3. ...
Alphabetic ordered list
Page Template:Mono/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").{{ordered list}}
{{Ordered list|list_style_type=lower-alpha |first |second |...}}
  1. first
  2. second
  3. ...
Unbulleted list
Page Template:Mono/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").{{unbulleted list}}
{{unbulleted list|item1 |item2 |...}}
Page Template:Plainlist/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").
  • item1
  • item2
  • ...
Unbulleted list
Page Template:Mono/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").{{plainlist}}
{{plainlist|
* item1
* item2
* ...}}
Page Template:Plainlist/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").
  • item1
  • item2
  • ...
Glossary or definition list
Page Template:Mono/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").{{glossary}}
(glossary, description, definition, association)
{{glossary}}

{{term|first term}}{{defn|first description}}
{{term|second term}}{{defn|second description}}
{{term|...}}{{defn|....}}
Page Template:Mono/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").{{glossary end}}

Page Template:Glossary/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").

<dt id="Script error: No such module "delink"." >first term
first description
<dt id="Script error: No such module "delink"." >second term
second description
<dt id="Script error: No such module "delink"." >...
....
Bulleted list to flow around an image
Page Template:Mono/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").{{flowlist}}
[[File:Bad Title Example.png|left|thumb|100px]]

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

Page Template:Flowlist/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").
  • item1
  • item2
  • ...
Ordered list in columns
Page Template:Mono/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").{{columns-list}}
{{columns-list|colwidth=5em|
# first
# second
# third
# ...}}

Script error: No such module "Template wrapper".

Script error: No such module "navbox top and bottom".