Template:Message box: Difference between revisions
Jump to navigation
Jump to search
superscript the brackets |
Attempt to cleanup and modernize template |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><div | ||
class="msgbox {{{class|}}}" | |||
style=" | |||
background-color: {{{bgcol|#FFFFCC}}}; | |||
border: 2px solid {{{linecol|#616161}}}; | |||
max-width: {{{width|94%}}}; | |||
{{#if: {{{mini|}}} | |||
| 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|}}} | |||
| #{{{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> |