Template:Plainlist

From K6ka's Wiki
Jump to navigation Jump to search
Template documentation (View · Edit · History · Purge)

Description[edit]

This template creates a plain, unbulleted list.

Usage[edit]

Start by adding a {{Plainlist}}. Then, add your list as an unordered list below. Once you're done, add a {{Endplainlist}} at the bottom of the list. Like this:

{{Plainlist}}
* apples
* bananas
* celery
* tomatoes
* lettuce
* avocados
* coconuts
{{Endplainlist}}
  • apples
  • bananas
  • celery
  • tomatoes
  • lettuce
  • avocados
  • coconuts

Optional parameters[edit]

  • class – adds a CSS class to the containing div.
  • style – adds CSS style options. Complex styles should not be used in articles but may be acceptable on user, project, and talk pages.
Example: |style=border:solid 1px silver; background:lightyellow
  • indent – indents the list by a number of standard indents (one indent being 1.6em), particularly handy for inclusion in an indented discussion thread.
Example: |indent=2

Technical details[edit]

{{Plainlist}} works by constructing a div with the CSS class "plainlist" which has the following style:

.plainlist ul {
    line-height: inherit;
    list-style: none none;
    margin: 0;
}
.plainlist ul li {
    margin-bottom: 0;
}

If you want to export this template to another wiki, be sure to export the above CSS to your wiki's MediaWiki:Common.css file as well.

Credits[edit]

This template's code was taken from Template:Plainlist on the English Wikipedia. This template's documentation contains content from Template:Plainlist/doc.


Visit Template:Plainlist/doc to edit this text! (How does this work?) (Refresh this text - why?)