Color – Template
| Lou Montana (talk | contribs)  (Add Category:Templates and description) | Lou Montana (talk | contribs)  m (Text replacement - "{|class" to "{| class") | ||
| Line 14: | Line 14: | ||
| * text: the text to be coloured | * text: the text to be coloured | ||
| {|class="wikitable" | {| class="wikitable" | ||
| |+ Examples | |+ Examples | ||
| ! Code | ! Code | ||
Revision as of 13:51, 10 August 2021
Helps colouring text.
Usage
{{Color|colour|text}}
- colour (Optional) CSS text colour, can be one of:
- HTML colour name - red, darkgrey, etc.
- HTML colour format - #RGB or #RRGGBB
- rgb format - rgb(255, 0, 0)
- rgba format - rgba(255, 0, 0, 0.5)
- hsl format - hsl(120, 100%, 50%)
- hsla format - hsla(120, 60%, 70%, 0.3)
 
- text: the text to be coloured
| Code | Result | 
|---|---|
| {{Color||Hello there!}} | Hello there! | 
| {{Color|#33C|Hello there!}} | Hello there! | 
| {{Color|#C33|General Kenobi!}} | General Kenobi! | 
| {{Color|darkorange|You are a bold one.}} | You are a bold one. | 
