• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Flowlist

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]
CSSThis template uses TemplateStyles:
  • Template:Flowlist/styles.css

Contents

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

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:
  • 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.

Test image
List of animals:
  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig

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

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
  • {{endflowlist}}
  • {{flatlist}}
  • {{plainlist}}
  • The history of this template
  • Phabricator ticket
  • v
  • t
  • e
HTML lists
More information —
  • Help:List
  • WP:List dos and don'ts
  • WP:Manual of Style/Embedded lists
  • WP:Manual of Style/Accessibility § Lists
  • WP:WikiProject Lists
Horizontal list
{{hlist|item1 |item2 }}
  • item1
  • item2
Horizontal list
{{flatlist|
* item1
* item2}}
  • item1
  • item2
Horizontal list
{{cslist|item1 |item2 }}
  • item1
  • item2
Bulleted list
{{bulleted list|item1 |item2 }}
  • item1
  • item2
Numeric ordered list
{{Ordered list|first |second }}
  1. first
  2. second
Alphabetic ordered list
{{Ordered list|list_style_type=lower-alpha |first |second }}
  1. first
  2. second
Unbulleted list
{{unbulleted list|item1 |item2 }}
  • item1
  • item2
Unbulleted list
{{plainlist|
* item1
* item2}}
  • item1
  • item2
Glossary or definition list
{{glossary}}

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

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

{{flowlist|
*item1
*item2}}

  • item1
  • item2
Ordered list in columns
{{columns-list|colwidth=5em|
# first
# second}}
  1. first
  2. second
Category:List formatting and function templates
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.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Flowlist&oldid=1096805474"
Last edited on 6 July 2022, at 18:59

Languages

    • Авар
    • Azərbaycanca
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • Bosanski
    • Eesti
    • فارسی
    • ગુજરાતી
    • 한국어
    • Bahasa Indonesia
    • Ladin
    • മലയാളം
    • Монгол
    • ଓଡ଼ିଆ
    • Русский
    • Slovenščina
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • ไทย
    • Тоҷикӣ
    • Türkçe
    • اردو
    • Tiếng Việt
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 6 July 2022, at 18:59 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop