Difference between revisions of "Template:Notice"

701 bytes added ,  22:46, 3 September 2019
Added categories.
imported>Kicoax
imported>Qazaaq
(Added categories.)
 
(2 intermediate revisions by one other user not shown)
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==
{| 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>
Anonymous user