Template:KBcaution: Difference between revisions
Jump to navigation
Jump to search
we might add that, though need to take care that all inclusions are fixed (and that localized pages display it right). will look into later... |
Fritz Linden (talk | contribs) No edit summary |
||
(33 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude | <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=" | <td width="32" valign="top">[[File:KBcaution.png|link=]]</td> | ||
<td>{{{1|}}}</td> | <td>'''{{#if:{{{custom|}}}|{{{custom|}}}|{{#switch:{{#var:lang}}|/de = Wichtig:|/ja = 重要|/pt = Importante:|/it = Attenzione:|/es = Atención:|/fr = Important :|Important:}}}}''' {{{1|}}}</td> | ||
</tr> | </tr> | ||
</table | </table></onlyinclude><noinclude> | ||
Now supports optional width parameter. | |||
{{KBbox/doc}} [[Category:KB Templates]] | |||
</noinclude> | |||
[[Category: |
Latest revision as of 12: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!}}