Difference between revisions of "Template:Warning"

From Xen
(Fixed Category)
m (Add Documentation template to display documentation box)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<center>
 
<center>
<div style="background: #B9D0F5; border: 2px solid #151B8D; margin: 0.2em 10px 10px; padding:0.2em 0.4em; text-align: left; width: 80%;">
+
<div class="module-warning" style="margin: 0.2em 10px 10px; padding:0.2em 0.4em; text-align: left; width: 80%;">
{|style="background-color:#B9D0F5;" cellpadding="3" cellspacing="0" border="0"
+
{|style="background-color:#FFDFC1;" cellpadding="3" cellspacing="0" border="0"
|style="align: left; width: 43px;"|[[File:Icon_Info.png]]
+
|style="align: left; width: 43px;"|[[File:Icon_Ambox.png]]
|style="color: #151B8D;"|{{{1}}}
+
|style="color: #A84412;"|{{{1}}}
 
|}
 
|}
 
</div>
 
</div>
 
</center>
 
</center>
 
[[Category:Contains_Warning]]
 
[[Category:Contains_Warning]]
  +
<noinclude>
  +
{{Documentation}}
  +
[[Category:Templates]]
  +
[[Category:Article message boxes|W]]
  +
</noinclude>

Latest revision as of 13:53, 5 January 2017

Icon Ambox.png {{{1}}}
[edit] [purge] Template documentation

Usage

{{Warning|This is an infobox with this text in the box}}

Renders as

Icon Ambox.png This is an infobox with this text in the box
The above documentation is transcluded from Template:Warning/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.