Template:Message box: Difference between revisions
Add wlh param |
m 1 revision imported |
||
(39 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><div | ||
-- | class="msgbox searchaux {{#if: {{{mini|{{{small|}}}}}} | msgbox-mini | }} {{#if: {{{subtle|}}} | msgbox-subtle | }} {{ | ||
#switch: {{{type|}}} | |||
| style | display | presentation = msgbox-yellow | |||
| minor | minor-issue | content | issue = msgbox-orange | |||
| style=" | | 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=" | |||
max-width: {{{width|{{#if: {{{subtle|}}} | 306px | {{#if: {{{mini|{{{small|}}}}}} | 50em | 90% }} }}}}}; | |||
{{#if: {{{bgcol|}}} | background: {{{bgcol}}}; | }} | |||
{{#if: {{{linecol|}}} | border-left: 4px solid {{{linecol}}}; | }} | |||
{{#if: {{{float|}}} | float: {{{float}}}; | }} | |||
{{{css|}}} | |||
" | |||
> | |||
<div class="msgbox-icon"> {{ | |||
#if: {{{icon|}}} | |||
| <div class="msgbox-iconimage" style="{{{imagecss|}}}"> | |||
}}{{ | |||
#if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | |||
| <div class="msgbox-image nomobile" style="{{{imagecss|}}}"> | |||
}} {{{imagetextbefore|}}}{{ | |||
#if: {{{icon|}}} | |||
| {{CommentSprite | {{{icon|}}} }} | |||
}}{{ | |||
#if:{{{image|}}} | |||
|{{ | |||
#if: {{{imageisraw|}}} | |||
| {{{image}}} | |||
| [[File:{{{image}}}|{{#if: {{{imagesize|}}}| {{{imagesize}}}| {{#if: {{{mini|{{{small|}}}}}} | 16px | 32px }}}}|text-top|class={{{imageclass|}}}]] | |||
}}}}{{{imagetextafter|}}}{{ | |||
#if: {{{icon|}}} | |||
| </div> | |||
}}{{ | |||
#if: {{{image|}}}{{{imagetextbefore|}}}{{{imagetextafter|}}} | |||
| </div> | |||
}} | |||
</div> | |||
<div style="width: 100%;">{{ | |||
#if: {{{title|}}} | |||
| <div style="font-weight: bold; display: inline">{{{title}}}</div> {{ | |||
#if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}} | |||
| <sup>[<nowiki/>{{direct link|{{ | |||
#if: {{{discussPage|}}} | |||
| {{{discussPage}}} | |||
| {{TALKPAGENAME}} | |||
}}{{ | |||
#if: {{{discussAnchor|}}} | |||
| #{{{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 class="msgbox-text">{{{text}}}</div> | |||
}} | |||
</div> | |||
</div></includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
<!-- Put categories/ | <!-- Put categories/interwikis on the documentation page --> | ||
</noinclude> | </noinclude> |