Template:Message box: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
sync with sandbox
m 1 revision imported
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><div
<includeonly><div
  class="msgbox {{#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 57: Line 57:
}}{{
}}{{
   #if: {{{linkshere|}}}
   #if: {{{linkshere|}}}
   | {{#if:{{{discuss|}}}|<sup>, [[Special:WhatLinksHere/{{FULLPAGENAME}}|links]]<nowiki/>]</sup>|<sup>[<nowiki/>[[Special:WhatLinksHere/{{FULLPAGENAME}}|links]]<nowiki/>]</sup>}}
   | <sup>{{#if:{{{discuss|}}}|, <nowiki/>|[<nowiki/>}}[[Special:WhatLinksHere/{{FULLPAGENAME}}|links]]{{#ifeq:{{NAMESPACENUMBER}}|6|, [[Special:GlobalUsage/{{PAGENAME}}|global usage]]}}<nowiki/>]</sup>
   | {{
   | {{
     #if:{{{discuss|}}}
     #if:{{{discuss|}}}
Line 65: 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.