Difference between revisions of "Template:Color"

From EVE University Wiki
Jump to: navigation, search
(added new tool template for text coloring)
 
m (Refactor code to mimic {{Co}}'s code.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span style='{{#if:{{{1}}}|color:{{{1|khaki}}}|color:khaki}}'>{{{2|no text}}}</span>
+
<includeonly><span style="color:{{{1|inherit}}}">{{{2|''"WARNING: text missing"''}}}</span></includeonly><noinclude>
[[Category:Template]]
+
{{documentation}}
 +
</noinclude>

Latest revision as of 09:58, 27 September 2021

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