Template:Mbox: Difference between revisions

From Computing Classics Wiki
Add template to construct message boxes
m 12 revisions imported: All kinds of templates for CCW to emulate AEW's old hard drive stock
 
(10 intermediate revisions by the same user not shown)
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;"
{| style="width: 80%; margin: 15px 15px 15px 10%; border-collapse: collapse; background: #eaeee4; outline: 1px solid #aaa; border-left: 10px solid {{{colour|#E34234}}}; color:black;"
|-
|-
|{{{1|<noinclude>'''Example title'''<br>Lorem ipsum dolor sit amet.</noinclude>}}}
|
|}
{{#if:{{{icon|}}}|{{!}} style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center" {{!}} [[File:{{{icon|Information.svg}}}{{!}}{{{width|50}}}px{{!}}{{{icon_desc|{{{alt|Icon}}} }}}{{!}}alt={{{alt|Icon}}}]]}}
<includeonly>[[Category:Images that are off-topic media]]</includeonly>
| style="padding: 0.25em 0.5em;" | {{{1|<noinclude>'''Example title'''<br>Lorem ipsum dolor sit amet.</noinclude>}}}
<br/>
|}<noinclude>{{Documentation}}</noinclude>
<noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 06:14, 24 September 2024

Example title
Lorem ipsum dolor sit amet.
Template documentation (for the above template, sometimes hidden or invisible)

This template displays a message box.

TemplateData[edit source]

Displays a message box.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Message1

The message to be displayed.

Example
'''Example title'''<br>Lorem ipsum dolor sit amet.
Contentrequired
Colour codecolour

The hex code of the colour to be used on the side bar.

Default
#E34234
Example
#ffffff
Stringsuggested
Iconicon

The filename of an icon to use.

Example
File:Nuvola apps important.svg
Fileoptional
Icon widthwidth

The width of he icon, in pixels (px).

Default
50
Example
32
Numbersuggested
Alt textalt

The alt text; a textual description for a visually impaired person to understand; for an icon.

Example
Warning triangle.
Stringsuggested
Icon descriptionicon_desc

A description for the icon. Uses alt text if not provided.

Example
Warning triangle.
Stringoptional

Transcluded from Template:Mbox/doc (EditPurgeHow does this work?)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.