Template:Tip: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#if: {{{1}}}|<table cellspacing="0" cellpadding="0" border="0" style="background: transparent;"><tr><td nowrap="nowrap" valign="top">}}<span style="position: relative; top: -2px;">[[File:Light bulb icon tips.png|18px|Tip|link=]]</span> '''Tip''': {{#if: {{{1|}}}|</td><td valign="top" style="padding-left:0.5em;">{{{1|}}}</td></tr></table>}}<noinclude>
{{#if: {{{1}}}|<table cellspacing="0" cellpadding="0" border="0" style="background: transparent;"><tr><td nowrap="nowrap" valign="top">}}<span style="position: relative; top: -2px;">[[File:Light bulb icon tips.png|18px|Tip|link=]]</span> '''Tip''': {{#if: {{{1|}}}|</td><td valign="top" style="padding-left:0.5em;">{{{1|}}}</td></tr></table>}}<noinclude>
== Usage ==
=== Method 1 ===
The following displays the tip icon, the word 'Tip' followed by whatever text, images, etc. you like:
This is a paragraph with the <nowiki>{{tip}}</nowiki> big tip. And whatever else goes there.
will render as:
This is a paragraph with the {{tip}}} big tip. And whatever else goes there.
=== Method 2 ===
The following will render the tip into its own block:
This is a paragraph with the <nowiki>{{tip|big tip}}</nowiki>. And whatever else goes there.
will render as:
This is a paragraph with the {{tip|big tip}}. And whatever else goes there.


== Method 2 ==
{{doc}}
{{doc}}
</noinclude>
</noinclude>

Revision as of 13:49, 2 June 2019

Tip Tip:

Usage

Method 1

The following displays the tip icon, the word 'Tip' followed by whatever text, images, etc. you like:

This is a paragraph with the {{tip}} big tip. And whatever else goes there.

will render as:

This is a paragraph with the
Tip Tip: } big tip. And whatever else goes there.

Method 2

The following will render the tip into its own block:

This is a paragraph with the {{tip|big tip}}. And whatever else goes there.

will render as:

This is a paragraph with the
Tip Tip: big tip
. And whatever else goes there.
[edit] Template documentation

Used on pages that contain a Tipfor the user on a particular block, section or instruction set.

Usage

{{Tip|Sample text in here to note or comment about some important part}}

Results in:

Tip Tip: Sample text in here to note or comment about some important part