Difference between revisions of "Template:Color"

From EVE University Wiki
Jump to: navigation, search
m
m (Refactor code to mimic {{Co}}'s code.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
usage : <nowiki>{{Color|color_selection|text_you_want_to_color}}</nowiki>
+
<includeonly><span style="color:{{{1|inherit}}}">{{{2|''"WARNING: text missing"''}}}</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]]
 

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