Noita Wiki
Advertisement
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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Widthswidths

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

Default
200px
Stringsuggested
Nowrapnowrap

Set to 1 to disable wrapping.

Example
1
Numberoptional
Contentcontent

The content to put in the flex container.

Contentrequired
Gapgap

The gap between elements.

Default
2rem
Example
2rem
Stringoptional
Justifyjustify

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

Default
left
Example
center
Stringoptional
Alignalign

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

Default
top
Stringoptional

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
Advertisement