Template:Mbox: Difference between revisions

From Australian Enthusiasts Wiki
Magic word fixed
No edit summary
Line 2: Line 2:
|-
|-
|
|
{{#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}}}]]}}
{{#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}}}]]}}
| style="padding: 0.25em 0.5em;" | {{{1|<noinclude>'''Example title'''<br>Lorem ipsum dolor sit amet.</noinclude>}}}
| style="padding: 0.25em 0.5em;" | {{{1|<noinclude>'''Example title'''<br>Lorem ipsum dolor sit amet.</noinclude>}}}
|}<noinclude>{{Documentation}}</noinclude>
|}<noinclude>{{Documentation}}</noinclude>

Revision as of 07:43, 17 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.