Template:Highlight/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
Line 14: Line 14:


===Border===
===Border===
To add a border put <code>|bordered</code> after the text like this:
To add a border put <code>|bordered</code> after the TEXT like this:


*<code><nowiki>{{</nowiki>highlight|TEXT GOES HERE|bordered}}</code> makes {{highlight|TEXT GOES HERE|bordered}}
*<code><nowiki>{{</nowiki>highlight|TEXT GOES HERE|bordered}}</code> makes {{highlight|TEXT GOES HERE|bordered}}

Revision as of 00:38, 19 November 2011

Used for highlighting/boxing text.

Usage

{{highlight|TEXT GOES HERE}} makes TEXT GOES HERE

If the text contains an equals sign (=) then you will have to use this syntax: {{highlight|1=TEXT GOES HERE}}

Color

Default color is #E6E6FA. This can be overwritten with |color= like this:

  • {{highlight|TEXT GOES HERE|color=red}} makes TEXT GOES HERE
  • {{highlight|TEXT GOES HERE|color=orange}} makes TEXT GOES HERE
  • {{highlight|TEXT GOES HERE|color=#CADCFB}} makes TEXT GOES HERE
  • {{highlight|TEXT GOES HERE|color=#f2e0ce}} makes TEXT GOES HERE

Border

To add a border put |bordered after the TEXT like this:

  • {{highlight|TEXT GOES HERE|bordered}} makes TEXT GOES HERE
  • {{highlight|TEXT GOES HERE|bordered|color=red}} makes TEXT GOES HERE
  • {{highlight|TEXT GOES HERE|bordered|color=orange}} makes TEXT GOES HERE
  • {{highlight|TEXT GOES HERE|bordered|color=#CADCFB}} makes TEXT GOES HERE
  • {{highlight|TEXT GOES HERE|bordered|color=#f2e0ce}} makes TEXT GOES HERE