Шаблон:Co/doc

Материал из EVE Online Wiki [Aliteg]
< Шаблон:Co
Версия от 23:42, 12 января 2025; Cingulari (обсуждение | вклад) (Новая страница: «; Description : This template is used to color some text. ; Syntax : {{T|Co|text color|background color|text}} : {{T|Co|text color|text}} :; Parameters ::; text color : Sets the text color. Default value is "inherit"<ref>inherit - The color used by the HTML parent element.</ref>. Colors can be given either by color name<ref>https://www.w3schools.com/colors/colors_names.asp [2022-05-29]</ref> (e.g. {{Co|red|red}} or {{Co|green|green}}) or values<ref>https:/...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к: навигация, поиск
Description
This template is used to color some text.
Syntax
{{Co|<text color>|<background color>|<text>}}
{{Co|<text color>|<text>}}
Parameters
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.

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

{{co|black|lightyellow|Text and background color.}}
gives ...
Text and background color.
{{co|#0033CC|This text uses an hex color code.}}
gives ...
This text uses an hex color code.
References
  1. inherit - The color used by the HTML parent element.
  2. https://www.w3schools.com/colors/colors_names.asp [2022-05-29]
  3. https://www.w3schools.com/colors/colors_hex.asp [2022-05-29]