Difference between revisions of "Template:Flowlist"
From LIMSWiki
Jump to navigationJump to searchShawndouglas (talk | contribs) (Created as needed.) |
Shawndouglas (talk | contribs) m (Changed protection level for "Template:Flowlist": As necessary ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]) |
||
| (One intermediate revision by the same user not shown) | |||
Latest revision as of 19:53, 1 April 2022
[edit] []
Template documentation
| 32px | This template uses TemplateStyles: |
Usage
If you have this problem of list bullets and numbers overlapping with a left floating image or Infobox, for example:
File: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.
File: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]]
}}
File: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}}
File: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 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
File:Bad Title Example.png
Test image
File:Bad Title Example.png
Test image
See also
- {{endflowlist}}
- {{flatlist}}
- {{plainlist}}]
| The above documentation is transcluded from Template:Flowlist/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |









