Template:Flowlist/doc

From imedwiki
< Template:Flowlist
Jump to navigation Jump to search

Usage

If you have this problem of list bullets and numbers overlapping with a left floating image or Infobox, for example:

Test image

List of animals:

then {{Flowlist}} enables lists to stay clear of these left floating objects. It effectively makes lists act as a block level element. It does however have a few side effects that you should take note of.

Test image

List of animals: Page Template:Flowlist/styles.css has no content.

Template:Endflowlist

This template can be used with or without {{endflowlist}}.

Examples

[[File:Bad Title Example.png|left|thumb|100px|Test image]] List of animals:
{{flowlist |
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
}}
Test image
List of animals: Page Template:Flowlist/styles.css has no content.
Alternative syntax
[[File:Bad Title Example.png|left|thumb|100px|Test image]] List of animals:
{{flowlist}}
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
{{endflowlist}}
Test image
List of animals: Page Template:Flowlist/styles.css has no content.

Template:Endflowlist

Parameters

  • class – adds a CSS class to the containing div.
  • style – 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: |style=border:solid 1px silver; background:lightyellow

Side effects

Using this technique has a side effect. If your list is longer than the floated element, then the list will not flow around the image like normal, but instead be one block, leaving white space below the floated element. This goes for both left and right side of the list.

This

Test image
Test image
List of animals:
  • cat in a very long sentence that should collide with the image to the right
  • dog in a very long sentence that should collide with the image to the right

Will become

Test image
Test image
List of animals: Page Template:Flowlist/styles.css has no content.
  • cat in a very long sentence that should collide with the image to the right
  • dog in a very long sentence that should collide with the image to the right

Template:Endflowlist

See also

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

Flat
Page Template:Mono/styles.css has no content.{{hlist}}
{{hlist|item1 |item2 |...}}

  • item1
  • item2
  • ...
Page Template:Mono/styles.css has no content.{{flatlist}}
{{flatlist|
* item1
* item2
* ...}}

  • item1
  • item2
  • ...
Page Template:Mono/styles.css has no content.{{cslist}}
{{cslist|item1 |item2 |...}}

Page Template:Cslist/styles.css has no content.Script error: No such module "Cslist".

Bulleted and Ordered
Page Template:Mono/styles.css has no content.{{bulleted list}}
{{bulleted list|item1 |item2 |...}}

  • item1
  • item2
  • ...
Page Template:Mono/styles.css has no content.{{ordered list}}
{{Ordered list|list_style_type=lower-alpha |first |second |...}}

  1. first
  2. second
  3. ...
Unbulleted
Page Template:Mono/styles.css has no content.{{unbulleted list}}
{{unbulleted list|item1 |item2 |...}}

  • item1
  • item2
  • ...
Page Template:Mono/styles.css has no content.{{plainlist}}
{{plainlist|
* item1
* item2
* ...}}

  • item1
  • item2
  • ...
Page Template:Mono/styles.css has no content.{{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 has no content.{{glossary end}}


first term
first description
second term
second description
...
....
Other
Page Template:Mono/styles.css has no content.{{flowlist}}
[[File:Bad Title Example.png|left|thumb|100px]]

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


Bad Title Example.png
Page Template:Flowlist/styles.css has no content.
  • item1
  • item2
  • ...
Page Template:Mono/styles.css has no content.{{columns-list}}
{{columns-list|colwidth=5em|
# first
# second
# third
# ...}}

  1. first
  2. second
  3. third
  4. ...
Page Template:Mono/styles.css has no content.{{colored list}}
{{colored list|item1 |item2 |item3 |...}}

Script error: No such module "Colored list".

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


This template is based (in parts) on the Template:Flowlist/doc from the free encyclopedia wikipedia and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On wikipedia there is a List of authors accessible. More about importing from wikipedia on page Imedwiki:Importing from wikipedia.