文档图示 模板文档[查看] [编辑] [历史] [清除缓存]
此模板目前正依照en:Wikipedia上的内容进行翻译。 (2021年2月24日)如果您擅长翻译,並清楚本模板的領域,欢迎协助翻譯、改善或校对本模板。此外,长期闲置、未翻譯或影響閱讀的内容可能会被移除。

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:

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:
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[编辑]

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:
  • 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[编辑]