Difference between revisions of "Template:Notice"

From ReactOS Wiki
Jump to: navigation, search
m
(Add optional title parameter to be used like so: {{Notice|title=<Title>|<Message Text>}} [so as not to break existing uses], also convert html tags to wiki markup and add basic usage information to page.)
 
Line 1: Line 1:
<table style="border:1px solid #AAAAAA; background-color: #f9f9f9; width: 90%; margin-bottom: 20px;">
+
<includeonly>{| style="border: 1px solid #AAAAAA; background-color: #f9f9f9; width: 90%; margin-bottom: 20px;"
<tr>
+
|rowspan="2" style="border: 0; width: 50px; padding: 4px;" | [[File:Imbox_notice.png|40px]]  
<td style="border:0; width: 50px;padding: 4px;">
+
|
[[File:Imbox_notice.png]]</td>
+
{{#if:{{{title|}}}| '''{{{title}}}:''' {{{1}}}}}
<td style="border:0; text-align: left">'''Notice:''' {{{1}}}</td>
+
{{#if:{{{title|}}}||'''Notice:''' {{{1}}}}}
</tr>
+
|}</includeonly><noinclude>
</table>
+
== Usage: ==
 +
<pre>{{Notice|<Message Text>}}</pre>
 +
<pre>{{Notice|title=<Title>|<Message Text>}}</pre>
 +
 
 +
== Results: ==
 +
{{Notice|<Message Text>}}
 +
{{Notice|title=<Title>|<Message Text>}}
 +
 
 +
[[Category:Template]]
 +
</noinclude>

Latest revision as of 10:04, 5 March 2019

Usage:

{{Notice|<Message Text>}}
{{Notice|title=<Title>|<Message Text>}}

Results:

Imbox notice.png

Notice: <Message Text>

Imbox notice.png

<Title>: <Message Text>