Difference between revisions of "Template:Color"

From EVE University Wiki
Jump to: navigation, search
(Moved documentation to Template:Color/doc.)
m (Refactor code to mimic {{Co}}'s code.)
 
Line 1: Line 1:
<includeonly><span style='{{#if:{{{1}}}|color:{{{1|khaki}}}|color:khaki}}'>{{{2|no text}}}</span></includeonly><noinclude>
+
<includeonly><span style="color:{{{1|inherit}}}">{{{2|''"WARNING: text missing"''}}}</span></includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</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?)