Jump to content

Template:Cmbox/doc

From Wikipedia
Message box
meta-templates
templatecontext
{{Ambox}}article
{{Cmbox}}category
{{Imbox}}image
{{Tmbox}}talk
{{Fmbox}}footer / header
{{Ombox}}other pages
{{Mbox}}auto-detect
{{Asbox}}article stub
{{Dmbox}}disambiguation

{{Cmbox}} mean "category message box" and e be one metatemplate.

Dem dey use am make message box templates like {{Category diffuse}} for category pages. E get different colours, e fit use default images when no image parameter dey, and e get some other features too.

Dis template dey work almost exactly like {{Ambox}} and e dey use di same parameters.

Simple example:

{{cmbox | text = Some text.}}


More complex example:

{{cmbox
| type      = style
| image     = [[File:Emblem-question-yellow.svg|40px]]
| style     = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = The message body text.
}}

Category message box types

[edit source]

Di examples wey follow use different type parameters, but dem no use image parameters, so dem dey use di default images for each type.


Other images

[edit source]

Di default images above mostly dey there for convenience. For many cases, e better make dem use more specific images. These examples use di image parameter to choose image instead of di default ones.