Template:KBwarning: Difference between revisions
Jump to navigation
Jump to search
Rand Linden (talk | contribs) No edit summary |
m Replaced image with emoji |
||
| Line 1: | Line 1: | ||
<onlyinclude><table width="{{{width|85%}}}" style="border: 1px solid #e65f54; background: #ffcccc; color: black; min-width: 400px; margin-left:20px; margin-right: 20px;"> | <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 width="32" | <td width="32" align="center" valign="top">⚠️</td> | ||
<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> | ||
Latest revision as of 11:49, 7 January 2026
| ⚠️ | 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:
| ⚠️ | 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}}):
| ⚠️ | Achtung: Text goes here! |
It may also display custom text with
{{KBwarning|custom=Your topic|Text goes here!}}
would appear as
| ⚠️ | Your topic Text goes here! |
When experiencing problems with this template, try the following markup:
{{KBwarning|1=Text goes here!}}