Difference between revisions of "Template:Highlight"

From Official Kodi Wiki
Jump to navigation Jump to search
m (Protected "Template:Highlight" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
Line 1: Line 1:
<span style="height: auto; {{#ifeq: yes | {{{bordered}}} | border: thin inset black; |}} background: {{{color|#E6E6FA}}}">&nbsp;{{{1}}}&nbsp;</span><noinclude>{{documentation}}</noinclude>
<span style="display:inline-block; padding: 0.1em 0.3em; height: auto; {{#ifeq: yes | {{{bordered}}} | border: thin inset black; |}} background: {{{color|#E6E6FA}}}">&nbsp;{{{1}}}&nbsp;</span><noinclude>{{documentation}}</noinclude>
 
 
tyle=""

Revision as of 08:19, 14 March 2014

 {{{1}}} 

[edit] Template documentation

Used for highlighting and/or boxing text. Can be used inside paragraphs.

1 Usage

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


tyle=""

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

1.1 Color

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

  • {{highlight|TEXT GOES HERE|color=red}} makes  TEXT GOES HERE 


tyle=""

  • {{highlight|TEXT GOES HERE|color=orange}} makes  TEXT GOES HERE 


tyle=""

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


tyle=""

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


tyle=""

1.2 Border

To add a border add |bordered=yes like this:

  • {{highlight|TEXT GOES HERE|bordered=yes}} makes  TEXT GOES HERE 


tyle=""

  • {{highlight|TEXT GOES HERE|bordered=yes|color=red}} makes  TEXT GOES HERE 


tyle=""

  • {{highlight|TEXT GOES HERE|bordered=yes|color=orange}} makes  TEXT GOES HERE 


tyle=""

  • {{highlight|TEXT GOES HERE|bordered=yes|color=#CADCFB}} makes  TEXT GOES HERE 


tyle=""

  • {{highlight|TEXT GOES HERE|bordered=yes|color=#f2e0ce}} makes  TEXT GOES HERE 


tyle=""


tyle=""