Difference between revisions of "Template:KBtip"

From Second Life Wiki
Jump to navigation Jump to search
m (same problem as Template:KBcaution)
(i18n)
Line 3: Line 3:
       <td width="64">[[Image:Icons_parature_tip.jpg]]</td>
       <td width="64">[[Image:Icons_parature_tip.jpg]]</td>


       <td>{{{1|}}}</td>
       <td>'''{{#if:{{{custom|}}}|{{{custom|}}}|{{#switch:{{#var:lang}}|/de = Tipp|Tip}}}}:''' {{{1|}}}</td>
     </tr>
     </tr>
</table></blockquote></onlyinclude><noinclude>
</table></blockquote></onlyinclude><noinclude>
Line 17: Line 17:
{{KBtip|Text goes here!}}
{{KBtip|Text goes here!}}


Depending on the value of <nowiki>{{#var:lang}}</nowiki>, this template displays localized messages. Eg. for German: {{#vardefine:lang|/de}}
{{KBtip|Text goes here!}}
It may also display custom text with
: <code><nowiki>{{KBtip|custom=Your topic|Text goes here!}}</nowiki></code>
would appear as
{{KBtip|custom=Your topic|Text goes here!}}
[[Category:Box templates]]</noinclude>
[[Category:Box templates]]</noinclude>

Revision as of 18:53, 2 October 2009

Icons parature tip.jpg Tip:

This is one in a series of templates used in Category:Knowledge Base.

Example:

{{KBtip|Text goes here!}}

Which appears as:

Icons parature tip.jpg Tip: Text goes here!

Depending on the value of {{#var:lang}}, this template displays localized messages. Eg. for German:

Icons parature tip.jpg Tipp: Text goes here!

It may also display custom text with

{{KBtip|custom=Your topic|Text goes here!}}

would appear as

Icons parature tip.jpg Your topic: Text goes here!