Difference between revisions of "Template:Color"

From EVE University Wiki
Jump to: navigation, search
(added new tool template for text coloring)
 
(Moved documentation to Template:Color/doc.)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<span style='{{#if:{{{1}}}|color:{{{1|khaki}}}|color:khaki}}'>{{{2|no text}}}</span>
+
<includeonly><span style='{{#if:{{{1}}}|color:{{{1|khaki}}}|color:khaki}}'>{{{2|no text}}}</span></includeonly><noinclude>
[[Category:Template]]
+
{{documentation}}
 +
</noinclude>

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?)