From GodWiki
Jump to: navigation, search



This doesn't work yet. It has overflow problems at narrow widths, and the flexbox/margins thing is probably a bad idea.


All parameters are optional.

|title=: The box title (default: no title)
|text=: Text inside the box (default: a mess of lorem ipsum)
|color=: Background color inside the box (CSS color name or "#rrggbb" value, default: #fefefe)
|frame-color=: Border color (CSS color name or "#rrggbb" value, default: #999)
|img=: An image filename without the prefix "Image:" (default: Important.png)
|imgwidth=: Width of image. Use with care, or preferably do not use. (default: 64px)
|height=: the height of the template (default: auto)
|width=: the width of the template (default: 100%)
|min-width=: the minimum width of the rendered box (CSS size units, default: 60vw)[note 1]

Margins vs. width

Making this template narrower by setting the |width= parameter is strongly discouraged, as it is not portable across different-sized devices. If you need to narrow the box, increase the value of |margins= instead.

Example of use

| title = A modern example!
| text = This box is clearly very ''flexible'' and '''modern''', it should be readable on all devices.
| img = Imbox notice.png
| color = #abacab
| frame-color = black
| width = 30em
| min-width = unset

Results in:

Imbox notice.png
A modern example!
This box is clearly very flexible and modern, it should be readable on all devices.


  1. The default |min-width=60vw ensures that the box will be at least 60% of the viewport width.