Template:Message box: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
No edit summary
m 1 revision imported
 
(6 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: {{{mini|{{{small|}}}}}} | 50em | 90% }}}}};
   max-width: {{{width|{{#if: {{{subtle|}}} | 306px | {{#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}}}; | }}
Line 20: Line 19:
   "
   "
>
>
<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 34: 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 45: 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 66: Line 65:
{{
{{
   #if: {{{text|}}}
   #if: {{{text|}}}
   | <div id="msgbox-text">{{{text}}}</div>
   | <div class="msgbox-text">{{{text}}}</div>
}}
}}
</div>
</div>

Latest revision as of 14:54, 17 March 2025

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