Template:Cmbox/doc
Appearance
| This is a documentation subpage for Template:Cmbox It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
| This template can only be edited by administrators because it is transcluded onto one or more cascade-protected pages. |
| Message box meta-templates | |
|---|---|
| template | context |
| {{Ambox}} | article |
| {{Cmbox}} | category |
| {{Imbox}} | image |
| {{Tmbox}} | talk |
| {{Fmbox}} | footer / header |
| {{Ombox}} | other pages |
| {{Mbox}} | auto-detect |
| {{Asbox}} | article stub |
| {{Dmbox}} | disambiguation |
| This template is used on approximately 522,000 pages, or roughly 1720% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
{{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.
Usage
[edit source]Simple example:
{{cmbox | text = Some 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.
}}
| 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.
| type=speedy – Templates for quick deletion like {{db-c1}}. |
| type=delete – Deletion templates like {{cfd}}. |
| type=content – Big warnings and problems like {{BLP category}}. |
| type=style – Small warnings and problems like {{Overpopulated category}}. |
| type=notice – Notices and messages of any kind, permanent or temporary. |
| type=move – Move, merge, and split messages or proposals like {{Category redirect}}. |
| type=protection – Protection templates like {{pp}} when dem show am for category pages. |
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.
| type = style image = [[File:Sub-arrows.svg|40px]] Dis image dey use for {{Overpopulated category}} and {{Category diffuse}}. |
| type = move image = [[File:Redirect arrow.svg|class=skin-invert-image|52px]] Dis image dey use for {{Category redirect}}. |