Template:Message box: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Undo revision 1897157 by Nixinova (talk) Revert as I can't add the styling on mobile (screw fandom
reinstate change
Line 1: Line 1:
<includeonly><div
<includeonly><div
  class="msgbox {{{class|}}}"
  class="msgbox {{#if: {{{mini|{{{small|}}}}}} | msgbox-mini | }} {{{class|}}}"
  style="
  style="
   background-color: {{{bgcol|#FFFFCC}}};
   {{#if: {{{bgcol|}}} | background: {{{bgcol}}}; | }}
   border: 2px solid {{{linecol|#616161}}};
   {{#if: {{{linecol|}}} | border-left: 4px solid {{{linecol}}}; | }}
  width: fit-content;
   max-width: {{{width|{{#if: {{{mini|{{{small|}}}}}} | 30em | 90% }}}}};
  width: -moz-fit-content;
   {{#if: {{{float|}}} | float: {{{float}}}; | }}
   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 id="msgbox-icon"> {{
style="vertical-align: middle; border: none;"
> {{
   #if: {{{icon|}}}
   #if: {{{icon|}}}
     | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}">
     | <div id="msgbox-iconimage" style="{{{imagecss|}}}">
}}{{
}}{{
   #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}}
   #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}}
   | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}" class="nomobile">
   | <div id="msgbox-image" class="nomobile" style="{{{imagecss|}}}">
}} {{{imagetextbefore|}}}{{
}} {{{imagetextbefore|}}}{{
   #if: {{{icon|}}}
   #if: {{{icon|}}}
Line 33: Line 23:
     #if: {{{imagesize|}}}
     #if: {{{imagesize|}}}
     | {{{imagesize}}}
     | {{{imagesize}}}
     | {{#if: {{{mini|}}} | 16px | 32px }}
     | {{#if: {{{mini|{{{small|}}}}}} | 16px | 32px }}
   }}|text-top]]
   }}|text-top]]
}}{{{imagetextafter|}}}{{
}}{{{imagetextafter|}}}{{
Line 43: Line 33:
}}
}}
</div>
</div>
<div
<div style="width: 100%;">{{
style="border: none;"
>{{
   #if: {{{title|}}}
   #if: {{{title|}}}
   | '''{{{title}}}''' {{
   | '''{{{title}}}'''&nbsp;{{
     #if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}}
     #if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}}
     | <sup>[<nowiki/>{{direct link|{{
     | <sup>[<nowiki/>{{direct link|{{
Line 68: Line 56:
{{
{{
   #if: {{{text|}}}
   #if: {{{text|}}}
   | {{
   | <div id="msgbox-text">{{{text}}}</div>
    #if: {{{title|}}}
    | <div>{{{text}}}</div>
    | {{{text}}}
  }}
}}
</div>{{
  #if: {{{nocat|}}}
  || {{
    #ifeq: {{NAMESPACE}}
    | Template
    | [[Category:Notice templates]]
  }}
}}
}}
</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwikis on the documentation page -->
</noinclude>
</noinclude>

Revision as of 03:50, 31 March 2021

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