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:
{{#invoke:Message box|mbox}}<noinclude>
{| 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;"
{{documentation}}
|-
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
|{{{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.

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.