模板:Flowlist
此模板目前正依照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:
![](http://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Bad_Title_Example.png/100px-Bad_Title_Example.png)
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.
![](http://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Bad_Title_Example.png/100px-Bad_Title_Example.png)
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]] }}
![](http://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Bad_Title_Example.png/100px-Bad_Title_Example.png)
- Alternative syntax
[[File:Bad Title Example.png|left|thumb|100px|Test image]] List of animals: {{flowlist}} * [[cat]] * [[dog]] * [[horse]] * [[cow]] * [[sheep]] * [[pig]] {{endflowlist}}
![](http://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Bad_Title_Example.png/100px-Bad_Title_Example.png)
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.
See also
編輯
|
上述文件嵌入自Template:Flowlist/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |