Template:Notice: Difference between revisions
mNo edit summary |
Fixed the notices |
||
Line 1: | Line 1: | ||
<!-- Template:Notice --> | <!-- Template:Notice --> | ||
<includeonly> | <includeonly> | ||
<div class="notice" style="background-color: {{ | <div class="notice" style="background-color: {{{color|#f8f9fa}}}; border: 1px solid #eaecf0; padding: 10px; margin: 10px 0;"> | ||
}}; border: 1px solid | |||
{{{1}}} | {{{1}}} | ||
</div> | </div> | ||
Line 19: | Line 7: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
Basic usage | Basic usage: | ||
<pre> | <pre> | ||
{{Notice|Your notice text here}} | {{Notice|Your notice text here}} | ||
</pre> | </pre> | ||
With | With background color: | ||
<pre> | <pre> | ||
{{Notice| | {{Notice|color=#cfe2ff|Your blue notice here}} | ||
{{Notice| | {{Notice|color=#fff3cd|Your orange notice here}} | ||
{{Notice| | {{Notice|color=#f8d7da|Your red notice here}} | ||
{{Notice| | {{Notice|color=#d1e7dd|Your green notice here}} | ||
</pre> | </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]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |