Template:Co/doc

From EVE University Wiki
< Template:Co
Revision as of 10:45, 29 May 2022 by Evon R'al (talk | contribs) (Rewrite doc.)
Jump to: navigation, search
Description
This template is used to color some text.
Syntax
{{Co|<<text color>>|<<background color>>|<<text>>}}
{{Co|<<text color>>|<<text>>}}
text color
Sets the text color. Default value is "inherit"[1]. Colors can be given either by color name[2] (e.g. red or green) or values[3] (like #FF0000).
background color
Sets the background color. Default value is "inherit". For valid values see text color.
text
The text to be colored.
Sample
{{co|red||This text isn't yellow.}}
gives ...
This text isn't yellow.
{{co||green|This text has a green background.}}
gives ...
This text has a green background.
{{co|#0033CC||This text uses an HTML color code.}}
gives ...
This text uses an HTML color code.

Icon information square.png Note: Note the double brackets || which means that that section is empty. The background color parameter may be safely omitted without the use of double brackets, but double brackets must be used if only a background color is desired.

References
  1. ^ inherit - The color used by the HTML parent element.
  2. ^ https://www.w3schools.com/cssref/css_colors.asp [2021-10-23]
  3. ^ https://www.w3schools.com/cssref/css_colors_legal.asp [2021-10-23]