Jump to content

Template:Flex end

From Mango's Lewd Diplomacy: Official Wiki
Revision as of 11:41, 13 September 2024 by MLD>Lorenerd11
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[view] [edit] Template documentation

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

{{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.