This is a documentation for Board Game Arena: play board games online !
Шаблон:InfoBox
Перейти до навігації
Перейти до пошуку
Title
Body
To use this infoBox template, type:
- {{infoBox
- |title=YourTitle
- |body=YourBody
- }}
Replace YourTitle and YourBody when editing the page.
Parameters
Id
Default
Example
Result
Description
title
Title
{{infoBox |title=Example}}
Example
Body
Title
body
Body
{{infoBox |body=Content}}
Title
Content
Text, images, other templates..
state
expanded
{{infoBox |state=collapsed}}
Title
Body
Collapse into a button (wiki only).
float
none
{{infoBox |float=right}}
Title
Body
Place on the left or right side of its container, allowing text to wrap around it.
minWidth
none
{{infoBox |minWidth=100%}}
Title
Body
Minimum width as a CSS length e.g. 500px.
maxWidth
600
{{infoBox |maxWidth=80}}
Title
Body
Maximum width in px units.
Tip: {{infoBox |maxWidth=}} removes the maxWidth limit.
background
gradient
{{infoBox |background=green}}
Title
Body
A solid color as a CSS color e.g. green.
gradientA
#c00 (red)
{{infoBox |gradientA=lightgreen}}
Title
Body
Top left color as a CSS color e.g. green.
gradientB
#703 (dark pink)
{{infoBox |gradientB=lightgreen}}
Title
Body
Middle color as a CSS color e.g. green.
gradientC
#307 (dark blue)
{{infoBox |gradientC=lightgreen}}
Title
Body
Bottom right color as a CSS color e.g. green.
bodyBackground
#fffc (translucent white)
{{infoBox |bodyBackground=lightgreen}}
Title
Body
Body background color as a CSS color e.g. green.
titleColor
white
{{infoBox |titleColor=lightgreen}}
Title
Body
Title text color as a CSS color e.g. green.
bodyColor
#202122 (black)
{{infoBox |bodyColor=green}}
Title
Body
Body color as a CSS color e.g. green.
titleAlign
center
{{infoBox |titleAlign=left}}
Title
Body
Title alignment (left or right).
corner
0.5
{{infoBox |corner=1}}
Title
Body
Corner radius in rem units.
Title1
Body1
Title2
Body2
Double infoBox:
- {{infoBoxes
- |title1=
- |body1=
- |title2=
- |body2=
- }}
Additional parameters
Id
Default
Example
Description
title#
Title#
{{infoBoxes |title2=Example}}
Title where # is the InfoBox index.
body#
Body#
{{infoBoxes |body2=Content}}
Body where # is the InfoBox index.
background#
gradient
{{infoBoxes |background2=green}}
gradientD
#00c (blue)
{{infoBoxes |gradientD=green}}
Bottom right color of the last InfoBox as a CSS color e.g. green.
title#color
white
{{infoBoxes |title2Color=black}}
Title1
Body1
Title2
Body2
Title3
Body3
Triple infoBox:
- {{infoBoxes3
- |title1=
- |body1=
- |title2=
- |body2=
- |title3=
- |body3=
- }}
Additional parameters
Id
Default
Example
Description
gradientE
#037 (dark cyan)
{{infoBoxes3 |gradientE=green}}
Bottom right color of the last InfoBox as a CSS color e.g. green.
Category:TextTemplates
Pages using Шаблон:InfoBox
- Help (включення) (← посилання)
- Головна сторінка (включення) (← посилання)
- Шаблон:InfoBox (включення) (← посилання)
- Шаблон:InfoBoxes (включення) (← посилання)
- Шаблон:InfoBoxes3 (включення) (← посилання)
- Шаблон:GameIcon (включення) (← посилання)
- Шаблон:D6 (включення) (← посилання)