Template:Message box: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Fix double-classed infoboxes if someone doesn't have a `type` but has a `class` that is another color; we'd get an infobox that's both orange (or another color) and grey
m 96 revisions imported
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><div
<includeonly><div
  class="msgbox {{#if: {{{mini|{{{small|}}}}}} | msgbox-mini | }} {{
  class="msgbox searchaux {{#if: {{{mini|{{{small|}}}}}} | msgbox-mini | }} {{
   #switch: {{{type|}}}
   #switch: {{{type|}}}
   | style | display | presentation = msgbox-yellow
   | style | display | presentation = msgbox-yellow
Line 12: Line 12:
  }} {{{class|}}}"
  }} {{{class|}}}"
  style="
  style="
  max-width: {{{width|{{#if: {{{mini|{{{small|}}}}}} | 50em | 90% }}}}};
  {{#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}}}; | }}
  max-width: {{{width|{{#if: {{{mini|{{{small|}}}}}} | 30em | 90% }}}}};
   {{#if: {{{float|}}} | float: {{{float}}}; | }}
   {{#if: {{{float|}}} | float: {{{float}}}; | }}
   {{{css|}}}
   {{{css|}}}
Line 24: Line 25:
}}{{
}}{{
   #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}}
   #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}}
   | <div id="msgbox-image" class="nomobile" style="{{{imagecss|}}}">
   | <div id="msgbox-image" style="{{{imagecss|}}}">
}} {{{imagetextbefore|}}}{{
}} {{{imagetextbefore|}}}{{
   #if: {{{icon|}}}
   #if: {{{icon|}}}
   | {{CommentSprite | {{{icon|}}} }}
   | {{CommentSprite | {{{icon|}}} }}
}}{{
}}{{
  #if: {{{image|}}}
  #if:{{{image|}}}
  | [[File:{{{image}}}|{{
  |{{
    #if: {{{imagesize|}}}
      #if: {{{imageisraw|}}}
    | {{{imagesize}}}
      | {{{image}}}
    | {{#if: {{{mini|{{{small|}}}}}} | 16px | 32px }}
      | [[File:{{{image}}}|{{#if: {{{imagesize|}}}| {{{imagesize}}}| {{#if: {{{mini|{{{small|}}}}}} | 16px | 32px }}}}|text-top]]
  }}|text-top]]
}}}}{{{imagetextafter|}}}{{
}}{{{imagetextafter|}}}{{
   #if: {{{icon|}}}
   #if: {{{icon|}}}
   | </div>
   | </div>
Line 58: Line 58:
}}{{
}}{{
   #if: {{{linkshere|}}}
   #if: {{{linkshere|}}}
   | <sup>, [[Special:WhatLinksHere/{{FULLPAGENAME}}|links]]<nowiki/>]</sup>
   | <sup>{{#if:{{{discuss|}}}|, <nowiki/>|[<nowiki/>}}[[Special:WhatLinksHere/{{FULLPAGENAME}}|links]]{{#ifeq:{{NAMESPACENUMBER}}|6|, [[Special:GlobalUsage/{{PAGENAME}}|global usage]]}}<nowiki/>]</sup>
   | {{
   | {{
     #if:{{{discuss|}}}
     #if:{{{discuss|}}}
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>

Latest revision as of 11:33, 4 July 2024

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