More actions
mNo edit summary |
m Refactor the doc. Add dependency that I have found. |
||
| Line 1: | Line 1: | ||
; Description | |||
; | : This template is used to color some text. | ||
{{code|<nowiki>{{Color| | ; Dependencies | ||
: Used by | |||
:: {{T|ColorSecurityRating}} | |||
; Syntax | |||
: {{T|Color|color|text you want to color}} | |||
:: color is a CSS valid color code<ref>https://www.w3schools.com/colors/default.asp</ref> like: | |||
::: color names e.c. khaki / red / blue<ref>https://www.w3schools.com/colors/colors_names.asp</ref> | |||
::: hex codes #F0E68C / #FF0000 / #0000FF<ref>https://www.w3schools.com/colors/colors_hex.asp</ref> | |||
; Sample output | |||
: {{code|<nowiki>{{Color|yellow|This text is yellow}}</nowiki>}} | |||
:: gives... | |||
:: {{Color|yellow|This text is yellow}} | |||
: {{code|<nowiki>{{Color|#FFFF00|This text is just as yellow}}</nowiki>}} | |||
:: gives | |||
:: {{Color|#FFFF00|This text is just as yellow}} | |||
; References | |||
{{reflist}} | |||
<includeonly>[[Category:Formatting templates]]</includeonly> | <includeonly>[[Category:Formatting templates]]</includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
Latest revision as of 12:27, 2 October 2021
- Description
- This template is used to color some text.
- Dependencies
- Used by
- Syntax
- {{Color|<color>|<text you want to color>}}
- Sample output
{{Color|yellow|This text is yellow}} - gives...
- This text is yellow
{{Color|#FFFF00|This text is just as yellow}} - gives
- This text is just as yellow
- References