Шаблон:Flexbox

Материал из Voices of the Void Wiki
Перейти к навигации Перейти к поиску


Template-info.svg Documentation Edit this documentation at %D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Flexbox/doc.
Description
This template is a flexible container which can be used with block based templates as content.
Syntax
Type: {{flexbox|type=<id>|column=<yes>|full-width=yes|<content>}}
  • type is optional and is used to give certain boxes specific styling.
  • column is only required if the intent is to make the flexbox set its contents vertically in a column.
  • full-width will make the flexbox take up the page's width.

Examples

code:

{{flexbox|
{{QuickNav|Dr. Kel|Doctor Kel|image=Kel_Headshot_Hannah.png|body=Current Operator}}
{{QuickNav|Dr. Dee|Doctor Dee|image=Dee_Headshot_Hannah.png|body=Former Operator}}
{{QuickNav|Kerfur|Kerfur|image=placeholder.png|body=Repair Unit}}
}}

Results:

Kel ConceptArt Headshot.png
Current Operator
Dee ConceptArt Headshot.png
Former Operator
Placeholder.png
Repair Unit


Previous with full width, code:

{{flexbox|full-width=yes|
{{QuickNav|Dr. Kel|Doctor Kel|image=Kel_Headshot_Hannah.png|body=Current Operator}}
{{QuickNav|Dr. Dee|Doctor Dee|image=Dee_Headshot_Hannah.png|body=Former Operator}}
{{QuickNav|Kerfur|Kerfur|image=placeholder.png|body=Repair Unit}}
}}

Results:

Kel ConceptArt Headshot.png
Current Operator
Dee ConceptArt Headshot.png
Former Operator
Placeholder.png
Repair Unit


Previous applied vertically, code:

{{flexbox|column=yes|
{{QuickNav|Dr. Kel|Doctor Kel|image=Kel_Headshot_Hannah.png|body=Current Operator}}
{{QuickNav|Dr. Dee|Doctor Dee|image=Dee_Headshot_Hannah.png|body=Former Operator}}
{{QuickNav|Kerfur|Kerfur|image=placeholder.png|body=Repair Unit}}
}}

Result:

Kel ConceptArt Headshot.png
Current Operator
Dee ConceptArt Headshot.png
Former Operator
Placeholder.png
Repair Unit