Difference between revisions of "Template:Color"

From EVE University Wiki
Jump to: navigation, search
m
(Moved documentation to Template:Color/doc.)
Line 1: Line 1:
usage : <nowiki>{{Color|color_selection|text_you_want_to_color}}</nowiki>
+
<includeonly><span style='{{#if:{{{1}}}|color:{{{1|khaki}}}|color:khaki}}'>{{{2|no text}}}</span></includeonly><noinclude>
*color selection : basic html color names (ex. khaki/red/blue) or hex coloring (ex. #CCCCCC)
+
{{documentation}}
<includeonly><onlyinclude><span style='{{#if:{{{1}}}|color:{{{1|khaki}}}|color:khaki}}'>{{{2|no text}}}</span></onlyinclude></includeonly>
+
</noinclude>
[[Category:Template]]
 

Revision as of 01:08, 25 February 2017

Template documentation (for the above template, sometimes hidden or invisible)
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
Visit Template:Color/doc to edit this text! (How does this work?) (Refresh this text - why?)