Template:MessageBox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div | <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 | |||
| 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|}}}|link={{#if:{{{dolinkimage|}}}||File:{{{image}}}}}|alt=]] | |||
}}}}{{{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: {{{text|}}} | |||
| <div class="msgbox-text">{{{text}}}</div> | |||
}} | |||
</div> | |||
</div></includeonly><noinclude> | |||
=== Documentation === | === Documentation === | ||
| Line 77: | Line 60: | ||
| title = Minor Edit Notice | | title = Minor Edit Notice | ||
| text = This page contains minor formatting improvements and spelling corrections. No major content changes were made. | | text = This page contains minor formatting improvements and spelling corrections. No major content changes were made. | ||
}} | }} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 84: | Line 66: | ||
| title = Minor Edit Notice | | title = Minor Edit Notice | ||
| text = This page contains minor formatting improvements and spelling corrections. No major content changes were made. | | text = This page contains minor formatting improvements and spelling corrections. No major content changes were made. | ||
}} | }} | ||
| Line 120: | Line 101: | ||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
{{MessageBox | {{MessageBox | ||
| type = major | || type = major | ||
| subtle = 1 | || subtle = 1 | ||
| title = Major Content | || title = Major Content Issue | ||
| text = This article | || text = This article contains significant problems including outdated information, broken links, and inaccurate gameplay mechanics descriptions. | ||
}} | }} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{MessageBox | {{MessageBox | ||
| type = major | || type = major | ||
| subtle = 1 | || subtle = 1 | ||
| title = Major Content | || title = Major Content Issue | ||
| text = This article | || text = This article contains significant problems including outdated information, broken links, and inaccurate gameplay mechanics descriptions. | ||
}} | }} | ||
| Line 185: | Line 164: | ||
}} | }} | ||
[[ru: | [[Category:Notice templates]] | ||
[[ru:Template:MessageBox]] | |||
</noinclude> | </noinclude> | ||
Revision as of 17:43, 14 January 2026
Documentation
Examples:
{{MessageBox
| type = minor
| title = Minor Edit Notice
| text = This page contains minor formatting improvements and spelling corrections. No major content changes were made.
}}
Minor Edit Notice
This page contains minor formatting improvements and spelling corrections. No major content changes were made.
---
{{MessageBox
| type = delete
| mini = 1
| icon = 8
| text = This page has been nominated for deletion due to lack of content. Please review and vote.
}}
This page has been nominated for deletion due to lack of content. Please review and vote.
---
{{MessageBox
| type = info
| small = 1
| icon = 8
| text = Important information: Server maintenance scheduled for tonight from 2 AM to 4 AM UTC.
}}
Important information: Server maintenance scheduled for tonight from 2 AM to 4 AM UTC.
---
{{MessageBox
|| type = major
|| subtle = 1
|| title = Major Content Issue
|| text = This article contains significant problems including outdated information, broken links, and inaccurate gameplay mechanics descriptions.
}}
Major Content Issue
This article contains significant problems including outdated information, broken links, and inaccurate gameplay mechanics descriptions.
---
{{MessageBox
| type = notice
| mini = 1
| icon = 8
| bgcol = rgba(255, 235, 59, 0.1)
| linecol = rgba(255, 235, 59, 0.3)
| css = border-radius: 8px; font-style: italic;
| text = Notice: The wiki will be temporarily unavailable during the server migration next weekend.
}}
Notice: The wiki will be temporarily unavailable during the server migration next weekend.
---
{{MessageBox
| type = issue
| small = 1
| icon = 8
| bgcol = rgba(255, 87, 34, 0.1)
| linecol = rgba(255, 87, 34, 0.3)
| css = box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);
| text = Content issue detected: This article may contain outdated information. Please verify with latest game version.
}}
Content issue detected: This article may contain outdated information. Please verify with latest game version.