Template:Color: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Add category) |
||
Line 1: | Line 1: | ||
<includeonly><span style="color:{{{1|}}}">{{{2|{{{1|}}}}}}</span></includeonly><noinclude>{{Documentation}} | <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