Template:Ambox

From Craft the World Wiki
Jump to: navigation, search
Template-info.png Documentation

Ambox is a meta-template used to create notice templates.

It can also be used to create other meta-templates, like {{copyrightbox}}, or be inserted directly on articles.

Parameters[edit source]

| image =
(optional) image on the left (with full wiki markup, e.g. [[File:Information.png|60px]])
| type =
(required) top line text (becomes bolder if parameter |info= is used)
| info =
(optional) list of extra info
| border =
(optional) border colour
red (serious issue), yellow (mild issue), green (good!), purple (technical change), blue ambox-blue (notice), orange ambox-orange (stub colour), gray ambox-gray.
| align =
(optional) left to display a left-aligned box.
| style =
(unlikely to be used) extra style parameters

Examples[edit source]

Minimal
{{Ambox
| type = I am type
}}


Red border
{{Ambox
| border = red
| type = I am type
}}


Yellow border, image
{{Ambox
| border = yellow
| image = [[File:Information.png|24px]]
| type = I am type
}}


Green border, info
{{Ambox
| border = green
| type = I am type
| info = I am info
}}


Purple border, info (topic)
{{Ambox
| border = purple
| type = I am type
| info = 
* I am info
}}


Blue border, image, info
{{Ambox
| border = blue
| image = [[File:Information.png|48px]]
| type = I am type
| info = I am info
}}


Orange border, image, info (list)
{{Ambox
| border = orange
| image = [[File:Information.png|60px]]
| type = I am type
| info = 
* I am info 1
* I am info 2
}}


Gray border, image, info, left alignment
{{Ambox
| border = gray
| image = [[File:Information.png|48px]]
| type = I am type
| info = I am info
| align = left
}}

Dependencies[edit source]

The following classes defined on Hydra.css:

.ambox-red .ambox-orange .ambox-yellow .ambox-purple .ambox-blue .ambox-green .ambox-gray

.ambox .ambox-left .ambox-image .ambox-text .amsmalltext .plainlinks