Template:Message box: Difference between revisions
Jump to navigation
Jump to search
Update on request |
|||
Line 1: | Line 1: | ||
<includeonly><div | <includeonly><div | ||
class="msgbox | class="msgbox {{{class|}}}" | ||
style=" | style=" | ||
background-color: {{{bgcol|#FFFFCC}}}; | |||
border: 2px solid {{{linecol|#616161}}}; | |||
max-width: {{{width| | width: fit-content; | ||
{{#if: {{{ | width: -moz-fit-content; | ||
max-width: {{{width|94%}}}; | |||
place-content: center; | |||
place-items: center; | |||
display: flex; | |||
{{#if: {{{mini|}}} | |||
| padding: 0px 6px 0px 1px; margin: 0 0 1em; | |||
| padding: 3px 12px 3px 7px; margin: 0 auto 1em; text-align:center; | |||
}} | |||
{{{css|}}} | {{{css|}}} | ||
" | " | ||
> | > | ||
<div | <div | ||
style="vertical-align: middle; border: none;" | |||
> {{ | |||
#if: {{{icon|}}} | #if: {{{icon|}}} | ||
| <div | | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}"> | ||
}}{{ | }}{{ | ||
#if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | ||
| <div | | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}" class="nomobile"> | ||
}} {{{imagetextbefore|}}}{{ | }} {{{imagetextbefore|}}}{{ | ||
#if: {{{icon|}}} | #if: {{{icon|}}} | ||
Line 23: | Line 33: | ||
#if: {{{imagesize|}}} | #if: {{{imagesize|}}} | ||
| {{{imagesize}}} | | {{{imagesize}}} | ||
| {{#if: {{{mini| | | {{#if: {{{mini|}}} | 16px | 32px }} | ||
}}|text-top]] | }}|text-top]] | ||
}}{{{imagetextafter|}}}{{ | }}{{{imagetextafter|}}}{{ | ||
Line 33: | Line 43: | ||
}} | }} | ||
</div> | </div> | ||
<div style=" | <div | ||
style="border: none;" | |||
>{{ | |||
#if: {{{title|}}} | #if: {{{title|}}} | ||
| '''{{{title}}}''' | | '''{{{title}}}''' {{ | ||
#if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}} | #if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}} | ||
| <sup>[<nowiki/>{{direct link|{{ | | <sup>[<nowiki/>{{direct link|{{ | ||
Line 56: | Line 68: | ||
{{ | {{ | ||
#if: {{{text|}}} | #if: {{{text|}}} | ||
| <div | | {{ | ||
#if: {{{title|}}} | |||
| <div>{{{text}}}</div> | |||
| {{{text}}} | |||
}} | |||
}} | |||
</div>{{ | |||
#if: {{{nocat|}}} | |||
|| {{ | |||
#ifeq: {{NAMESPACE}} | |||
| Template | |||
| [[Category:Notice templates]] | |||
}} | |||
}} | }} | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Put categories/ | <!-- Put categories/interwiki on the documentation page --> | ||
</noinclude> | </noinclude> |