Template:Message box: Difference between revisions
Jump to navigation
Jump to search
m fixed width for Firefox |
Update on request |
||
Line 1: | Line 1: | ||
<includeonly><div | <includeonly><div | ||
class="msgbox {{{class|}}}" | class="msgbox {{#if: {{{mini|{{{small|}}}}}} | msgbox-mini | }} {{{class|}}}" | ||
style=" | style=" | ||
background | {{#if: {{{bgcol|}}} | background: {{{bgcol}}}; | }} | ||
{{#if: {{{linecol|}}} | border-left: 4px solid {{{linecol}}}; | }} | |||
max-width: {{{width|{{#if: {{{mini|{{{small|}}}}}} | 30em | 90% }}}}}; | |||
{{#if: {{{float|}}} | float: {{{float}}}; | }} | |||
max-width: {{{width| | |||
{{#if: {{{ | |||
{{{css|}}} | {{{css|}}} | ||
" | " | ||
> | > | ||
<div | <div id="msgbox-icon"> {{ | ||
> {{ | |||
#if: {{{icon|}}} | #if: {{{icon|}}} | ||
| <div style=" | | <div id="msgbox-iconimage" style="{{{imagecss|}}}"> | ||
}}{{ | }}{{ | ||
#if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | ||
| <div style=" | | <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%;">{{ | ||
>{{ | |||
#if: {{{title|}}} | #if: {{{title|}}} | ||
| '''{{{title}}}''' {{ | | '''{{{title}}}''' {{ | ||
#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> | |||
</div> | |||
}} | }} | ||
</div> | |||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Put categories/ | <!-- Put categories/interwikis on the documentation page --> | ||
</noinclude> | </noinclude> |