قالب:Endflowlist

من أخبار المعرفة
[edit] Template-info.svg Template documentation

خطأ: لا توجد وحدة بهذا الاسم "Uses TemplateStyles".

Usage

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:

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:

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]]
}}
Test image
List of animals:
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:

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

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

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

خطأ: لا توجد وحدة بهذا الاسم "navbox top and bottom".

Flat
{{hlist}}
{{hlist |item1 |item2 |......}}

خطأ: لا توجد وحدة بهذا الاسم "list".

{{flatlist}}
{{flatlist|
* item1
* item2
* ...}}

  • item1
  • item2
  • ...
{{cslist}}
{{cslist |item1 |item2 |......}}

خطأ: لا توجد وحدة بهذا الاسم "Cslist".

Bulleted and Ordered
{{bulleted list}}
{{bulleted list |item1 |item2 |......}}

خطأ: لا توجد وحدة بهذا الاسم "list".

{{ordered list}}
{{Ordered list |list_style_type=lower-alpha |first |second ...}}

خطأ: لا توجد وحدة بهذا الاسم "list".

Unbulleted
{{unbulleted list}}
{{unbulleted list |item1 |item2 |......}}

خطأ: لا توجد وحدة بهذا الاسم "list".

{{plainlist}}
{{plainlist|
* item1
* item2
* ...}}

  • item1
  • item2
  • ...
{{glossary}}
(glossary, description, definition, association)
{{glossary}}

{{term|first term}} {{defn|first description}}
خطأ: لا توجد وحدة بهذا الاسم "Template link general". خطأ: لا توجد وحدة بهذا الاسم "Template link general".
خطأ: لا توجد وحدة بهذا الاسم "Template link general". خطأ: لا توجد وحدة بهذا الاسم "Template link general".
{{glossary end}}


<dt class="glossary " id="خطأ: لا توجد وحدة بهذا الاسم "delink"." style="margin-top: 0.4em;">first term
first description
<dt class="glossary " id="خطأ: لا توجد وحدة بهذا الاسم "delink"." style="margin-top: 0.4em;">second term
second description
<dt class="glossary " id="خطأ: لا توجد وحدة بهذا الاسم "delink"." style="margin-top: 0.4em;">...
....
Other
{{flowlist}}
[[File:Bad Title Example.png|left|thumb|100px]]

{{flowlist|
*item1
*item2
*...}}


Bad Title Example.png
  • item1
  • item2
  • ...
{{columns-list}}
{{columns-list|colwidth=5em|
# first
# second
# third
# ...}}

خطأ: لا توجد وحدة بهذا الاسم "Template wrapper".خطأ: لا توجد وحدة بهذا الاسم "Check for unknown parameters".

{{colored list}}
{{colored list |item1 |item2 |item3 ...}}

خطأ: لا توجد وحدة بهذا الاسم "Colored list".

خطأ: لا توجد وحدة بهذا الاسم "navbox top and bottom".