Difference between revisions of "Template:Notice"
Added categories.
imported>Kicoax |
imported>Qazaaq (Added categories.) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<div style="width: 50%; margin: 0 auto; padding: 10px; border: 1px solid {{#switch: {{{3|}}} | info = #bcdff1 | warning = #faf2cc | danger = | <div style="width: 50%; margin: 0 auto; padding: 10px; border: 1px solid {{#switch: {{{3|}}} | info = #bcdff1 | warning = #faf2cc | danger = red | #bcdff1 }}; border-left-width: 8px; background: {{#switch: {{{3|}}} | info = #d9edf7 | warning = #fcf8e3 | danger = #fee | #d9edf7 }};"> | ||
<div style="font-weight: bold; font-size: 1.5em; width: 100%;">{{{1}}}</div> | <div style="font-weight: bold; font-size: 1.5em; width: 100%;">{{{1}}}</div> | ||
{{#if:{{{2|}}}|<p>{{{2}}}</p>}} | {{#if:{{{2|}}}|<p>{{{2}}}</p>}} | ||
</div> | </div><noinclude>Displays a notice box. | ||
==Parameters== | |||
#The title of the notice | |||
#The body of the notice | |||
#The type of the notice (info, warning, or danger) | |||
==Examples== | |||
{| class="wikitable" | |||
! Source || Output | |||
|- | |||
| <code><nowiki>{{Notice|Some strange notice}}</nowiki></code> || {{Notice|Some strange notice}} | |||
|- | |||
| <code><nowiki>{{Notice|Some strange notice|This is the body of the notice.|warning}}</nowiki></code> || {{Notice|Some strange notice|This is the body of the notice.|warning}} | |||
|- | |||
| <code><nowiki>{{Notice|Some strange notice|This is the body of the notice.|danger}}</nowiki></code> || {{Notice|Some strange notice|This is the body of the notice.|danger}} | |||
|} | |||
[[Category:Templates]] | |||
</noinclude> |