Jump to content
Wikipedia The Free Encyclopedia

Template:Flowlist

From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]

Usage

[edit ]

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:

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

Examples

[edit ]
[[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:
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:

Parameters

[edit ]
  • 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

[edit ]

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

[edit ]
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

[edit ]
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

See also

[edit ]
HTML lists
Horizontal list
{{hlist }}
{{hlist|item1 |item2 |...}}
  • item1
  • item2
  • ...
Horizontal list
{{flatlist }}
{{flatlist|
* item1
* item2
* ...}}
  • item1
  • item2
  • ...
Horizontal list
{{cslist }}
{{cslist|item1 |item2 |...}}
  • item1
  • item2
  • ...
{{bold list }}
{{bold list|item1 |item2 |...}}

item1 , item2 , or ...

Bulleted list
{{bulleted list }}
{{bulleted list|item1 |item2 |...}}
  • item1
  • item2
  • ...
Numeric ordered list
{{ordered list }}
{{Ordered list|first |second |...}}
  1. first
  2. second
  3. ...
Alphabetic ordered list
{{ordered list }}
{{Ordered list|list_style_type=lower-alpha |first |second |...}}
  1. first
  2. second
  3. ...
Unbulleted list
{{unbulleted list }}
{{unbulleted list|item1 |item2 |...}}
  • item1
  • item2
  • ...
Unbulleted list
{{plainlist }}
{{plainlist|
* item1
* item2
* ...}}
  • item1
  • item2
  • ...
Glossary or definition list
{{glossary }}
(glossary, description, definition, association)
{{glossary}}

{{term|first term}}{{defn|first description}}
{{term|second term}}{{defn|second description}}
{{term|...}}{{defn|....}}
{{glossary end }}

first term
first description
second term
second description
...
....
Bulleted list to flow around an image
{{flowlist }}
[[File:Bad Title Example.png|left|thumb|100px]]

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

  • item1
  • item2
  • ...
Ordered list in columns
{{columns-list }}
{{columns-list|colwidth=5em|
# first
# second
# third
# ...}}
  1. first
  2. second
  3. third
  4. ...
The above documentation is transcluded from Template:Flowlist/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /