Difference between revisions of "Template:Background color/doc"
(Template Doc Creation) |
m (Updating) |
||
Line 4: | Line 4: | ||
==Usage== | ==Usage== | ||
===Examples=== | ===Examples=== | ||
− | *{{tlx| | + | *{{tlx|Background color|yellow|foo}} = {{bgc|yellow|Hello, world!}} |
− | *{{tlx| | + | *{{tlx|bg|#FFA8A8|foo}} = {{bgc|#FFA8A8|Hello, world!}} |
− | *{{tlx|bgc|#FFA8A8|foo|m}} = {{bgc|#FFA8A8 | + | *{{tlx|bgc|#FFA8A8|foo|m}} = {{bgc|#FFA8A8|Hello, world!|m}} |
− | |||
− | |||
===Parameters=== | ===Parameters=== |
Revision as of 19:33, 8 July 2023
This is a documentation subpage for Template:Background color. It may contain usage information, categories and other content that is not part of the original template page. |
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
- {{Color}} – sets text color only
- {{Font color}} – sets both text and background color
- {{coltit}} — colored table header cell
- {{Color contrast ratio}}
- {{Hilite}} – sets background color, with an optional expiry date
- {{Resize}}