Template:Warningbox: Difference between revisions

From Bashlinux
Jump to navigationJump to search
Content deleted Content added
Manpaz (talk | contribs)
No edit summary
Manpaz (talk | contribs)
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 2: Line 2:
{|
{|
|- 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|Warning]]
| <span style="color: #a00">{{#if:{{{1|}}}|'''{{{1}}}'''}}</span><br/>
|<span style="color: #aa0000">'''{{{1}}}'''</span><br/>{{{2}}}
| - <span style="font-size: 100%">
|{{#if:{{{2|}}}|{{{2}}}}} </span>
|}
|}
</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|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}}

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| Template documentation|Documentation}}}}
}}

{{#if:||{{#ifexist:{{#switch: Warningbox

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

}}|{{ {{#switch: Warningbox

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

}}}}}}}}