Difference between revisions of "Template:Background color/doc"

(Template Doc Creation)
 
m (Updating)
Line 4: Line 4:
 
==Usage==
 
==Usage==
 
===Examples===
 
===Examples===
*{{tlx|bgc|yellow|foo}} = {{bgc|yellow|foo}}
+
*{{tlx|Background color|yellow|foo}} = {{bgc|yellow|Hello, world!}}
*{{tlx|bgc|#FFA8A8|foo}} = {{bgc|#FFA8A8|foo}}
+
*{{tlx|bg|#FFA8A8|foo}} = {{bgc|#FFA8A8|Hello, world!}}
*{{tlx|bgc|#FFA8A8|foo|m}} = {{bgc|#FFA8A8|foo|m}}
+
*{{tlx|bgc|#FFA8A8|foo|m}} = {{bgc|#FFA8A8|Hello, world!|m}}
* <code>{{tlx|Background color|red|Hello, world!}}</code> results in {{Background color|red|Hello, world!}}
 
* <code>{{tlx|Background color|#00F000|Hello, world!}}</code> results in {{Background color|#00F000|Hello, world!}}
 
  
 
===Parameters===
 
===Parameters===

Revision as of 19:33, 8 July 2023

Usage

Examples

  • {{Background color|yellow|foo}} = Hello, world!
  • {{bg|#FFA8A8|foo}} = Hello, world!
  • {{bgc|#FFA8A8|foo|m}} = Hello, world!

Parameters

  • 1st or c = color
  • 2nd or t = text
  • m = monospace font

Color suggestions

  • {{bgc|#ff6db6|foobar}} = foobar
  • {{bgc|#ffb6db|foobar}} = foobar
  • {{bgc|#b66dff|foobar}} = foobar
  • {{bgc|#6db6ff|foobar}} = foobar
  • {{bgc|#b6dbff|foobar}} = foobar
  • {{bgc|#db6d00|foobar}} = foobar
  • {{bgc|#24ff24|foobar}} = foobar
  • {{bgc|#ffff6d|foobar}} = foobar

See also