Template:Message box: Difference between revisions

No edit summary
m 1 revision imported
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><div
<includeonly><div
  class="msgbox searchaux {{#if: {{{mini|{{{small|}}}}}} | msgbox-mini | }} {{
  class="msgbox searchaux {{#if: {{{mini|{{{small|}}}}}} | msgbox-mini | }} {{#if: {{{subtle|}}} | msgbox-subtle | }} {{
   #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: {{{subtle|}}} | 306px | {{#if: {{{mini|{{{small|}}}}}} | 50em | 90% }} }}}}};
   {{#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|}}}}}} | 50em | 90% }}}}};
   {{#if: {{{float|}}} | float: {{{float}}}; | }}
   {{#if: {{{float|}}} | float: {{{float}}}; | }}
   {{{css|}}}
   {{{css|}}}
   "
   "
>
>
<div id="msgbox-icon"> {{
<div class="msgbox-icon"> {{
   #if: {{{icon|}}}
   #if: {{{icon|}}}
     | <div id="msgbox-iconimage" style="{{{imagecss|}}}">
     | <div class="msgbox-iconimage" style="{{{imagecss|}}}">
}}{{
}}{{
   #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}}
   #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}}
   | <div id="msgbox-image" class="nomobile" style="{{{imagecss|}}}">
   | <div class="msgbox-image nomobile" style="{{{imagecss|}}}">
}} {{{imagetextbefore|}}}{{
}} {{{imagetextbefore|}}}{{
   #if: {{{icon|}}}
   #if: {{{icon|}}}
Line 33: Line 33:
       #if: {{{imageisraw|}}}  
       #if: {{{imageisraw|}}}  
       | {{{image}}}  
       | {{{image}}}  
       | [[File:{{{image}}}|{{#if: {{{imagesize|}}}| {{{imagesize}}}| {{#if: {{{mini|{{{small|}}}}}} | 16px | 32px }}}}|text-top]]
       | [[File:{{{image}}}|{{#if: {{{imagesize|}}}| {{{imagesize}}}| {{#if: {{{mini|{{{small|}}}}}} | 16px | 32px }}}}|text-top|class={{{imageclass|}}}]]
}}}}{{{imagetextafter|}}}{{
}}}}{{{imagetextafter|}}}{{
   #if: {{{icon|}}}
   #if: {{{icon|}}}
Line 44: Line 44:
<div style="width: 100%;">{{
<div style="width: 100%;">{{
   #if: {{{title|}}}
   #if: {{{title|}}}
   | '''{{{title}}}'''&nbsp;{{
   | <div style="font-weight: bold; display: inline">{{{title}}}</div>&nbsp;{{
     #if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}}
     #if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}}
     | <sup>[<nowiki/>{{direct link|{{
     | <sup>[<nowiki/>{{direct link|{{
Line 65: Line 65:
{{
{{
   #if: {{{text|}}}
   #if: {{{text|}}}
   | <div id="msgbox-text">{{{text}}}</div>
   | <div class="msgbox-text">{{{text}}}</div>
}}
}}
</div>
</div>