Template:Message box: Difference between revisions
Jump to navigation
Jump to search
Reduced whitespace on lower resolutions |
m removing space just in case |
||
Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude><div style="display: flex; justify-content: center;"> | ||
<div style="display: flex; justify-content: center"> | <div style="border: 1px solid #ccc; background-color: {{{bgcolor|#f8f7f5}}}; width: 80%; min-width: 310px;"> | ||
<div style="border: 1px solid #ccc; background-color: {{{bgcolor|#f8f7f5}}}; width: 80%; min-width: 310px"> | |||
<div style="display: flex; align-items: center; border-left: 10px solid {{{bdcolor|#e1d2b3}}}; padding: 7px;"> | <div style="display: flex; align-items: center; border-left: 10px solid {{{bdcolor|#e1d2b3}}}; padding: 7px;"> | ||
{{#if:{{{image|}}}|[[File:{{{image}}}|50px|link=]]|}} | {{#if:{{{image|}}}|[[File:{{{image}}}|50px|link=]]|}} | ||
Line 9: | 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> </div></onlyinclude> | </div></div></div></div></onlyinclude> | ||
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude> |
Latest revision as of 12:49, 24 September 2024
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 other message boxes, see Category:Message box templates.
Examples[edit source]
{{Message box | bgcolor = #f8f7f5 | bdcolor = #e1d2b3 | image = Bebop MM.png | quote = Optional quote. | notice = This is a notice. | notice2 = Optional text. | notes = Optional notes. }}
“Optional quote.”
This is a notice.
Optional text.
Notes: Optional notes.
{{Message box | bgcolor = #f8f7f5 | bdcolor = #e1d2b3 | notice = This is a notice. }}
This is a notice.