Jump to content

Template:Color: Difference between revisions

From KDE Community Wiki
Ashark (talk | contribs)
Add link to colors ref
Ashark (talk | contribs)
Reformat headers; add link to bg template
 
Line 4: Line 4:
Text with colored font.
Text with colored font.


== Usage ==
* Use [[Template:bg]] to colorize background.
 
== Parameters ==


* {{ic|1}}: the color name or value
* {{ic|1}}: the color name or value
* {{ic|2}}: the text
* {{ic|2}}: the text


== Example ==
== Usage examples ==
 
=== With color name ===


  <nowiki>{{color|orange|Let's be careful}}</nowiki>
  <nowiki>{{color|orange|Let's be careful}}</nowiki>
Result:
{{color|orange|Let's be careful}}
{{color|orange|Let's be careful}}
=== With color code ===


  <nowiki>{{color|#229944|Looks good}}</nowiki>
  <nowiki>{{color|#229944|Looks good}}</nowiki>
Result:
{{color|#229944|Looks good}}
{{color|#229944|Looks good}}



Latest revision as of 20:22, 29 September 2023

This page is a template, editing it will affect all the pages that make use of it, so users should be especially careful when editing it. For more details on how to use templates see "A Quick Guide to Templates"

Text with colored font.

Parameters

  • 1: the color name or value
  • 2: the text

Usage examples

With color name

{{color|orange|Let's be careful}}

Result:

Let's be careful

With color code

{{color|#229944|Looks good}}

Result:

Looks good

See also

https://meta.wikimedia.org/wiki/Help:Text_color