Template:Message box: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
superscript the brackets
Attempt to cleanup and modernize template
Line 1: Line 1:
<includeonly>{| class="msgbox {{{class|}}}" style="background-color: {{{bgcol|#FFFFCC}}}; border: 2px solid {{{linecol|#616161}}}; max-width: {{{width|94%}}};<!--
<includeonly><div
-->{{#if: {{{mini|}}} | padding: 0px 6px 0px 1px; margin: 0 0 1em; | padding: 3px 12px 3px 7px; margin: 0 auto 1em; text-align:center; }}{{{css|}}}"
class="msgbox {{{class|}}}"
|-
style="
| style="vertical-align: middle; border: none" class="nomobile" | {{#if: {{{icon|}}} | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}"> }}{{#if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}"> }}<!--
  background-color: {{{bgcol|#FFFFCC}}};
-->{{{imagetextbefore|}}}{{#if: {{{icon|}}} | {{CommentSprite | {{{icon|}}} }} }}{{#if: {{{image|}}} | [[File:{{{image}}}|{{#if: {{{imagesize|}}} | {{{imagesize}}} | {{#if: {{{mini|}}} | 16px | 32px }} }}|text-top]] }}{{{imagetextafter|}}}</div>
  border: 2px solid {{{linecol|#616161}}};
| style="border: none" | {{#if: {{{title|}}} | '''{{{title}}}''' {{#if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}} | <sup>[<nowiki/>{{direct link|{{#if: {{{discussPage|}}} | {{{discussPage}}} | {{TALKPAGENAME}} }}{{#if:{{{discussAnchor|}}} | &#35;{{{discussAnchor}}} }}|discuss}}</sup> }} }}{{#if: {{{linkshere|}}} | <sup>, [[Special:WhatLinksHere/{{FULLPAGENAME}}|links]]<nowiki/>]</sup> | {{#if:{{{discuss|}}}|<sup>]</sup>}} }}<!--
  max-width: {{{width|94%}}};
-->{{#if: {{{text|}}} | {{#if: {{{title|}}} | <div>{{{text}}}</div> | {{{text}}} }} }}
  {{#if: {{{mini|}}}
|}{{#if: {{{nocat|}}} || {{#ifeq: {{NAMESPACE}} | Template | [[Category:Notice templates]] }} }}</includeonly><noinclude>
    | padding: 0px 6px 0px 1px; margin: 0 0 1em; | padding: 3px 12px 3px 7px; margin: 0 auto 1em; text-align:center;
  }}
  {{{css|}}}
  "
>
<div
style="vertical-align: middle; border: none"
class="nomobile"
> {{
  #if: {{{icon|}}}
    | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}">
  }}{{
    #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}}
    | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px;{{{imagecss|}}}">
  }} {{{imagetextbefore|}}}{{
    #if: {{{icon|}}}
    | {{CommentSprite | {{{icon|}}} }}
  }}{{
    #if: {{{image|}}}
    | [[File:{{{image}}}|{{
      #if: {{{imagesize|}}}
      | {{{imagesize}}}
      | {{#if: {{{mini|}}} | 16px | 32px }}
    }}|text-top]]
  }}{{{imagetextafter|}}}{{
  #if: {{{icon|}}}
  | </div>
}}
</div>
<div
style="border: none"
>{{
  #if: {{{title|}}}
  | '''{{{title}}}''' {{
    #if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}}
    | <sup>[<nowiki/>{{direct link|{{
      #if: {{{discussPage|}}}
      | {{{discussPage}}}
      | {{TALKPAGENAME}}
    }}{{
      #if: {{{discussAnchor|}}}
      | &#35;{{{discussAnchor}}}
    }}|discuss}}</sup>
  }}
}}{{
  #if: {{{linkshere|}}}
  | <sup>, [[Special:WhatLinksHere/{{FULLPAGENAME}}|links]]<nowiki/>]</sup>
  | {{
    #if:{{{discuss|}}}
    |<sup>]</sup>
  }}
}}{{
  #if: {{{text|}}}
  | {{
    #if: {{{title|}}}
    | <div>{{{text}}}</div>
    | {{{text}}}
  }}
}}
</div>{{
  #if: {{{nocat|}}}
  || {{
    #ifeq: {{NAMESPACE}}
    | Template
    | [[Category:Notice templates]]
  }}
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwiki on the documentation page -->
</noinclude>
</noinclude>

Revision as of 05:31, 6 September 2020

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