Difference between revisions of "Template:KBtip"
Jump to navigation
Jump to search
m (Looks like as soon as you add resize options to [[File:]] the generated link points to an amazon storage which doesn't know the file.) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude | <onlyinclude><table style="border: 1px solid #ffc000; background: #ffffaa; color: black; width: {{{width|75%}}}; min-width: 400px; margin-left: 20px; margin-right: 20px;"> | ||
<tr> | <tr> | ||
<td width="32" valign="top">[[ | <td width="32" valign="top">[[File:KBtip2.png|link=]]</td> | ||
<td>'''{{#if:{{{custom|}}}|{{{custom|}}}|{{#switch:{{#var:lang}}|/de = Tipp:|/ja = ヒント:|/pt = Dica:|/it = Suggerimento:|/es = Sugerencia:|/fr = Astuce :|Tip:}}}}''' {{{1|}}}</td> | <td>'''{{#if:{{{custom|}}}|{{{custom|}}}|{{#switch:{{#var:lang}}|/de = Tipp:|/ja = ヒント:|/pt = Dica:|/it = Suggerimento:|/es = Sugerencia:|/fr = Astuce :|Tip:}}}}''' {{{1|}}}</td> | ||
</tr> | </tr> | ||
</table | </table></onlyinclude><noinclude> | ||
{{KBbox/doc}} [[Category:KB Templates]]</noinclude> | {{KBbox/doc}} [[Category:KB Templates]]</noinclude> |
Latest revision as of 07:19, 8 August 2015
Tip: |
This is one in a series of templates used in Category:Knowledge Base.
Example:
{{KBtip|Text goes here!}}
Which appears as:
Tip: Text goes here! |
Depending on the value of {{#var:lang}}, this template displays localized messages. Eg. for German (i.e. with {{#vardefine:lang|/de}}
):
Tipp: Text goes here! |
It may also display custom text with
{{KBtip|custom=Your topic|Text goes here!}}
would appear as
Your topic Text goes here! |
When experiencing problems with this template, try the following markup:
{{KBtip|1=Text goes here!}}