Difference between revisions of "Template:Warningbox"

From Bashlinux
Jump to: navigation, search
Line 3: Line 3:
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| style="width: 56px;"|[[File:Ambox warning red.png|link=|40px|Warning2]]
 
| style="width: 56px;"|[[File:Ambox warning red.png|link=|40px|Warning2]]
|<pre style="color: red">'''{{{1}}}'''</pre><br>{{{2}}}
+
|<pre style="color: red">'''{{{1}}}'''</pre><br/>{{{2}}}
 
|}
 
|}
 
</div>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Has warning box]]}}</includeonly>
 
</div>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Has warning box]]}}</includeonly>
 
=== Template usage ===
 
The template can be invoked as follows:
 
 
<pre style="white-space: pre-wrap;">
 
{{Warningbox|Warning box|This is a paragraph with some warning message for the user}}
 
</pre>
 
 
...which produces the following warning box:
 
 
{{Warningbox | Warning box | This is a paragraph with some warning message for the user}}
 

Revision as of 00:36, 3 June 2015