Template:Notice: Difference between revisions
Appearance
Expanding on notice capabilities |
mNo edit summary |
||
Line 14: | Line 14: | ||
| #eaecf0 | | #eaecf0 | ||
}}; padding: 10px; margin: 10px 0;"> | }}; padding: 10px; margin: 10px 0;"> | ||
{{{1}}} | {{#if: {{{severity|}}} | ||
| {{{1}}} | |||
| {{{1}}} | |||
}} | |||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
Basic usage ( | Basic usage (default gray box): | ||
<pre> | <pre> | ||
{{Notice|Your notice text here}} | {{Notice|Your notice text here}} |
Revision as of 15:28, 17 January 2025
Usage
Basic usage (default gray box):
{{Notice|Your notice text here}}
With severity level:
{{Notice|severity=warning|Your warning text here}} {{Notice|severity=draft|Your draft notice here}} {{Notice|severity=error|Your error message here}} {{Notice|severity=success|Your success message here}}
Severity Colors
- Default: Light gray background (#f8f9fa)
- Warning: Light yellow background (#fff3cd)
- Draft: Light blue background (#cfe2ff)
- Error: Light red background (#f8d7da)
- Success: Light green background (#d1e7dd)