模板:Background color/doc:修订间差异
外观
bwiki>35609647 小 列表替换:替换 “分类:模板页的文档” 为 “分类:模板文档” 第 137/145 个 |
小 导入1个版本 |
||
| (未显示同一用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
{{Documentation subpage}} | |||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | |||
{{ | |||
< | |||
== Usage == | |||
* {{tl|bgc}} redirects here. | |||
{{ | |||
{{ | ;Examples | ||
*{{tlx|bgc|yellow|foo}} = {{bgc|yellow|foo}} | |||
*{{tlx|bgc|#FFA8A8|foo}} = {{bgc|#FFA8A8|foo}} | |||
*{{tlx|bgc|#FFA8A8|foo|m}} = {{bgc|#FFA8A8|foo|m}} | |||
;Parameters | |||
</ | * 1st or <code>c</code> = color | ||
* 2nd or <code>t</code> = text | |||
* <code>m</code> = monospace font | |||
{{ | ;Color suggestions | ||
* Refer to [[Design/Typography#Text color]] for details on accessible color choices. | |||
* These colors should be fine<ref>Taken from https://jacksonlab.agronomy.wisc.edu/2016/05/23/15-level-colorblind-friendly-palette/ and then low-contrast combinations removed</ref>: | |||
*{{tlx|bgc|#ff6db6|foobar}} = {{bgc|#ff6db6|foobar}} | |||
*{{tlx|bgc|#ffb6db|foobar}} = {{bgc|#ffb6db|foobar}} | |||
*{{tlx|bgc|#b66dff|foobar}} = {{bgc|#b66dff|foobar}} | |||
*{{tlx|bgc|#6db6ff|foobar}} = {{bgc|#6db6ff|foobar}} | |||
*{{tlx|bgc|#b6dbff|foobar}} = {{bgc|#b6dbff|foobar}} | |||
*{{tlx|bgc|#db6d00|foobar}} = {{bgc|#db6d00|foobar}} | |||
*{{tlx|bgc|#24ff24|foobar}} = {{bgc|#24ff24|foobar}} | |||
*{{tlx|bgc|#ffff6d|foobar}} = {{bgc|#ffff6d|foobar}} | |||
<references/> | |||
< | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | ||
<!-- Categories go here and interwikis go in Wikidata. --> | |||
</ | |||
}}</includeonly> | |||
2025年12月19日 (五) 23:43的最新版本
| 文件:Codex icon book color-base.svg | This is a documentation subpage for 模板:Background color. It contains usage information, categories and other content that is not part of the original 模板 page. |
Usage
- {{Bgc}} redirects here.
- Examples
- Parameters
- 1st or
c= color - 2nd or
t= text m= monospace font
- Color suggestions
- Refer to Design/Typography#Text color for details on accessible color choices.
- These colors should be fine[1]:
- {{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
- ↑ Taken from https://jacksonlab.agronomy.wisc.edu/2016/05/23/15-level-colorblind-friendly-palette/ and then low-contrast combinations removed