Şablon:Flex

Noita Wiki sitesinden
Gezinti kısmına atla Arama kısmına atla
Template-info.png Documentation

Usage

{{flex |
| nowrap  = <!-- set only if you want to disable wrapping -->
| widths  =
| content =
| gap     =
| justify =
| align   =
}}

Details

A flexible container to dynamically align elements based on available width.

Şablon parametreleri

Bu şablon, parametrelerin blok biçimlendirmesini tercih eder.

ParametreAçıklamaTürDurum
widthswidths

The width to give elements inside the container. Works best if all elements are of similar width.

Varsayılan
200px
Dizeönerilen
nowrapnowrap

Set to 1 to disable wrapping.

Örnek
1
Sayıisteğe bağlı
contentcontent

The content to put in the flex container.

İçerikgerekli
gapgap

The gap between elements.

Varsayılan
2rem
Örnek
2rem
Dizeisteğe bağlı
justifyjustify

left, right, center, or another valid value for the justify-content property

Varsayılan
left
Örnek
center
Dizeisteğe bağlı
alignalign

top, center, baseline, bottom or another valid value for the align-content property.

Varsayılan
top
Dizeisteğe bağlı

Example

{{flex
| widths = 150px
| content =
<div style="border: 1px solid;">there's a box here</div>
<div style="border: 1px solid;">and another!!</div>
<div style="border: 1px solid;">all spread out or something</div>
<div style="border: 1px solid;">who knows really</div>
}}
there's a box here
and another!!
all spread out or something
who knows really