Jump to content

Template:Notice: Difference between revisions

From Consumer Rights Wiki
mNo edit summary
mNo edit summary
Line 14: Line 14:
   | #eaecf0
   | #eaecf0
}}; padding: 10px; margin: 10px 0;">
}}; padding: 10px; margin: 10px 0;">
{{#if: {{{severity|}}}
{{{1}}}
  | {{{1}}}
  | {{{1}}}
}}
</div>
</div>
</includeonly>
</includeonly>

Revision as of 15:31, 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)