Template:Cdx-message
Displays a smaller and more compact notice as compared to the {{Mbox}} series. Good for tips or notes in documentation and help pages. Not for article namespace. It looks similar to the Codex cdxMessage component, as it was originally styled to resemble it before that component became available in MediaWiki. Imported from mw:Template:Note.
Usage
Types
Standard
Standard type that appears identical to the Codex style guide cdxMessage component:
Additional
In order of visual severity, all set by default with widths like mbox templates, or an equivalent custom style of |style=margin-left: 10%; margin-right: 10%;:
Auto width
Inline use
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.Float right
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.Parameters
Adds message template. To inform the user of something noteworthy or give the user feedback.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Content | 1 text content | Contents of notice. | Content | required |
| content | content | no description | Unknown | optional |
| text | text | no description | Unknown | optional |
| Type | 2 type | Type of notice or style to show; i.e. border/background coloring and icon. May be null to show the pin.
| String | suggested |
| type | type | no description | Unknown | optional |
| Inline | inline | If set to "true" or "1" or "yes" or "y", then will become inline instead of a block. Case-INSensitive.
| Boolean | suggested |
| Float right | right | If set to "true" or "1" or "yes" or "y", then will float right with restricted width of 238px. Case-INSensitive
| Boolean | suggested |
| Width | width | To set width to auto, then set auto.
| String | suggested |
| Class | class | Custom classes
| String | optional |
| Style | style | Custom CSS styling
| Content | optional |
See also
- {{Mbox}}, and in particular the namespace-agnostic {{Ombox}}, which by default resembles a typical "info" template.
- {{Notice}}
- Codex
- To-do
- Could we change icon color with CSS filter function? Or should I reimplement entire thing following div and span tags used by new cdxMessage. And then copy their CSS for ease of use actually. Category:Message box templates