Difference between revisions of "Template:KBwarning"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<onlyinclude><blockquote><table width="{{{width|65%}}}" style="border: 1px solid #e65f54; background: #ffcccc; color: black; min-width: 400px;">
<onlyinclude><table width="{{{width|75%}}}" style="border: 1px solid #e65f54; background: #ffcccc; color: black; min-width: 400px; margin-left:20px; margin-right: 20px;">
     <tr>
     <tr>
       <td width="32"  valign="top">[[Image:KBwarning.png|32px|link=]]</td>
       <td width="32"  valign="top">[[Image:KBwarning.png|32px|link=]]</td>
Line 5: Line 5:
       <td>'''{{#if:{{{custom|}}}|{{{custom|}}}|{{#switch:{{#var:lang}}|/de = Achtung:|/ja = 警告:|/pt = Aviso: |/it = Avviso:|/es = Aviso:|/fr = Avertissement :|Warning:}}}}''' {{{1|}}}</td>
       <td>'''{{#if:{{{custom|}}}|{{{custom|}}}|{{#switch:{{#var:lang}}|/de = Achtung:|/ja = 警告:|/pt = Aviso: |/it = Avviso:|/es = Aviso:|/fr = Avertissement :|Warning:}}}}''' {{{1|}}}</td>
     </tr>
     </tr>
</table></blockquote></onlyinclude><noinclude>
</table></onlyinclude><noinclude>


Now has optional width parameter so you can make it wider than 65%.
Now has optional width parameter so you can make it wider than default with dof 75%.


{{KBbox/doc}} [[Category:KB Templates]]</noinclude>
{{KBbox/doc}} [[Category:KB Templates]]</noinclude>

Revision as of 12:49, 9 December 2010

KBwarning.png Warning:

Now has optional width parameter so you can make it wider than default with dof 75%.

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

Example:

{{KBwarning|Text goes here!}}

Which appears as:

KBwarning.png Warning: Text goes here!

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

KBwarning.png Achtung: Text goes here!

It may also display custom text with

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

would appear as

KBwarning.png Your topic Text goes here!

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

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