Difference between revisions of "Template:KBcaution"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
<onlyinclude><table style="border: 1px solid #ffc000; background: #ffffaa; color: black; width: {{{width|85%}}}; min-width: 400px; margin-left: 20px; margin-right: 20px;">
<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="32"  valign="top">[[File:KBcaution.large.png|32px|link=]]</td>
       <td width="32"  valign="top">[[File:KBcaution.png|link=]]</td>


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

Latest revision as of 11: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!}}