Template:Message box: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Updated the no-included part to be more consistent with most other templates
Prevent msgboxes from leaving the screen on mobile
Line 1: Line 1:
<includeonly>{| class="msgbox {{{class|}}}" style="background-color: {{{bgcol|#FFFFCC}}}; border: 2px solid {{{linecol|#616161}}}; {{#if: {{{width|}}} | max-width: {{{width}}}; }}<!--
<includeonly>{| class="msgbox {{{class|}}}" style="background-color: {{{bgcol|#FFFFCC}}}; border: 2px solid {{{linecol|#616161}}}; {{#if: {{{width|}}} | max-width: {{{width|94%}}}; }}<!--
-->{{#if: {{{mini|}}} | padding: 0px 6px 0px 1px; margin: 0 0 1em; | padding: 3px 12px 3px 7px; margin: 0 auto 1em; text-align:center; }} {{{css|}}}"
-->{{#if: {{{mini|}}} | padding: 0px 6px 0px 1px; margin: 0 0 1em; | padding: 3px 12px 3px 7px; margin: 0 auto 1em; text-align:center; }}{{{css|}}}"
|-
|-
| style="vertical-align: middle; border: none" | {{#if: {{{icon|}}} | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}"> }}{{#if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}"> }}<!--
| style="vertical-align: middle; border: none" | {{#if: {{{icon|}}} | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}"> }}{{#if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}"> }}<!--

Revision as of 20:21, 28 May 2019

[create] [refresh]Documentation
This template has no documentation. If you know how to use this template, please create it.