Template:Flexbox: Difference between revisions

From The Soulbreach Algorithm
mirahaze>Legroom
(Created page with "<includeonly><div style="display: flex; flex-wrap: wrap; justify-content: space-around;">{{{1}}}</div></includeonly><noinclude>{{Simplest documentation}}</noinclude>")
 
m (1 revision imported)
 
(No difference)

Latest revision as of 16:46, 18 September 2024

Template documentation

To view or edit it click here (how it works).

Note: the template above may sometimes be partially or fully invisible.

Description

This template creates a flexbox which can be used as mobile adaptive container for things like images, tables and other block elements, for example, on wiki's main page, as alternative to gallery, etc. It doesn't have any dependencies and uses inline CSS.

Syntax

Type: {{flexbox|<content>}}

Usage example

Bellow is an example of template's code being used as a gallery container for embed YouTube videos (with Template:YouTube):

{{flexbox|
{{YouTube|uxSIGaMIZDI}}
{{YouTube|c85Dmlm-6-w}}
{{YouTube|0tlMPZwb9jw}}}}

The result: