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
sync with sandbox
Line 14: Line 14:
   {{#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% }}}}};
   max-width: {{{width|{{#if: {{{mini|{{{small|}}}}}} | 50em | 90% }}}}};
   {{#if: {{{float|}}} | float: {{{float}}}; | }}
   {{#if: {{{float|}}} | float: {{{float}}}; | }}
   {{{css|}}}
   {{{css|}}}
Line 29: Line 29:
   | {{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 57:
}}{{
}}{{
   #if: {{{linkshere|}}}
   #if: {{{linkshere|}}}
   | <sup>, [[Special:WhatLinksHere/{{FULLPAGENAME}}|links]]<nowiki/>]</sup>
   | {{#if:{{{discuss|}}}|<sup>, [[Special:WhatLinksHere/{{FULLPAGENAME}}|links]]<nowiki/>]</sup>|<sup>[<nowiki/>[[Special:WhatLinksHere/{{FULLPAGENAME}}|links]]<nowiki/>]</sup>}}
   | {{
   | {{
     #if:{{{discuss|}}}
     #if:{{{discuss|}}}

Revision as of 14:48, 19 August 2021

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