This is a documentation for Board Game Arena: play board games online !
Template:InfoBox
Jump to navigation
Jump to search
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
Text Templates
Pages using Template:InfoBox
- Help (transclusion) (← links)
- Gamehelpraceforthegalaxy (transclusion) (← links)
- Gamehelpquoridor (transclusion) (← links)
- Gamehelpyatzy (transclusion) (← links)
- Gamehelpdudo (transclusion) (← links)
- Gamehelphive (transclusion) (← links)
- Gamehelphanabi (transclusion) (← links)
- Gamehelpbelote (transclusion) (← links)
- Tips hanabi (transclusion) (← links)
- BGA Studio Cookbook (transclusion) (← links)
- Tips chess (transclusion) (← links)
- Gamehelptaluva (transclusion) (← links)
- Gamehelpchess (transclusion) (← links)
- Gamehelpnxs (transclusion) (← links)
- Gamehelpmarrakech (transclusion) (← links)
- Tips ninetynine (transclusion) (← links)
- Gamehelpbarbu (transclusion) (← links)
- Tips piratenkapern (transclusion) (← links)
- Gamehelpmrjack (transclusion) (← links)
- Gamehelplinkage (transclusion) (← links)
- Tips taluva (transclusion) (← links)
- Wiki formatting (transclusion) (← links)
- Gamehelpgolf (transclusion) (← links)
- Gamehelptickettorideeurope (transclusion) (← links)
- Gamehelpsplendorduel (transclusion) (← links)
- Gamehelpsevenknightsbewitched (transclusion) (← links)
- Gamehelpdistilled (transclusion) (← links)
- Gamehelpelpasogwt (transclusion) (← links)
- Gamehelpcardia (transclusion) (← links)
- Gamehelpschottentotten (transclusion) (← links)
- User:SwHawk/Create Modular Code (transclusion) (← links)
- User:Sammy McSam/Hanabi/Examples (transclusion) (← links)
- User:Sammy McSam/Hanabi (transclusion) (← links)
- User:Sammy McSam/Hanabi page 2 (transclusion) (← links)
- Template:InfoBox (transclusion) (← links)
- Template:InfoBoxes (transclusion) (← links)
- Template:InfoBoxes3 (transclusion) (← links)
- Template:GameIcon (transclusion) (← links)
- Template:D6 (transclusion) (← links)