Difference between revisions of "Template:KBwarning"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude><includeonly><table style="border: 1px dashed rgb(127, 124, 117);" cellpadding="3" width="80%">
<onlyinclude><table width="{{{width|85%}}}" style="border: 1px solid #e65f54; background: #ffcccc; color: black; min-width: 400px; margin-left:20px; margin-right: 20px;">
        <tr>
    <tr>
            <td style="border: 1px dashed rgb(127, 124, 117);" width="80"><imagemap>
      <td width="32" valign="top">[[Image:KBwarning.png|32px|link=]]</td>
Image:Emblem-important-red.svg|75px
poly 0 0 [[Help Portal]]
desc none
</imagemap></td>
            <td style="border: 1px dashed rgb(127, 124, 117);">{{{1|}}}</td>


        </tr>
      <td>'''{{#if:{{{custom|}}}|{{{custom|}}}|{{#switch:{{#var:lang}}|/de = Achtung:|/ja = 警告:|/pt = Aviso: |/it = Avviso:|/es = Aviso:|/fr = Avertissement :|Warning:}}}}''' {{{1|}}}</td>
</table></includeonly></onlyinclude>
    </tr>
This box is an adaption of the warning box used in {{slkb|4781|Clarification of policy disallowing ageplay}} and supposed to be used at KB translations which are using such a box. Syntax:  
</table></onlyinclude><noinclude>
<nowiki>{{KBwarning|Warning: Some content}}</nowiki>
which would result in


{{KBwarning|Warning: Some content}}
Now has optional width parameter so you can make it wider than default width of 75%.
[[Category:Box templates]]
 
{{KBbox/doc}} [[Category:KB Templates]]</noinclude>

Latest revision as of 14:22, 2 June 2011

KBwarning.png Warning:

Now has optional width parameter so you can make it wider than default width of 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!}}