Difference between revisions of "Template:Warningbox"
From Bashlinux
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=" |
+ | <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=| |
+ | | style="width: 56px;"|[[File:Ambox warning red.png|link=|40px|Warning2]] |
− | |<span style=" |
+ | | <span style="color: #a00">{{#if:{{{1|}}}|'''{{{1}}}'''}}</span><br/> |
+ | | - <span style="font-size: 100%"> |
||
+ | |{{#if:{{{2|}}}|{{{2}}}}} </span> |
||
|} |
|} |
||
</div>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Has warning box]]}}</includeonly><noinclude> |
</div>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Has warning box]]}}</includeonly><noinclude> |
||
Line 11: | Line 13: | ||
<pre style="white-space: pre-wrap;"> |
<pre style="white-space: pre-wrap;"> |
||
⚫ | |||
− | {{warningbox |
||
⚫ | |||
− | }} |
||
</pre> |
</pre> |
||
...which produces the following warning box: |
...which produces the following warning box: |
||
⚫ | |||
− | {{warningbox |
||
⚫ | |||
− | }} |
Revision as of 23:25, 2 June 2015
{{#ifeq:μ|
||
{{#ifeq:μ|μ
Template documentation|Documentation}}}}
}} |{{#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|

{{#ifexist:{{#switch: Warningbox
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Warningbox/doc
}}
|This documentation is transcluded from [[{{#switch: Warningbox |sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Warningbox/doc
}}]]. ([{{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])}}{{#switch:Warningbox
|sandbox|testcases= |#default= {{#switch:Template |Template |User= {{#ifexist:Template:Warningbox/sandbox |This template has a sandbox ([{{fullurl:{{#rel2abs:/sandbox}}|action=edit}} edit]) {{#ifexist:Template:Warningbox/testcases |and testcases ([{{fullurl:{{#rel2abs:/testcases}}|action=edit}} edit])}} for editors to experiment. |{{#ifexist: Template:Warningbox/testcases |This template has testcases ([{{fullurl:{{#rel2abs:/testcases}}|action=edit}} edit]) for editors to experiment.}} }}}}}}
</div> {{#if:||{{#ifexist:{{#switch: Warningbox
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Warningbox/doc
}}|{{ {{#switch: Warningbox
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Warningbox/doc
}}}}}}}}
</div>
Template usage
The template can be invoked as follows:
{{warningbox|Warning box|This is a paragraph with some warning message for the user}}
...which produces the following warning box:
Error creating thumbnail: File missing
|
Warning box This is a paragraph with some warning message for the user |