Template:Message box: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m changed to avoid default hex |
No edit summary |
||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude><div style="display: flex; justify-content: center;"> | <onlyinclude><div style="display: flex; justify-content: center; margin-bottom:5px;"> | ||
<div style="border: 1px solid #ccc | <div style="border: 1px solid #ccc; width: 80%; min-width: 310px;"> | ||
<div style="display: flex; align-items: center; padding: 7px; {{#if:{{{border|none}}}|border-left: 10px solid {{{border|#e1d2b3}}};}}"> | <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}}}|{{{image-size|50px}}}|link=|alt={{{image|}}}]]|}} | ||
<div style="display: block; margin-left: 15px;"> | <div style="display: block; margin-left: 15px;"> | ||
{{#if:{{{quote|}}}|<div style="font-size: 90%; font-weight: bold; font-style: italic;">“{{{quote}}}”</div>}}<!-- | {{#if:{{{quote|}}}|<div style="font-size: 90%; font-weight: bold; font-style: italic;">“{{{quote}}}”</div>}}<!-- | ||
-->{{#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|Notes}}:''' {{{notes}}}</div>}} | ||
</div></div></div></div></onlyinclude> | </div></div></div></div></onlyinclude> | ||
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 00:14, 1 May 2026
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| border | border | Hex color for the left border.
| String | optional |
| image | image | Image to be displayed. | File | optional |
| quote | quote | Character quote. | Content | optional |
| notice | notice | Primary notice text. | Content | required |
| notice2 | notice2 | Secondary notice text. | Content | optional |
| notes | notes | Additional notes. | Content | optional |
| image-size | image-size | Size for the image.
| String | optional |