• 首页
  • 随机
  • 最近更改
  • 特殊页面
  • 社群首页
  • 设置
  • 关于戏曲百科
  • 免责声明
戏曲百科
  • 登录

模板:Flowlist

  • 监视
  • 查看源代码
    • 链入页面
    • 固定链接
    • 页面信息
模板文档[查看] [编辑] [历史] [清除缓存]

模板:Translating 模板:When on basepage

目录

  • 1 Usage
  • 2 Examples
  • 3 Parameters
  • 4 Side effects
    • 4.1 This
    • 4.2 Will become
  • 5 See also

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
List of animals:
  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig

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
List of animals:
  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig

模板: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]]
}}
文件:Bad Title Example.png
Test image
List of animals:
  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig
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
List of animals:
  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig

模板: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

文件:Bad Title Example.png
Test image
文件:Bad Title Example.png
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

文件:Bad Title Example.png
Test image
文件:Bad Title Example.png
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

模板:Endflowlist

See also

  • {{endflowlist}}
  • {{flatlist}}
  • {{plainlist}}
  • The history of this template
  • Phabricator ticket
  • 查
  • 论
  • 编
HTML列表
更多信息:
  • Help:列表
  • 维基百科:格式手册/列表
  • Wikipedia:格式手冊/親和力 § 列表
  • 维基专题:列表
水平
{{hlist}} {{flatlist}} {{cslist}}

{{hlist |例子1 |例子2 |...}}

{{flatlist|
* 例子1
* 例子2
* ...
}}

{{cslist |例子1 |例子2 |...}}


  • 例子1
  • 例子2
  • ...

  • 例子1
  • 例子2
  • ...

  • 例子1
  • 例子2
  • ...
無序、有序
{{bulleted list}} {{ordered list}}

{{bulleted list |例子1 |例子2 |...}}

{{Ordered list |list_style_type=lower-alpha |第一 |第二 |...}}


  • 例子1
  • 例子2
  • ...

  1. 第一
  2. 第二
  3. ...
無項目符號
{{unbulleted list}} {{plainlist}} {{glossary}}
(定義列表、描述、關聯)

{{unbulleted list |例子1 |例子2 |...}}

{{plainlist|
* 例子1
* 例子2
* ...
}}

{{glossary}}
{{term|字詞1}} {{defn|定義1}}
{{term|字詞2}} {{defn|定義2}}
{{term|...}} {{defn|....}}
{{glossary end}}


  • 例子1
  • 例子2
  • ...

  • 例子1
  • 例子2
  • ...

字詞1
定義1
字詞2
定義2
...
....
其他
{{flowlist}} {{columns-list}}

[[File:Bad Title Example.png|left|thumb|100px]]
{{flowlist|
*例子1
*例子2
*...
}}

{{columns-list|colwidth=5em|
# 第一
# 第二
# 第三
# ...
}}


文件:Bad Title Example.png
  • 例子1
  • 例子2
  • ...

  1. 第一
  2. 第二
  3. 第三
  4. ...
Category:列表格式模板
上述文档嵌入自模板:Flowlist/doc。 (编辑 | 历史)
编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。
请在/doc子页面中添加分类。 本模板的子页面。
检索自“https://wiki66.com/index.php?title=模板:Flowlist&oldid=46772”
分类:​
  • 含有受损文件链接的页面
  • 列表格式模板
最后编辑于2021年6月17日 (星期四) 02:27

语言

    此页面在其他语言不可用。

    戏曲百科
    • 本页面最后编辑于2021年6月17日 (星期四) 02:27。
    • 错误反馈
    • 关于戏曲百科
    • 免责声明
    • 豫ICP备13003402号-1
    • 桌面版