Template:FlexContainer
Usage Examples
To see for yourself what the different options do, use the "Edit source" mode, change the input values for {{FlexContainer}} below, and press "Show preview".
| House Atreides | |
|---|---|
![]() | |
| Cosmetic Type | Swatch |
| Compatibility | All |
| Smuggler | |
|---|---|
![]() | |
| Cosmetic Type | Swatch |
| Compatibility |
|
TemplateData
Convenience wrapper for applying the shared 'flex-container' layout class. Wraps content in a standardised responsive flex container with optional spacing and alignment overrides. Due to MediaWiki parsing limitations, wikitables should not be used inside this template, and should instead be wrapped in a <div class="flex-container">. for the same effect.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Content | 1 | Content to be wrapped inside the flex container. Wikitables are not supported with this template, and should be wrapped in a <div class="flex-container"> instead for the same effect. | Content | required |
| Gap (rem) | gap | Spacing between wrapped items, in 'rem' units. Accepts decimal values. If omitted, the default value defined in Common.css is used.
| Number | optional |
| Content justification | justify | Horizontal distribution of items within the flex container. If omitted, the default value defined in Common.css is used.
| String | optional |
| Item alignment | align | Vertical alignment of items within the flex container. If omitted, the default value defined in Common.css is used.
| String | optional |
| Text alignment | text | Alignment of inline content within the flex container. If omitted, the default value defined in Common.css is used.
| String | optional |


