Difference between revisions of "Template:Warning"

(Modifications to make template work well with neverland)
Line 1: Line 1:
{{Box1|2={{{2|Warning}}}|3=[[Image:Warning.png|noframe|left|40px]]|1={{{1}}} }}
+
{{Box|2={{#if: {{{2|}}} | {{{2}}} | Warning }}
 +
|3=[[Image:Warning.png|left|40px|link=]]
 +
|1={{{1}}}
 +
}}
 
<noinclude>
 
<noinclude>
This template displays an info box in the page. Syntax: <code><nowiki>{{Warning|2=title|1=text}}</nowiki></code>
+
----
# The body of the box
+
Displays an information box. Parameters
# (optional) the title of the box - Translators: Consider creating a translated version of this template instead of using this parameter every time.
+
# Text of the main body
 +
# (optional) Title of the box (default: Warning)
  
Example: {{Input|1=<nowiki>{{Warning|1=This is a warning.}}</nowiki>}}
+
Example: <nowiki>{{Warning|This is a warning}}</nowiki> gives
{{Warning|1=This is a warning.}}
+
 
 +
{{Warning|This is a warning}}
 +
 
 +
The use of "1=" in the body text ensures that characters are not treated as system parameters.  It is not visible in the output.
  
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Revision as of 16:39, 27 August 2012

Warning
{{{1}}}



Displays an information box. Parameters

  1. Text of the main body
  2. (optional) Title of the box (default: Warning)

Example: {{Warning|This is a warning}} gives

Warning
This is a warning


The use of "1=" in the body text ensures that characters are not treated as system parameters. It is not visible in the output.


This page was last edited on 27 August 2012, at 16:39. Content is available under Creative Commons License SA 4.0 unless otherwise noted.