Template:Mbox: Difference between revisions
From Computing Classics Wiki
m Changed protection level for "Template:Mbox": Highly visible template: 1M transclusions, used in the interface, cascade protected ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)) |
Add template to construct message boxes |
||
| Line 1: | Line 1: | ||
{ | {| style="width: 80%; margin: 15px 15px 15px 10%; border-collapse: collapse; background: #eaeee4; border: 1px solid #aaa; border-left: 10px solid {{{colour|#E34234}}}; color:black;" | ||
|- | |||
< | |{{{1|<noinclude>'''Example title'''<br>Lorem ipsum dolor sit amet.</noinclude>}}} | ||
|} | |||
<includeonly>[[Category:Images that are off-topic media]]</includeonly> | |||
<br/> | |||
<noinclude> | |||
{{Documentation}} | |||
</noinclude> | </noinclude> | ||
Revision as of 21:20, 16 October 2020
| Example title Lorem ipsum dolor sit amet. |
Template documentation (for the above template, sometimes hidden or invisible)
This template displays a message box.
TemplateData
Displays a message box.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Message | 1 | The message to be displayed.
| Content | required |
| Colour code | colour | The hex code of the colour to be used on the side bar.
| String | suggested |
| Icon | icon | The filename of an icon to use.
| File | optional |
| Icon width | width | The width of he icon, in pixels (px).
| Number | suggested |
| Alt text | alt | The alt text; a textual description for a visually impaired person to understand; for an icon.
| String | suggested |
| Icon description | icon_desc | A description for the icon. Uses alt text if not provided.
| String | optional |