Difference between revisions of "Template:KBcaution"
Jump to navigation
Jump to search
Fritz Linden (talk | contribs) |
Fritz Linden (talk | contribs) |
||
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 | <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
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:
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}}
):
Wichtig: Text goes here! |
It may also display custom text with
{{KBcaution|custom=Your topic|Text goes here!}}
would appear as
Your topic Text goes here! |
When experiencing problems with this template, try the following markup:
{{KBcaution|1=Text goes here!}}