• Domov
  • Naključno
  • Bližnje
  • Prijava
  • Nastavitve
Donate Now If Wikipedia is useful to you, please give today.
  • O Wikipediji
  • Zavrnitve odgovornosti
Wikipedija

Predloga:Flowlist

  • Jezik
  • Opazuj
  • Uredi stran
Dokumentacija za predlogo[poglej] [uredi] [zgodovina] [osveži]
CSSTa predloga uporablja TemplateStyles:
  • Template:Flowlist/styles.css

Vsebina

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

Usage

uredi

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

uredi
[[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

uredi
  • 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

uredi

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

uredi
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

uredi
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

uredi
  • {{endflowlist}}
  • {{flatlist}}
  • {{plainlist}}
  • The history of this template
  • Phabricator ticket
  • p
  • p
  • u
HTML seznami
Flat
{{hlist}}
{{hlist|item1 |item2 |...}}

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

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

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

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

  1. first
  2. second
  3. ...
Unbulleted
{{unbulleted list}}
{{unbulleted list|item1 |item2 |...}}

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

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

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


first term
first description
second term
second description
...
....
Other
{{flowlist}}
[[File:Bad Title Example.png|left|thumb|100px]]

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


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

  1. first
  2. second
  3. third
  4. ...
{{colored list}}
{{colored list|item1 |item2 |item3 |...}}

  • item1 
  • item2 
  • item3 
  • ...
kat:Predloge za oblikovanje‎
Zgornja dokumentacija je vključena od Predloga:Flowlist/dok. (uredi | zgodovina)
Urejevalci lahko eksperimentirajo v peskovnik (ustvari | zrcali) in testniprimeri (ustvari) straneh te predloge.
Prosimo dodajte kategorije v /dok podstran. Podstran tega predloga.
Pridobljeno iz »https://sl.wikipedia.org/w/index.php?title=Predloga:Flowlist&oldid=5602669«
Zadnja sprememba: 13. november 2021, ob 13:13

Jeziki

    • Авар
    • Azərbaycanca
    • বাংলা
    • Bosanski
    • English
    • Eesti
    • فارسی
    • ગુજરાતી
    • Bahasa Indonesia
    • Ladin
    • മലയാളം
    • Монгол
    • ଓଡ଼ିଆ
    • Русский
    • Srpskohrvatski / српскохрватски
    • Српски / srpski
    • Тоҷикӣ
    • ไทย
    • Türkçe
    • اردو
    • Tiếng Việt
    • 中文
    • 閩南語 / Bân-lâm-gú
    Wikipedija
    • Wikimedia Foundation
    • Powered by MediaWiki
    • Čas zadnje spremembe strani: 13:13, 13. november 2021.
    • Vsebina je na voljo pod licenco CC BY-SA 4.0, razen če je navedeno drugače.
    • Pravilnik o zasebnosti
    • O Wikipediji
    • Zavrnitve odgovornosti
    • Kodeks ravnanja
    • Razvijalci
    • Statistika
    • O piškotkih
    • Pogoji uporabe
    • Namizno