Jump to content

Template:Box

From CinderRPG Wiki

A panel with an optional title bar. Can float beside the text.

{{Box|title=Did you know?|Spears outrange swords by one block.}}
{{Box|title=Quick facts|float=right|width=260px|theme=arcane|
* Fact one
* Fact two
}}

Result:

Did you know?

Spears outrange swords by one block.

Quick facts
  • Fact one
  • Fact two


Part of the design kit.

A panel with an optional title bar. Can float beside the text.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Content1

What goes inside. Lists and tables work.

Contentrequired
Titletitle

Title bar text.

Lineoptional
Iconicon

Small picture before the title.

Fileoptional
Floatfloat

right or left to sit beside the text.

Suggested values
right left
Stringoptional
Widthwidth

e.g. 300px or 40%.

Stringoptional
Themetheme

Colour theme for just this one. Leave empty to follow the page theme.

Suggested values
gold ember frost verdant arcane blood abyss holy shadow plague
Stringoptional
Colourcolour

Any colour like #55ccff. Overrides the theme.

Example
#55ccff
Stringoptional