Template:Message box: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
m fix margins
m 96 revisions imported
 
(26 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><div
<includeonly><div
  class="msgbox {{{class|}}}"
  class="msgbox searchaux {{#if: {{{mini|{{{small|}}}}}} | msgbox-mini | }} {{
  #switch: {{{type|}}}
  | style | display | presentation = msgbox-yellow
  | minor | minor-issue | content | issue = msgbox-orange
  | major | major-issue | delete = msgbox-red
  | organization | title | move = msgbox-purple
  | details | parity | edition | upcoming = msgbox-blue
  | notice | note | info = msgbox-green
  | other = msgbox-magenta
  | #default = {{#if: {{#pos: {{{class|}}} | msgbox- <!-- end pos -->}} || msgbox-gray <!-- end if -->}}
}} {{{class|}}}"
  style="
  style="
   background-color: {{{bgcol|#FFFFCC}}};
   max-width: {{{width|{{#if: {{{mini|{{{small|}}}}}} | 50em | 90% }}}}};
   border: 2px solid {{{linecol|#616161}}};
   {{#if: {{{subtle|}}} | max-width: 300px; float: right; clear: both; flex-direction: column; font-size: 95%; }}
   max-width: {{{width|94%}}};
   {{#if: {{{bgcol|}}} | background: {{{bgcol}}}; | }}
   display: flex;
   {{#if: {{{linecol|}}} | border-left: 4px solid {{{linecol}}}; | }}
   {{#if: {{{mini|}}}
   {{#if: {{{float|}}} | float: {{{float}}}; | }}
    | padding: 0px 6px 0px 1px; margin: 0 0 1em;
    | padding: 3px 12px 3px 7px; margin: 0 auto 1em; text-align:center;
  }}
   {{{css|}}}
   {{{css|}}}
   "
   "
>
>
<div
<div id="msgbox-icon"> {{
style="vertical-align: middle; border: none; margin-left: auto;"
class="nomobile"
> {{
   #if: {{{icon|}}}
   #if: {{{icon|}}}
     | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}">
     | <div id="msgbox-iconimage" style="{{{imagecss|}}}">
}}{{
}}{{
   #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}}
   #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}}
   | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}">
   | <div id="msgbox-image" style="{{{imagecss|}}}">
}} {{{imagetextbefore|}}}{{
}} {{{imagetextbefore|}}}{{
   #if: {{{icon|}}}
   #if: {{{icon|}}}
   | {{CommentSprite | {{{icon|}}} }}
   | {{CommentSprite | {{{icon|}}} }}
}}{{
}}{{
  #if: {{{image|}}}
  #if:{{{image|}}}
  | [[File:{{{image}}}|{{
  |{{
    #if: {{{imagesize|}}}
      #if: {{{imageisraw|}}}
    | {{{imagesize}}}
      | {{{image}}}
    | {{#if: {{{mini|}}} | 16px | 32px }}
      | [[File:{{{image}}}|{{#if: {{{imagesize|}}}| {{{imagesize}}}| {{#if: {{{mini|{{{small|}}}}}} | 16px | 32px }}}}|text-top]]
  }}|text-top]]
}}}}{{{imagetextafter|}}}{{
}}{{{imagetextafter|}}}{{
   #if: {{{icon|}}}
   #if: {{{icon|}}}
   | </div>
   | </div>
Line 40: Line 43:
}}
}}
</div>
</div>
<div
<div style="width: 100%;">{{
style="border: none; margin-right: auto;"
>{{
   #if: {{{title|}}}
   #if: {{{title|}}}
   | '''{{{title}}}''' {{
   | '''{{{title}}}'''&nbsp;{{
     #if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}}
     #if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}}
     | <sup>[<nowiki/>{{direct link|{{
     | <sup>[<nowiki/>{{direct link|{{
Line 57: Line 58:
}}{{
}}{{
   #if: {{{linkshere|}}}
   #if: {{{linkshere|}}}
   | <sup>, [[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 66:
{{
{{
   #if: {{{text|}}}
   #if: {{{text|}}}
   | {{
   | <div id="msgbox-text">{{{text}}}</div>
    #if: {{{title|}}}
    | <div>{{{text}}}</div>
    | {{{text}}}
  }}
}}
}}
</div>
</div>{{
</div>{{
   #if: {{{nocat|}}}
   #if: {{{subtle|}}}
   || {{
   | <div class="mobileonly">{{-}}</div>
    #ifeq: {{NAMESPACE}}
}}</includeonly><noinclude>
    | Template
    | [[Category:Notice templates]]
  }}
}}
</div></includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwikis on the documentation page -->
</noinclude>
</noinclude>

Latest revision as of 11:33, 4 July 2024

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