Template:Warning: Difference between revisions

From KDE Community Wiki
No edit summary
m (1 revision: Moving Docbook Primer from UserBase to TechBase)
Line 1: Line 1:
{{Box1|2={{#if: {{{2|}}} | {{{2}}} | Warning }}
{{Box1|2={{{2|Warning}}}|3=[[Image:Warning.png|noframe|left|40px]]|1={{{1}}} }}
|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>
Displays an information box. Parameters
# The body of the box
# Text of the main body
# (optional) the title of the box - Translators: Consider creating a translated version of this template instead of using this parameter every time.
# (optional) Title of the box (default: Warning)


Example: <nowiki>{{Warning|This is a warning}}</nowiki> gives
Example: {{Input|1=<nowiki>{{Warning|1=This is a warning.}}</nowiki>}}
 
{{Warning|1=This is a warning.}}
{{Warning|This is a warning}}


[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>

Revision as of 08:47, 1 September 2012

noframe
noframe
 
Warning
{{{1}}}

This template displays an info box in the page. Syntax: {{Warning|2=title|1=text}}

  1. The body of the box
  2. (optional) the title of the box - Translators: Consider creating a translated version of this template instead of using this parameter every time.

Example:

{{Warning|1=This is a warning.}}
noframe
noframe
 
Warning
This is a warning.