Template:Flex/doc
Appearance
Used to display elements next to each other, vertically aligned to the center. Supports up to 10 elements.
Parameters
Parameter | Description | Default | Status |
---|---|---|---|
1 | Items to display next to each other | – | required |
2-10 | – | optional | |
margin | Sets horizontal gap between flexbox items, 'px' included in template | 6 | optional |
gap | Sets horizontal and vertical gap between flexbox items, overrides the margin parameter | 0px 6px | optional |
align | Vertical alignment of the contents.
|
center | optional |
justify | Horizontal alignment of the contents.
|
flex-start | optional |
wrap | Set to wrap or yes to enable wrapping of flexbox items. Set to nowrap or no to disable it.
|
nowrap | optional |
style | Specifies additional style properties of the flexbox. | – | optional |
itemstyle | Sets a style parameter for all items | – | optional |
Example
{{flex|Item 1|Item 2<br>Item3|Item 4|align=center}}
Item 1
Item 2
Item3
Item3
Item 4