Template:Message box: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Add imagetext. (btw this template really sucks)
m 96 revisions imported
 
(54 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<includeonly>{| class="msgbox" style="background-color: {{{bgcol|#FFFFCC}}}; border: 2px solid {{{linecol|#616161}}}; {{#if: {{{width|}}} | max-width: {{{width}}}; }}<!--
<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 searchaux {{#if: {{{mini|{{{small|}}}}}} | msgbox-mini | }} {{
|-
  #switch: {{{type|}}}
| style="vertical-align: middle; border: none" | {{#if: {{{icon|}}} | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px"> }}{{#if: {{{image|}}}{{{imagetext|}}} | <div style="margin: 0 {{#if: {{{mini|}}} | 2 | 4 }}px 0 3px"> }}<!--
  | style | display | presentation = msgbox-yellow
-->{{#if: {{{imagetext|}}} | {{{imagetext}}} | {{#if: {{{icon|}}} | {{CommentSprite | {{{icon|}}} }} }}{{#if: {{{image|}}} | [[File:{{{image}}}|{{#if: {{{imagesize|}}} | {{{imagesize}}} | {{#if: {{{mini|}}} | 16px | 32px }} }}|text-top]] }} }}</div>
  | minor | minor-issue | content | issue = msgbox-orange
| style="border: none" | {{#if: {{{title|}}} | '''{{{title}}}''' {{#if: {{{discuss|}}} | <sup>[[{{TALKPAGENAME}}{{#if:{{{discussAnchor|}}} | &#35;{{{discussAnchor}}} }}|Discuss]]</sup> }} }}<!--
  | major | major-issue | delete = msgbox-red
-->{{#if: {{{text|}}} | {{#if: {{{title|}}} | <div>{{{text}}}</div> | {{{text}}} }} }}
  | organization | title | move = msgbox-purple
|}{{#ifeq: {{NAMESPACE}} | Template | [[Category:Notice templates|{{BASEPAGENAME}}]] }}</includeonly><noinclude>
  | details | parity | edition | upcoming = msgbox-blue
{{/doc}}</noinclude>
  | notice | note | info = msgbox-green
  | other = msgbox-magenta
  | #default = {{#if: {{#pos: {{{class|}}} | msgbox- <!-- end pos -->}} || msgbox-gray <!-- end if -->}}
}} {{{class|}}}"
style="
  max-width: {{{width|{{#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: {{{linecol|}}} | border-left: 4px solid {{{linecol}}}; | }}
  {{#if: {{{float|}}} | float: {{{float}}}; | }}
  {{{css|}}}
  "
>
<div id="msgbox-icon"> {{
  #if: {{{icon|}}}
    | <div id="msgbox-iconimage" style="{{{imagecss|}}}">
}}{{
  #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}}
  | <div id="msgbox-image" style="{{{imagecss|}}}">
}} {{{imagetextbefore|}}}{{
  #if: {{{icon|}}}
  | {{CommentSprite | {{{icon|}}} }}
}}{{
  #if:{{{image|}}}
  |{{
      #if: {{{imageisraw|}}}
      | {{{image}}}
      | [[File:{{{image}}}|{{#if: {{{imagesize|}}}| {{{imagesize}}}| {{#if: {{{mini|{{{small|}}}}}} | 16px | 32px }}}}|text-top]]
}}}}{{{imagetextafter|}}}{{
  #if: {{{icon|}}}
  | </div>
}}{{
  #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}}
  | </div>
}}
</div>
<div style="width: 100%;">{{
  #if: {{{title|}}}
  | '''{{{title}}}'''&nbsp;{{
    #if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}}
    | <sup>[<nowiki/>{{direct link|{{
      #if: {{{discussPage|}}}
      | {{{discussPage}}}
      | {{TALKPAGENAME}}
    }}{{
      #if: {{{discussAnchor|}}}
      | &#35;{{{discussAnchor}}}
    }}|discuss}}</sup>
  }}
}}{{
  #if: {{{linkshere|}}}
  | <sup>{{#if:{{{discuss|}}}|, <nowiki/>|[<nowiki/>}}[[Special:WhatLinksHere/{{FULLPAGENAME}}|links]]{{#ifeq:{{NAMESPACENUMBER}}|6|, [[Special:GlobalUsage/{{PAGENAME}}|global usage]]}}<nowiki/>]</sup>
  | {{
    #if:{{{discuss|}}}
    |<sup>]</sup>
  }}
}}
{{
  #if: {{{text|}}}
  | <div id="msgbox-text">{{{text}}}</div>
}}
</div>
</div>{{
  #if: {{{subtle|}}}
  | <div class="mobileonly">{{-}}</div>
}}</includeonly><noinclude>
{{documentation}}
<!-- Put categories/interwikis on the documentation page -->
</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.