Difference between revisions of "Template:Alert"

From ReactOS Wiki
Jump to: navigation, search
m
(Make this actually do what I think it looks like it was supposed to, and redesign it to fit the style of Template:Notice.)
Line 1: Line 1:
<pre>
+
<includeonly>
{| style="border: 1px solid #888; border-left: 15px solid #F28500;margin-top: 2px; margin-bottom: 2px; padding: 5px; width: 90%"
+
{| style="border: 1px solid #AAAAAA; background-color: #f9f9f9; width: 90%; margin-bottom: 20px;"
| [[File:IMAGE|60px|frameless|center]]  
+
|rowspan="{{#if:{{{2|}}}|3|2}}" style="border: 0; width: 50px; padding: 4px;" | [[File:Messageboxwarning.png|40px]]  
| '''TITLE'''<br />
+
|{{#if:{{{2|}}}| '''{{{1}}}'''}}
{{#if:{{{reason|}}}|{{{reason}}}|REASON OF ALERT}}<br />
+
|-
<small>WHAT TO DO</small>
+
|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}
 
|}
 
|}
</pre>
+
</includeonly>
 
<noinclude>
 
<noinclude>
 +
== Usage: ==
 +
<pre>{{Alert|<Title>|<Message Text>}}</pre>
 +
<pre>{{Alert|<Message Text>}}</pre>
 +
 +
== Results: ==
 +
{{Alert|<Title>|<Message Text>}}
 +
{{Alert|<Message Text>}}
 +
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Revision as of 22:42, 31 January 2019


Usage:

{{Alert|<Title>|<Message Text>}}
{{Alert|<Message Text>}}

Results:

Messageboxwarning.png <Title>
<Message Text>
Messageboxwarning.png
<Message Text>