Label Formatting: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Jmarshall
(New page: XBMC has a sophisticated label formatting engine, allowing the skinner to format up a particular label using bold, italics, full caps, lower case, and coloured text. This works on all lab...)
 
>Jmarshall
No edit summary
Line 13: Line 13:
The following keywords are used.
The following keywords are used.


$INFO[ListItem.Title,prefix,postfix] - for specifying an [[InfoLabel|infolabel]].
* $INFO[ListItem.Title,prefix,postfix] - for specifying an [[InfoLabel|infolabel]].
$LOCALIZE[12345] - for specifying a localized string.
* $LOCALIZE[12345] - for specifying a localized string.
[B]bold[/B] - bold text.
* [B]bold[/B] - bold text.
[I]italics[/I] - italic text.
* [I]italics[/I] - italic text.
[COLOR red]red text[/COLOR] - colored text.
* [COLOR red]red text[/COLOR] - colored text.
[UPPERCASE]force text uppercase[/UPPERCASE] - force text to uppercase
* [UPPERCASE]force text uppercase[/UPPERCASE] - force text to uppercase
[LOWERCASE]Force Text Lowercase[/LOWERCASE] - force text to lowercase
* [LOWERCASE]Force Text Lowercase[/LOWERCASE] - force text to lowercase
[CR] - carriage return (line break).
* [CR] - carriage return (line break).

Revision as of 07:15, 20 December 2007

XBMC has a sophisticated label formatting engine, allowing the skinner to format up a particular label using bold, italics, full caps, lower case, and coloured text.

This works on all labels throughout the interface. The syntax is similar to the "phpBB" syntax seen on some bulletin board software.

Examples

This is a long label that features different [COLOR red]colours[/COLOR] and [I]styles[/I].

[LOWERCASE]$LOCALIZE[12345][/LOWERCASE] can be used to force a localize string to lowercase.

Keywords

The following keywords are used.

  • $INFO[ListItem.Title,prefix,postfix] - for specifying an infolabel.
  • $LOCALIZE[12345] - for specifying a localized string.
  • [B]bold[/B] - bold text.
  • [I]italics[/I] - italic text.
  • [COLOR red]red text[/COLOR] - colored text.
  • [UPPERCASE]force text uppercase[/UPPERCASE] - force text to uppercase
  • [LOWERCASE]Force Text Lowercase[/LOWERCASE] - force text to lowercase
  • [CR] - carriage return (line break).