模板:Flowlist
来自戏曲百科
模板:Translating 模板:When on basepage
Usage
If you have this problem of list bullets and numbers overlapping with a left floating image or Infobox, for example:
文件:Bad Title Example.png
Test image
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.
文件:Bad Title Example.png
Test image
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]] }}
文件:Bad Title Example.png
Test image
- Alternative syntax
[[File:Bad Title Example.png|left|thumb|100px|Test image]] List of animals: {{flowlist}} * [[cat]] * [[dog]] * [[horse]] * [[cow]] * [[sheep]] * [[pig]] {{endflowlist}}
文件:Bad Title Example.png
Test image
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
- Example:
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.
Will become
文件:Bad Title Example.png
Test image
文件:Bad Title Example.png
Test image
See also
上述文档嵌入自模板:Flowlist/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |