Template:Message box: Difference between revisions
Jump to navigation
Jump to search
Add {{{subtle}}} option to allow not having the message box span the whole screen |
m 96 revisions imported |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 13: | Line 13: | ||
style=" | style=" | ||
max-width: {{{width|{{#if: {{{mini|{{{small|}}}}}} | 50em | 90% }}}}}; | max-width: {{{width|{{#if: {{{mini|{{{small|}}}}}} | 50em | 90% }}}}}; | ||
{{#if: {{{subtle|}}} | max-width: 300px; float: right; flex-direction: column; font-size: 95%; }} | {{#if: {{{subtle|}}} | max-width: 300px; float: right; clear: both; flex-direction: column; font-size: 95%; }} | ||
{{#if: {{{bgcol|}}} | background: {{{bgcol}}}; | }} | {{#if: {{{bgcol|}}} | background: {{{bgcol}}}; | }} | ||
{{#if: {{{linecol|}}} | border-left: 4px solid {{{linecol}}}; | }} | {{#if: {{{linecol|}}} | border-left: 4px solid {{{linecol}}}; | }} | ||
Line 25: | Line 25: | ||
}}{{ | }}{{ | ||
#if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | ||
| <div id="msgbox-image | | <div id="msgbox-image" style="{{{imagecss|}}}"> | ||
}} {{{imagetextbefore|}}}{{ | }} {{{imagetextbefore|}}}{{ | ||
#if: {{{icon|}}} | #if: {{{icon|}}} | ||
Line 69: | Line 69: | ||
}} | }} | ||
</div> | </div> | ||
</div></includeonly><noinclude> | </div>{{ | ||
#if: {{{subtle|}}} | |||
| <div class="mobileonly">{{-}}</div> | |||
}}</includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
<!-- Put categories/interwikis on the documentation page --> | <!-- Put categories/interwikis on the documentation page --> | ||
</noinclude> | </noinclude> |