Template:Color: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
m (1 revision imported)
mNo edit summary
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>
<inludeonly><span style="color:{{{1|}}}">{{{2|{{{1|}}}}}}</span></includeonly><noinclude>{{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude>

Revision as of 07:08, 6 December 2024

<inludeonly></includeonly>

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}} → <inludeonly>It says this
  • {{color|red}} → <inludeonly>red