Template:Message box: Difference between revisions

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

Revision as of 00:39, 31 March 2021

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