Difference between revisions of "Template:KBcaution"

From Second Life Wiki
Jump to navigation Jump to search
(we might add that, though need to take care that all inclusions are fixed (and that localized pages display it right). will look into later...)
 
(33 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<onlyinclude><blockquote><table width="80%" style="border: 1px solid #dddddd; background: #f9f9f9">
<onlyinclude><table style="border: 1px solid #ffc000; background: #ffffaa; color: black; width: {{{width|85%}}}; min-width: 400px; margin-left: 20px; margin-right: 20px;">
     <tr>
     <tr>
       <td width="64">[[Image:Icons_parature_caution.jpg]]</td>
       <td width="32"  valign="top">[[File:KBcaution.png|link=]]</td>


       <td>{{{1|}}}</td>
       <td>'''{{#if:{{{custom|}}}|{{{custom|}}}|{{#switch:{{#var:lang}}|/de = Wichtig:|/ja = 重要|/pt =  Importante:|/it = Attenzione:|/es = Atención:|/fr = Important :|Important:}}}}''' {{{1|}}}</td>
     </tr>
     </tr>
</table></blockquote></onlyinclude><noinclude>
</table></onlyinclude><noinclude>


This is one in a series of templates used in [[:Category:Knowledge Base]].
Now supports optional width parameter.


Example:
{{KBbox/doc}} [[Category:KB Templates]]
 
</noinclude>
: <code><nowiki>{{KBcaution|Text goes here!}}</nowiki></code>
 
Which appears as:
 
{{KBcaution|Text goes here!}}
 
[[Category:Box templates]]</noinclude>

Latest revision as of 12:44, 25 September 2015

KBcaution.png Important:

Now supports optional width parameter.

This is one in a series of templates used in Category:Knowledge Base.

Example:

{{KBcaution|Text goes here!}}

Which appears as:

KBcaution.png Important: Text goes here!

Depending on the value of {{#var:lang}}, this template displays localized messages. Eg. for German (i.e. with {{#vardefine:lang|/de}}):

KBcaution.png Wichtig: Text goes here!

It may also display custom text with

{{KBcaution|custom=Your topic|Text goes here!}}

would appear as

KBcaution.png Your topic Text goes here!

When experiencing problems with this template, try the following markup:

{{KBcaution|1=Text goes here!}}