Template:Color/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
(update, rm bad subst suggestion)
Line 2: Line 2:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->


== Usage ==
This template can be used to add a span of text with a given color.
This template should be [[Wikipedia:Substitution|substed]], by using "''<code>{{Tlx|name of color or hex code of color|Text}}</code>''". <br />
* <code>{{Tlx|color|red|Hello, world!}}</code> results in {{color|red|Hello, world!}}


* <code>{{Tlx|color|#00F000|Hello, world!}}</code> results in {{color|#00F000|Hello, world!}}
=== Usage ===
 
<pre>{{Tlx|name of color or hex code of color|Text}}</pre>
 
<pre>{{Tlx|color|red|Hello, world!}}</pre>
 
results in {{color|red|Hello, world!}}
 
<pre>{{Tlx|color|#00F000|Hello, world!}}</pre>
 
results in {{color|#00F000|Hello, world!}}


See [[Web colors]] for a list of colors.
See [[Web colors]] for a list of colors.


{{tl|Colour}} also works.
=== See also ===


== See also ==
* {{tl|Colour}} (redirect)
* {{tl|Background color}}
* {{tl|Background color}}
* {{tl|Resize}}
* {{tl|Resize}}

Revision as of 08:25, 3 September 2010


This template can be used to add a span of text with a given color.

Usage

{{Tlx|name of color or hex code of color|Text}}
{{Tlx|color|red|Hello, world!}}

results in Hello, world!

{{Tlx|color|#00F000|Hello, world!}}

results in Hello, world!

See Web colors for a list of colors.

See also