Template:Bg: Difference between revisions

From KDE Community Wiki
(Add bg template)
 
(Reformat headers)
 
Line 4: Line 4:
Text with colored background.
Text with colored background.


== Usage ==
== 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>{{bg|green|Some important text}}</nowiki>
  <nowiki>{{bg|green|Some important text}}</nowiki>
Result:
{{bg|green|Some important text}}
{{bg|green|Some important text}}
=== With color code ===


  <nowiki>{{bg|#229944|Some other text}}</nowiki>
  <nowiki>{{bg|#229944|Some other text}}</nowiki>
Result:
{{bg|#FF69B4|Some other text}}
{{bg|#FF69B4|Some other text}}



Latest revision as of 20:18, 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 background.

Parameters

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

Usage examples

With color name

{{bg|green|Some important text}}

Result:

Some important text

With color code

{{bg|#229944|Some other text}}

Result:

Some other text

See also

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