Template:Div flex row end
Usage
{{Div flex row}} provides a simple way to create a horizontal alignment for related page elements (producing multiple rows if the screen is too narrow). A closing {{Div flex row end}} is required after the final item being aligned.
Free text content needs to be encased in div tags in order to create the rows and columns. If this is required, the |div o=y
parameter, inserting an opening div tag, may be used in conjunction with the {{Div CO}} template, inserting a closing and opening div tag:
Source <syntaxhighlight lang="wikitext">
Some content.
Some more content.
A third thing.
</syntaxhighlight> Result
Some content.
Some more content.
A third thing.
Examples
Three tables next to each other <syntaxhighlight lang="wikitext">
Header text | Header text | Header text |
---|---|---|
Example | Example | Example |
Example | Example | Example |
Example | Example | Example |
Example | Example | Example |
</syntaxhighlight>
Header text | Header text | Header text |
---|---|---|
Example | Example | Example |
Example | Example | Example |
Example | Example | Example |
Header text | Header text | Header text |
---|---|---|
Example | Example | Example |
Example | Example | Example |
Example | Example | Example |
Header text | Header text | Header text |
---|---|---|
Example | Example | Example |
Example | Example | Example |
Example | Example | Example |
A table next to a related map. <syntaxhighlight lang="wikitext">
Launch date | Country / Territory |
---|---|
13 February | ![]() |
![]() | |
![]() ... |
![]() |
![]() |
</syntaxhighlight>
Launch date | Country / Territory |
---|---|
13 February | ![]() |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
20 April | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() |
A template to help create horizontal groupings of related content.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Wrap | wrap | A pass-through for the CSS "flex-wrap" property.
| String | optional |
Align items | align-items | A pass-through for the CSS "align-items" property.
| String | optional |
Justify content | justify-content | A pass-through for the CSS "justify-content" property.
| String | optional |
Opening div | div o | An opening div tag for the first block of content. Some content (such as free text) requires this to create the blocks used for the columns and rows.
| Boolean | optional |
Gap | gap | The flexbox gap parameter, which specifies a minimum spacing between items; a CSS length value. Units of "em" are recommended.
| String | optional |
See also
- {{Gallery layout}} – similar template