Difference between revisions of "Template:Color/doc"

From EVE University Wiki
Jump to: navigation, search
(Created page with "<noinclude>{{main|Template:Color}}</noinclude> ;Usage {{code|<nowiki>{{Color|color selection|text you want to color}}</nowiki>}} *color selection : basic html color names (ex....")
 
m (Refactor the doc. Add dependency that I have found.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<noinclude>{{main|Template:Color}}</noinclude>
+
; Description
;Usage
+
: This template is used to color some text.
{{code|<nowiki>{{Color|color selection|text you want to color}}</nowiki>}}
+
; Dependencies
*color selection : basic html color names (ex. khaki/red/blue) or hex coloring (ex. #CCCCCC)
+
: Used by
 +
:: {{T|ColorSecurityRating}}
  
<includeonly>[[Category:Template]]</includeonly>
+
; 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>
 
<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
{{ColorSecurityRating}}
Syntax
{{Color|<color>|<text you want to color>}}
color is a CSS valid color code[1] like:
color names e.c. khaki / red / blue[2]
hex codes #F0E68C / #FF0000 / #0000FF[3]
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