Template:Message box: Difference between revisions
Jump to navigation
Jump to search
m removing space just in case |
m optional border |
||
Line 1: | Line 1: | ||
<onlyinclude><div style="display: flex; justify-content: center;"> | <onlyinclude><div style="display: flex; justify-content: center;"> | ||
<div style="border: 1px solid #ccc; background-color: | <div style="border: 1px solid #ccc; background-color: #f8f7f5; width: 80%; min-width: 310px;"> | ||
<div style="display: flex; align-items: center; border-left: 10px solid {{{ | <div style="display: flex; align-items: center; padding: 7px; {{#ifeq:{{{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;"> |
Revision as of 02:08, 4 December 2024
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.
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 |