Jump to content

Template:Notice: Difference between revisions

From Consumer_Action_Taskforce
Fixed the notices
Reverting, switches are hard.
Line 1: Line 1:
<!-- Template:Notice -->
<div class="notice" style="background-color: #f8f9fa; border: 1px solid #eaecf0; padding: 10px; margin: 10px 0;">
<includeonly>
<div class="notice" style="background-color: {{{color|#f8f9fa}}}; border: 1px solid #eaecf0; padding: 10px; margin: 10px 0;">
{{{1}}}
{{{1}}}
</div>
</div>
</includeonly>
<noinclude>
== Usage ==
Basic usage:
<pre>
{{Notice|Your notice text here}}
{{Notice|Your notice text here}}
</pre>
With background color:
<pre>
{{Notice|color=#cfe2ff|Your blue notice here}}
{{Notice|color=#fff3cd|Your orange notice here}}
{{Notice|color=#f8d7da|Your red notice here}}
{{Notice|color=#d1e7dd|Your green notice here}}
</pre>
=== Live Examples ===
Default notice:
{{Notice|This is a default notice}}
Blue notice:
{{Notice|color=#cfe2ff|This is a blue notice}}
Orange notice:
{{Notice|color=#fff3cd|This is an orange notice}}
Red notice:
{{Notice|color=#f8d7da|This is a red notice}}
Green notice:
{{Notice|color=#d1e7dd|This is a green notice}}
[[Category:Templates]]
</noinclude>

Revision as of 16:12, 17 January 2025

{{{1}}}

Your notice text here

Template loop detected: Template:Notice