Template:Message box: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
removed color
Added Dictionary usage
Line 7: Line 7:
-->{{#if:{{{notice|}}}|<div style="font-size: 95%;">{{{notice}}}</div>}}<!--
-->{{#if:{{{notice|}}}|<div style="font-size: 95%;">{{{notice}}}</div>}}<!--
-->{{#if:{{{notice2|}}}|<div style="font-size: 95%;">{{{notice2}}}</div>}}<!--
-->{{#if:{{{notice2|}}}|<div style="font-size: 95%;">{{{notice2}}}</div>}}<!--
-->{{#if:{{{notes|}}}|<div style="font-size: 90%;">'''Notes:''' {{{notes}}}</div>}}
-->{{#if:{{{notes|}}}|<div style="font-size: 90%;">'''{{#invoke:Dictionary|translate_embed|Notes}}:''' {{{notes}}}</div>}}
</div></div></div></div></onlyinclude>
</div></div></div></div></onlyinclude>
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Revision as of 20:14, 20 March 2025

Template documentation [view] [edit] [history] [purge]

Usage

This template is used to create message boxes for articles. It should be used as a meta template to build other message box templates, but it can be used standalone. For a list of related templates, see Category:Message box templates.

Example

{{Message box
| image   = Bebop MM.png
| notice  = Primary notice text.
| notice2 = Secondary notice text.
| notes   = Additional notes.
}}

Primary notice text.
Secondary notice text.
Script error: The function "translate_embed" does not exist.: Additional notes.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
borderborder

Hex color for the left border.

Suggested values
none
Default
#e1d2b3
Stringoptional
imageimage

Image to be displayed.

Fileoptional
quotequote

Character quote.

Contentoptional
noticenotice

Primary notice text.

Contentrequired
notice2notice2

Secondary notice text.

Contentoptional
notesnotes

Additional notes.

Contentoptional
image-sizeimage-size

Size for the image.

Default
50px
Stringoptional