Difference between revisions of "Template:KBcaution"

From Second Life Wiki
Jump to navigation Jump to search
(New page: <onlyinclude><includeonly><table style="border: 1px dashed rgb(127, 124, 117);" cellpadding="3" width="80%"> <tr> <td style="border: 1px dashed rgb(127, 124, 117);" wid...)
 
 
(35 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<onlyinclude><includeonly><table style="border: 1px dashed rgb(127, 124, 117);" cellpadding="3" width="80%">
<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 style="border: 1px dashed rgb(127, 124, 117);" width="80"><imagemap>
      <td width="32" valign="top">[[File:KBcaution.png|link=]]</td>
Image:Icons_parature_caution.jpg
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 = Wichtig:|/ja = 重要|/pt =  Importante:|/it = Attenzione:|/es = Atención:|/fr = Important :|Important:}}}}''' {{{1|}}}</td>
</table></includeonly></onlyinclude>
    </tr>
This box is an adaption of the trivia box used in KB articles and supposed to be used during KB2wiki pilot program. Syntax:
</table></onlyinclude><noinclude>
<nowiki>{{KBcaution|Caution: Some content}}</nowiki>
which would result in


{{KBcaution|Caution: Some content}}
Now supports optional width parameter.
[[Category:Box templates]]
 
{{KBbox/doc}} [[Category:KB 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!}}