Template:Message box: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
reveal
m changed to avoid default hex
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude><div style="border: 1px solid #ccc; background-color: {{{bgcolor|#f8f7f5}}}; margin: 0 15%;">
<onlyinclude><div style="display: flex; justify-content: center;">
<div style="display: flex; align-items: center; border-left: 10px solid {{{bdcolor|#e1d2b3}}}; padding: 7px;">
<div style="border: 1px solid #ccc; background-color: #f8f7f5; width: 80%; min-width: 310px;">
<div style="display: flex; align-items: center; padding: 7px; {{#if:{{{border|none}}}|border-left: 10px solid {{{border|#e1d2b3}}};}}">
{{#if:{{{image|}}}|[[File:{{{image}}}|50px|link=]]|}}
{{#if:{{{image|}}}|[[File:{{{image}}}|50px|link=]]|}}
<div style="display: block; margin-left: 15px;">
<div style="display: block; margin-left: 15px;">
Line 7: Line 8:
-->{{#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%;">'''Notes:''' {{{notes}}}</div>}}
</div></div></div></onlyinclude><noinclude>{{Documentation}}</noinclude>
</div></div></div></div></onlyinclude>
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 05:29, 4 December 2024

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

Usage[edit source]

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[edit source]

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

Primary notice text.
Secondary notice text.
Notes: 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