Difference between revisions of "Template:Warning"

From Lazarus wiki
(Make language dependant on including page)
(Documentation)
Line 1: Line 1:
<div id="shbox" style="border-width:1px; border-color:lightgrey; padding: 8px 5px 2px 10px; min-height:34px; border-style:solid; width=500px; display: block; margin-top:20px;">
+
<onlyinclude><includeonly><div id="shbox" style="border-width:1px; border-color:lightgrey; padding: 8px 5px 2px 10px; min-height:34px; border-style:solid; width=500px; display: block; margin-top:20px;">
 
[[Image:Warning-icon.png|left|18px|24px]]
 
[[Image:Warning-icon.png|left|18px|24px]]
 
<p style="margin-top:0px; margin-left: 24px;">'''{{ #switch:{{#titleparts:{{PAGENAME}}| | -1}}
 
<p style="margin-top:0px; margin-left: 24px;">'''{{ #switch:{{#titleparts:{{PAGENAME}}| | -1}}
Line 6: Line 6:
 
| fr= Avertissement
 
| fr= Avertissement
 
| Warning
 
| Warning
}}:''' {{{1}}}</p></div>
+
}}:''' {{{1}}}</p></div></includeonly></onlyinclude><noinclude>
 +
This template generates a warning box.
 +
 
 +
Include this text into the articel to use this template
 +
<pre>{{Warning|Your warning text}}</pre>
 +
It will result in{{Warning|Your warning text}}
 +
 
 +
The template is language aware: this means the text "Warning" will be translated to the language of the page which includes the template. If it isn't translated, please add the translation.
 +
 
 +
[[Category:Language aware Templates]]
 +
</noinclude>

Revision as of 23:03, 29 December 2014

This template generates a warning box.

Include this text into the articel to use this template

{{Warning|Your warning text}}

It will result in

Warning-icon.png

Warning: Your warning text

The template is language aware: this means the text "Warning" will be translated to the language of the page which includes the template. If it isn't translated, please add the translation.