Template:Color/doc

From The World of Gotha
Revision as of 07:06, 6 December 2024 by Jph2 (talk | contribs) (Created page with "<noinclude>{{docsub}}</noinclude> The <nowiki>{{</nowiki>color}} template displays text in the specified color. It is a replacement for {{code|<nowiki><span style="color:</nowiki>''xxx''<nowiki>">...</span></nowiki>}}. ==Usage== To use the template, copy and paste the following in the article where the colored text is desired:<br /> :<code><nowiki>{{</nowiki>color|''1''|''2''}}</code> ==Parameters== {| class="wikitable" ! Parameter !! Description !!...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is a documentation subpage for Template:Color.
It may contain usage information, categories and other content that is not part of the original template page.

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