Template:Message box: Difference between revisions
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|}}}}}} | | 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: {{{imageisraw|}}} | |||
| {{{image}}} | |||
| [[File:{{{image}}}|{{#if: {{{imagesize|}}}| {{{imagesize}}}| {{#if: {{{mini|{{{small|}}}}}} | 16px | 32px }}}}|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|}}} |