Template:Message box: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Mgpt (talk | contribs)
create msgbox template
 
Mgpt (talk | contribs)
m removing space just in case
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><div style="border: 1px solid #ccc; background-color: {{{bgcolor|#f8f7f5}}}; margin: 0 15%;">
<onlyinclude><div style="display: flex; justify-content: center;">
<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=]]|}}
<div style="display: block; margin-left: 15px;">
<div style="display: block; margin-left: 15px;">
{{#if:{{{notice|}}}|<div style="font-size:100%;">{{{notice}}}</div>}}<!--
{{#if:{{{quote|}}}|<div style="font-size: 90%; font-weight: bold; font-style: italic;">“{{{quote}}}”</div>}}<!--
-->{{#if:{{{notice2|}}}|<div style="font-size:95%;">{{{notice2}}}</div>}}<!--
-->{{#if:{{{notice|}}}|<div style="font-size: 95%;">{{{notice}}}</div>}}<!--
-->{{#if:{{{notes|}}}|<div style="font-size:95%;">'''Notes:''' {{{notes}}}</div>}}
-->{{#if:{{{notice2|}}}|<div style="font-size: 95%;">{{{notice2}}}</div>}}<!--
</div></div></div></includeonly><noinclude>{{Documentation}}</noinclude>
-->{{#if:{{{notes|}}}|<div style="font-size: 90%;">'''Notes:''' {{{notes}}}</div>}}
</div></div></div></div></onlyinclude>
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 12:49, 24 September 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 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.