FANDOM


Export this template, then import, to install it.
Use edit summary: Copied from [[w:c:templates:Template:Cmbox]] to properly attribute this template's editors.
This template is probably not already on your wiki.
Template documentation
Note: the template above may sometimes be partially or fully invisible.

View or edit this documentation. (How does this work?)

Editors can experiment with this template's sandbox and test case pages.

This template creates category messages boxes. It uses {{Mbox}} that is based on Mbox on Wikipedia. Please see Mbox for installation instructions.

Usage

{{Cmbox
| type  =
| small =
| id    =
| class =
| style =
| textstyle  =
| plainlinks =
| text  =
| issue =
| fix   =
| date  =
| info  =
| image =
| imageright
| doc =
| cat =
}}

Parameters

  • type
    • speedy - speedy delete message box
    • delete - delete message box
    • content - content message box
    • style - style message box
    • notice - general message box (default)
    • protection - protection message box
  • small - a small left floated message box
  • id - the id of the box
  • class - any additional classes for the box
  • style - any additional styles for the box
  • textstyle - any additional style for the text in the box
  • plainlinks - if you want all external links to be plain links
  • text - text of the message box or use the following together
    • issue - the issue of the message box
    • fix - how to fix the message issue
  • date - the date the box was placed
  • info - more information about the issue
  • image - image in the left side of the message box.
  • imageright - image in the right side of the message box.
  • doc - answer yes to this when you are using your Cmbox template on a documentation page, the documentation will not be categorized.
  • cat - this is the category your Cmbox will put the pages in where it is used.

Boxen

All options are not shown.

This wiki has instant commons. If you want these images, your wiki's admin will have to request instant commons or you will have to upload the images manually.

[[File:Ambox warning pn|80px]]
This is an category speedy deletion message box.
{{Cmbox
| type  = speedy
| text  = This is an category speedy deletion message box.
| image = [[File:Ambox warning pn.svg|50px]]
| cat = Categories for speedy deletion
}}
[[File:Ambox warning pn|80px]]
This is an category deletion message box.
{{Cmbox
| type  = delete
| text  = This is an category deletion message box.
| image = [[File:Ambox warning pn.svg|50px]]
| cat = Categories for deletion
}}
[[File:Ambox warning orange|80px]]
[[File:Ambox warning yellow|80px]]
[[File:Ambox warning blue|80px]]
This is an category general message box.
{{Cmbox
| type  = notice
| text  = This is an category general message box.
| image = [[File:Ambox_warning_blue.svg|50px]]
}}
[[File:Merge-split-transwiki default|80px]]
This is an category move or merge message box.
{{Cmbox
| type  = move
| text  = This is an category move or merge message box.
| image = [[File:Merge-split-transwiki_default.svg|50px]]
}}
[[File:Padlock|80px]]
This is an category protection message box.
{{Cmbox
| type  = protection
| text  = This is an category protection message box.
| image = [[File:Padlock.svg|50px]]
| cat = Protected categories
}}

Small box

This is a small category general message box.

This is a message box that can be used to highlight minor issues with the category. It is suggested to use a normal box for bigger problems with category. Text can flow around this box, so if you do not want text beside the box, you should use the <div style="clear:both"></div> directly after the box.

Here is the code for the above box.

{{Cmbox
| small = yes
| type  = notice
| text  = This is a small category general message box.
}}

See also

  • {{Ambox}} - article message box
  • {{Imbox}} - image message box
  • {{Xmbox}} - template message box
  • {{Tmbox}} - talk page message box
  • {{Fmbox}} - footer and header message box
  • {{Ombox}} - all other pages message box
Community content is available under CC-BY-SA unless otherwise noted.