Template:Message box: Difference between revisions
Jump to navigation
Jump to search
m 96 revisions imported |
|||
(17 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=" | ||
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}}}; | }} | |||
{{#if: {{{ | |||
{{{css|}}} | {{{css|}}} | ||
" | " | ||
> | > | ||
<div | <div id="msgbox-icon"> {{ | ||
> {{ | |||
#if: {{{icon|}}} | #if: {{{icon|}}} | ||
| <div style=" | | <div id="msgbox-iconimage" style="{{{imagecss|}}}"> | ||
}}{{ | }}{{ | ||
#if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | #if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | ||
| <div style=" | | <div id="msgbox-image" style="{{{imagecss|}}}"> | ||
}} {{{imagetextbefore|}}}{{ | }} {{{imagetextbefore|}}}{{ | ||
#if: {{{icon|}}} | #if: {{{icon|}}} | ||
| {{CommentSprite | {{{icon|}}} }} | | {{CommentSprite | {{{icon|}}} }} | ||
}}{{ | }}{{ | ||
#if:{{{image|}}} | |||
|{{ | |||
#if: {{{imageisraw|}}} | |||
| {{{image}}} | |||
| [[File:{{{image}}}|{{#if: {{{imagesize|}}}| {{{imagesize}}}| {{#if: {{{mini|{{{small|}}}}}} | 16px | 32px }}}}|text-top]] | |||
}}}}{{{imagetextafter|}}}{{ | |||
}}{{{imagetextafter|}}}{{ | |||
#if: {{{icon|}}} | #if: {{{icon|}}} | ||
| </div> | | </div> | ||
Line 43: | Line 43: | ||
}} | }} | ||
</div> | </div> | ||
<div | <div style="width: 100%;">{{ | ||
>{{ | |||
#if: {{{title|}}} | #if: {{{title|}}} | ||
| '''{{{title}}}''' {{ | | '''{{{title}}}''' {{ | ||
#if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}} | #if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}} | ||
| <sup>[<nowiki/>{{direct link|{{ | | <sup>[<nowiki/>{{direct link|{{ | ||
Line 60: | 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 68: | Line 66: | ||
{{ | {{ | ||
#if: {{{text|}}} | #if: {{{text|}}} | ||
| <div id="msgbox-text">{{{text}}}</div> | |||
}} | }} | ||
</div> | |||
</div>{{ | </div>{{ | ||
#if: {{{ | #if: {{{subtle|}}} | ||
| | | <div class="mobileonly">{{-}}</div> | ||
}}</includeonly><noinclude> | |||
</div></includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
<!-- Put categories/ | <!-- Put categories/interwikis on the documentation page --> | ||
</noinclude> | </noinclude> |