Template:Color: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
m (1 revision imported)
m (Add category)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="color:{{{1|}}}">{{{2|{{{1|}}}}}}</span><noinclude>{{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude>
<includeonly><span style="color:{{{1|}}}">{{{2|{{{1|}}}}}}</span></includeonly><noinclude>{{Documentation}}
[[Category:Font templates]]</noinclude>

Latest revision as of 07:09, 6 December 2024

Template documentation

The {{color}} template displays text in the specified color. It is a replacement for <span style="color:xxx">...</span>.

Usage

To use the template, copy and paste the following in the article where the colored text is desired:

{{color|1|2}}

Parameters

Parameter Description Type Status Notes
1 Color String Required Acceptable values for the text color are RGB hex codes, e.g. #C9E72A, or any of the web colors: red, blue, green, moccasin, darkorchid, etc.
2 Text String Optional Defaults to the color (1) if not specified.

Examples

  • {{color|#00F000|It says this}}It says this
  • {{color|red}}red