Template:FlexContainer
Usage Examples
| Template Call | Output | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
{{FlexContainer
|gap=3
|justify=space-between
|align=flex-end
|text=justify|
...
}}
|
| ||||||||||
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" style="text-align:left;"> 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. Default value is defined in Common.css.
| Number | optional |
| Content justification | justify | Horizontal distribution of items within the flex container. Default value is defined in Common.css.
| String | optional |
| Item alignment | align | Vertical alignment of items within the flex container. Default value is defined in Common.css.
| String | optional |
| Text alignment | text | Alignment of inline content within the flex container. Default value is defined in Common.css.
| String | optional |


