跳转到内容

模板:Background color/doc:修订间差异

来自天灾之下:危险连接资料站
wiki>Quiddity (WMF)
rm 1, add ref
 
bwiki>35609647
小 列表替换:替换 “分类:模板页的文档” 为 “分类:模板文档” 第 137/145 个
第1行: 第1行:
{{Documentation subpage}}
用法:
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
<pre>
{{Background color|颜色代码|内容}}
</pre>


== Usage ==
示例:
* {{tl|bgc}} redirects here.
<pre>
{{Background color|green|绿色}}


;Examples
{{Background color|#F00|红色}}
*{{tlx|bgc|yellow|foo}} = {{bgc|yellow|foo}}
*{{tlx|bgc|#FFA8A8|foo}} = {{bgc|#FFA8A8|foo}}
*{{tlx|bgc|#FFA8A8|foo|m}} = {{bgc|#FFA8A8|foo|m}}


;Parameters
{{Background color|rgb(0,0,255)|蓝色}}
* 1st or <code>c</code> = color
</pre>
* 2nd or <code>t</code> = text
{{Background color|green|绿色}}
* <code>m</code> = monospace font


;Color suggestions
{{Background color|#F00|红色}}
* 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/>
{{Background color|rgb(0,0,255)|蓝色}}


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<noinclude>
<!-- Categories go here and interwikis go in Wikidata. -->
[[分类:模板文档]]
 
</noinclude>
}}</includeonly>

2020年12月3日 (四) 18:37的版本

用法:

{{Background color|颜色代码|内容}}

示例:

{{Background color|green|绿色}}

{{Background color|#F00|红色}}

{{Background color|rgb(0,0,255)|蓝色}}

绿色

红色

蓝色