Difference between revisions of "Template:Notice"
no edit summary
imported>Kicoax |
imported>Kicoax |
||
Line 2: | Line 2: | ||
<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== | |||
{| | |||
! 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}} | |||
|} | |||
</noinclude> |