Difference between revisions of "Template:Warningbox"

From Bashlinux
Jump to: navigation, search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="display: table; background-color: #fff3f3; border: 1px solid #a00; margin: 0.5em 1em 0 1em; padding: 6px; " class="pp_warningbox">
+
<includeonly><div style="display: table; background-color: #fff3f3; border: 1px solid #a00; margin: 0.5em 1em 0 1em; padding: 6px; " class="blnx_warningbox">
 
{|
 
{|
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
| style="width: 56px;"|[[File:Ambox warning red.png|link=|50px|Warning]]
+
| style="width: 56px;"|[[File:Ambox warning red.png|link=|40px|Warning]]
|<span style="font-size: 130%; color: #a00">'''WARNING:'''</span> <span style="font-size: 100%">{{{1}}}</span>
+
|<span style="color: #aa0000">'''{{{1}}}'''</span><br/>{{{2}}}
 
|}
 
|}
</div>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Has warning box]]}}</includeonly><noinclude>
+
</div></includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
  +
</noinclude>
=== Template usage ===
 
The template can be invoked as follows:
 
 
<pre style="white-space: pre-wrap;">
 
{{warningbox
 
| '''Title''' Text [[Link1]], [[Link2|Another Link]]<br>This is a paragraph with some warning message for the user.
 
}}
 
</pre>
 
 
...which produces the following warning box:
 
 
{{warningbox
 
| '''Title''' Text [[Link1]], [[Link2|Another Link ]]<br>This is a paragraph with some warning message for the user.
 
}}
 

Latest revision as of 21:52, 6 June 2015

{{#ifeq:μ|
 |
|
{{#ifeq:μ|μ
   |{{#ifexist:{{#switch: Warningbox
 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Warningbox/doc

}}

   |[[{{fullurl:{{#switch: Warningbox
 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Warningbox/doc

}}}} view]] [[{{fullurl:{{#switch: Warningbox

 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Warningbox/doc

}}|action=edit}} edit]] [[{{fullurl:{{#switch: Warningbox

 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Warningbox/doc

}}|action=history}} history]] [[[:Template:Purge]]]

   |[[{{fullurl:{{#switch: Warningbox
 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Warningbox/doc

}}|action=edit&preload=Template:Documentation/preload}} create]]

   }}
}} {{#if:|{{{heading}}}|{{#ifeq:Template|Template|Ambox information blue.png Template documentation|Documentation}}}}
}}