Jump to content

Template:Flex

From Mango's Lewd Diplomacy: Official Wiki
[view] [edit] Template documentation

Used to display elements next to each other, vertically aligned to the center. Supports up to 10 elements.

Parameters[edit source]

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.
  • flex-start to align to top
  • flex-end to align to bottom
  • center to align to center
center optional
justify Horizontal alignment of the contents.
  • flex-start to align to left
  • flex-end to align to right
  • center to align to center
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[edit source]

{{flex|Item 1|Item 2<br>Item3|Item 4|align=center}}

Item 1
Item 2
Item3
Item 4
Cookies help us deliver our services. By using our services, you agree to our use of cookies.